source: general/genlib/glib2.xml@ c11f2b3b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c11f2b3b was c11f2b3b, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Minor updates to glib2 format and text.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9737 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.30/glib-&glib2-version;.tar.xz">
8 <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.30/glib-&glib2-version;.tar.xz">
9 <!ENTITY glib2-md5sum "b7dd26aa83de0b59c867a0b9eb9f9462">
10 <!ENTITY glib2-size "7.4 MB">
11 <!ENTITY glib2-buildsize "179 MB">
12 <!ENTITY glib2-time "1.5 SBU (additional 4.0 SBU to run the test suite)">
13]>
14
15<sect1 id="glib2" xreflabel="GLib-&glib2-version;">
16 <?dbhtml filename="glib2.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>GLib-&glib2-version;</title>
24
25 <indexterm zone="glib2">
26 <primary sortas="a-GLib2">GLib2</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to GLib</title>
31
32 <para>The <application>GLib</application> package contains a low-level core
33 library. This is useful for providing data structure handling for C,
34 portability wrappers and interfaces for such runtime functionality as an
35 event loop, threads, dynamic loading, and an object system.</para>
36
37 &lfs71_checked;
38
39 <!-- Compiled against PCRE, Python, and desktop-file-utils.
40 1 test failed (regex) -->
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&glib2-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&glib2-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &glib2-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &glib2-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &glib2-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &glib2-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Required</bridgehead>
67 <para role="required"><xref linkend="libffi"/> and <xref linkend="python2"/>
68 <!--<para role="required"><xref linkend="pkgconfig"/> -->
69 </para>
70
71 <!-- This should be discussed as the instructions in the tarball give
72 many reasons why the internal PCRE should be used -->
73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended"><xref linkend="pcre"/>
75 (built with unicode properties)</para>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional"><xref linkend="attr"/>, <!-- <xref linkend="gamin"/>,
79 --> <xref linkend="dbus"/> (required to run the tests) and
80 <xref linkend="gtk-doc"/></para>
81
82 <!-- Couldn't find this
83 <para><application>Gamin</application> requires
84 <application>GLib</application> in order to compile; therefore, you must
85 first install <application>GLib</application>, then compile
86 <application>Gamin</application>, and recompile
87 <application>GLib</application> against it.</para> -->
88
89 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
90 <para role="optional">Quoted directly from the <filename>INSTALL</filename>
91 file; <quote>Some of the mimetype-related functionality in GIO requires the
92 <command>update-mime-database</command> and
93 <command>update-desktop-database</command> utilities</quote>, which are part of
94 <xref linkend="shared-mime-info"/> and
95 <xref linkend="desktop-file-utils"/>, respectively.</para>
96
97 <para condition="html" role="usernotes">User Notes:
98 <ulink url="&blfs-wiki;/glib2"/></para>
99
100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of GLib</title>
104
105 <para>Install <application>GLib</application> by running the following
106 commands:</para>
107
108 <!-- This should be discussed as the instructions in the tarball give
109 many reasons why the internal PCRE should be used -->
110<screen><userinput>PCRE_LIBS=-lpcre \
111PCRE_CFLAGS=" " \
112LIBFFI_LIBS=-lffi \
113LIBFFI_CFLAGS=-I/usr/lib/libffi-3.0.10/include \
114./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system &amp;&amp;
115make</userinput></screen>
116
117 <para>The <application>GLib</application> test suite requires
118 <application>desktop-file-utils</application> in order to run. However,
119 <application>desktop-file-utils</application> requires
120 <application>GLib</application> in order to compile; therefore, you must
121 first install <application>GLib</application> and then run the test
122 suite.</para>
123
124 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
125
126<screen role="root"><userinput>make install &amp;&amp;
127ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
128
129 <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
130 run the test suite.</para>
131
132 <para>To test the results, issue: <command>make check</command>.</para>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
139 <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
140 for <application>pkg_config</application>, but it wants to use
141 <application>pkg_config</application> during the build process. These
142 environment variables work around not having
143 <application>pkg_config</application> available.</para>
144
145 <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
146 architecture dependent header file where programs can find it.</para>
147
148 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
149 href="../../xincludes/gtk-doc-rebuild.xml"/>
150
151 <!-- This should be discussed as the instructions in the tarball give
152 many reasons why the internal PCRE should be used -->
153 <para><parameter>--with-pcre=system</parameter>: This parameter causes the
154 build to use a system-provided version of the
155 <application>PCRE</application> library instead of an internal
156 version.</para>
157
158 </sect2>
159
160 <sect2 role="configuration">
161 <title>Configuring GLib</title>
162
163 <sect3>
164 <title>Configuration Information</title>
165
166 <para>By default, <application>GLib</application> assumes that all
167 filenames are in the UTF-8 charset. See the <xref
168 linkend="locale-wrong-filename-encoding"/> section of the <xref
169 linkend="locale-issues"/> page for more details on this kind of issue. In
170 order to tell <application>GLib</application> and applications that use
171 it that filenames are in the default locale encoding, set the variable
172 <envar>G_FILENAME_ENCODING</envar> to the value "@locale". As the
173 <systemitem class="username">root</systemitem> user:</para>
174
175<screen role="root"><userinput>cat &gt; /etc/profile.d/glib2-locale.sh &lt;&lt; "EOF"
176<literal># Use the current locale charset for filenames
177# in applications using GLib
178export G_FILENAME_ENCODING=@locale</literal>
179EOF</userinput></screen>
180
181 </sect3>
182
183 </sect2>
184
185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Programs</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
192
193 <seglistitem>
194 <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
195 gobject-query, gtester and gtester-report</seg>
196 <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
197 libgobject-2.0.so, and libgthread-2.0.so</seg>
198 <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
199 lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
200 gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
201 </seglistitem>
202 </segmentedlist>
203
204 <variablelist>
205 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
206 <?dbfo list-presentation="list"?>
207 <?dbhtml list-presentation="table"?>
208
209 <varlistentry id="glib-genmarshal">
210 <term><command>glib-genmarshal</command></term>
211 <listitem>
212 <para>is a C code marshaller generation utility for GLib
213 closures.</para>
214 <indexterm zone="glib2 glib-genmarshal">
215 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
216 </indexterm>
217 </listitem>
218 </varlistentry>
219
220 <varlistentry id="glib-gettextize">
221 <term><command>glib-gettextize</command></term>
222 <listitem>
223 <para>is a variant of the <application>gettext</application>
224 internationalization utility.</para>
225 <indexterm zone="glib2 glib-gettextize">
226 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="glib-mkenums">
232 <term><command>glib-mkenums</command></term>
233 <listitem>
234 <para>is a C language enum description generation utility.</para>
235 <indexterm zone="glib2 glib-mkenums">
236 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="gobject-query">
242 <term><command>gobject-query</command></term>
243 <listitem>
244 <para>is a small utility that draws a tree of types.</para>
245 <indexterm zone="glib2 gobject-query">
246 <primary sortas="b-gobject-query">gobject-query</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="gtester">
252 <term><command>gtester</command></term>
253 <listitem>
254 <para>is a test running utility.</para>
255 <indexterm zone="glib2 gtester">
256 <primary sortas="b-gtester">gtester</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="gtester-report">
262 <term><command>gtester-report</command></term>
263 <listitem>
264 <para>is a test report formatting utility.</para>
265 <indexterm zone="glib2 gtester-report">
266 <primary sortas="b-gtester-report">gtester-report</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="GLib-libraries">
272 <term>GLib libraries</term>
273 <listitem>
274 <para>contain a low-level core library for the
275 <application>GIMP</application> Toolkit.</para>
276 <indexterm zone="glib2 GLib-libraries">
277 <primary sortas="c-GLib-libraries">Glib libraries</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 </variablelist>
283
284 </sect2>
285
286</sect1>
Note: See TracBrowser for help on using the repository browser.