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.31/glib-&glib2-version;.tar.bz2">
|
---|
8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.31/glib-&glib2-version;.tar.bz2">
|
---|
9 | <!ENTITY glib2-md5sum "921ef2e86e911feb5e21f656f1ac305b">
|
---|
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 | &lfs70_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="python"/>
|
---|
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"/>
|
---|
79 | <!-- <xref linkend="gamin"/>, -->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 PCRE_CFLAGS=" " \
|
---|
111 | LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=-I/usr/lib/libffi-3.0.10/include \
|
---|
112 | ./configure --prefix=/usr --with-pcre=system &&
|
---|
113 | make</userinput></screen>
|
---|
114 |
|
---|
115 | <para>The <application>GLib</application> test suite requires
|
---|
116 | <application>desktop-file-utils</application> in order to run. However,
|
---|
117 | <application>desktop-file-utils</application> requires
|
---|
118 | <application>GLib</application> in order to compile; therefore, you must
|
---|
119 | first install <application>GLib</application> and then run the test
|
---|
120 | suite.</para>
|
---|
121 |
|
---|
122 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
123 |
|
---|
124 | <screen role="root"><userinput>make install &&
|
---|
125 | ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
|
---|
126 |
|
---|
127 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
128 | run the test suite.</para>
|
---|
129 |
|
---|
130 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
131 |
|
---|
132 | </sect2>
|
---|
133 |
|
---|
134 | <sect2 role="commands">
|
---|
135 | <title>Command Explanations</title>
|
---|
136 |
|
---|
137 | <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
|
---|
138 | for <application>pkg_config</application>, but it wants to use
|
---|
139 | <application>pkg_config</application> during the build process. These
|
---|
140 | environment variables work around not having
|
---|
141 | <application>pkg_config</application> available.</para>
|
---|
142 |
|
---|
143 | <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
|
---|
144 | architecture dependent header file where programs can find it.</para>
|
---|
145 |
|
---|
146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
147 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
148 |
|
---|
149 | <!-- This should be discussed as the instructions in the tarball give
|
---|
150 | many reasons why the internal PCRE should be used -->
|
---|
151 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
152 | build to use a system-provided version of the
|
---|
153 | <application>PCRE</application> library instead of an internal
|
---|
154 | version.</para>
|
---|
155 |
|
---|
156 | </sect2>
|
---|
157 |
|
---|
158 | <sect2 role="configuration">
|
---|
159 | <title>Configuring GLib</title>
|
---|
160 |
|
---|
161 | <sect3>
|
---|
162 | <title>Configuration Information</title>
|
---|
163 |
|
---|
164 | <para>By default, <application>GLib</application> assumes that all
|
---|
165 | filenames are in the UTF-8 charset. See the <xref
|
---|
166 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
167 | linkend="locale-issues"/> page for more details on this kind of
|
---|
168 | issue. In order to tell <application>GLib</application> and
|
---|
169 | applications that use it that filenames are in the default locale
|
---|
170 | encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
---|
171 | value "@locale":</para>
|
---|
172 |
|
---|
173 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
174 | <literal># Use the current locale charset for filenames
|
---|
175 | # in applications using GLib
|
---|
176 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
177 | EOF</userinput></screen>
|
---|
178 |
|
---|
179 | </sect3>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2 role="content">
|
---|
184 | <title>Contents</title>
|
---|
185 |
|
---|
186 | <segmentedlist>
|
---|
187 | <segtitle>Installed Programs</segtitle>
|
---|
188 | <segtitle>Installed Libraries</segtitle>
|
---|
189 | <segtitle>Installed Directories</segtitle>
|
---|
190 |
|
---|
191 | <seglistitem>
|
---|
192 | <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
193 | gobject-query, gtester and gtester-report</seg>
|
---|
194 | <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
195 | libgobject-2.0.so, and libgthread-2.0.so</seg>
|
---|
196 | <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
|
---|
197 | lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
|
---|
198 | gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
|
---|
199 | </seglistitem>
|
---|
200 | </segmentedlist>
|
---|
201 |
|
---|
202 | <variablelist>
|
---|
203 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
204 | <?dbfo list-presentation="list"?>
|
---|
205 | <?dbhtml list-presentation="table"?>
|
---|
206 |
|
---|
207 | <varlistentry id="glib-genmarshal">
|
---|
208 | <term><command>glib-genmarshal</command></term>
|
---|
209 | <listitem>
|
---|
210 | <para>is a C code marshaller generation utility for GLib
|
---|
211 | closures.</para>
|
---|
212 | <indexterm zone="glib2 glib-genmarshal">
|
---|
213 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
214 | </indexterm>
|
---|
215 | </listitem>
|
---|
216 | </varlistentry>
|
---|
217 |
|
---|
218 | <varlistentry id="glib-gettextize">
|
---|
219 | <term><command>glib-gettextize</command></term>
|
---|
220 | <listitem>
|
---|
221 | <para>is a variant of the <application>gettext</application>
|
---|
222 | internationalization utility.</para>
|
---|
223 | <indexterm zone="glib2 glib-gettextize">
|
---|
224 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
225 | </indexterm>
|
---|
226 | </listitem>
|
---|
227 | </varlistentry>
|
---|
228 |
|
---|
229 | <varlistentry id="glib-mkenums">
|
---|
230 | <term><command>glib-mkenums</command></term>
|
---|
231 | <listitem>
|
---|
232 | <para>is a C language enum description generation utility.</para>
|
---|
233 | <indexterm zone="glib2 glib-mkenums">
|
---|
234 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
235 | </indexterm>
|
---|
236 | </listitem>
|
---|
237 | </varlistentry>
|
---|
238 |
|
---|
239 | <varlistentry id="gobject-query">
|
---|
240 | <term><command>gobject-query</command></term>
|
---|
241 | <listitem>
|
---|
242 | <para>is a small utility that draws a tree of types.</para>
|
---|
243 | <indexterm zone="glib2 gobject-query">
|
---|
244 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
245 | </indexterm>
|
---|
246 | </listitem>
|
---|
247 | </varlistentry>
|
---|
248 |
|
---|
249 | <varlistentry id="gtester">
|
---|
250 | <term><command>gtester</command></term>
|
---|
251 | <listitem>
|
---|
252 | <para>is a test running utility.</para>
|
---|
253 | <indexterm zone="glib2 gtester">
|
---|
254 | <primary sortas="b-gtester">gtester</primary>
|
---|
255 | </indexterm>
|
---|
256 | </listitem>
|
---|
257 | </varlistentry>
|
---|
258 |
|
---|
259 | <varlistentry id="gtester-report">
|
---|
260 | <term><command>gtester-report</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>is a test report formatting utility.</para>
|
---|
263 | <indexterm zone="glib2 gtester-report">
|
---|
264 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
265 | </indexterm>
|
---|
266 | </listitem>
|
---|
267 | </varlistentry>
|
---|
268 |
|
---|
269 | <varlistentry id="GLib-libraries">
|
---|
270 | <term>GLib libraries</term>
|
---|
271 | <listitem>
|
---|
272 | <para>contain a low-level core library for the
|
---|
273 | <application>GIMP</application> Toolkit.</para>
|
---|
274 | <indexterm zone="glib2 GLib-libraries">
|
---|
275 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
276 | </indexterm>
|
---|
277 | </listitem>
|
---|
278 | </varlistentry>
|
---|
279 |
|
---|
280 | </variablelist>
|
---|
281 |
|
---|
282 | </sect2>
|
---|
283 |
|
---|
284 | </sect1>
|
---|