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.22/glib-&glib2-version;.tar.bz2">
|
---|
8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.22/glib-&glib2-version;.tar.bz2">
|
---|
9 | <!ENTITY glib2-md5sum "e0bc5b08d467cc3763550923087772d3">
|
---|
10 | <!ENTITY glib2-size "5.2 MB">
|
---|
11 | <!ENTITY glib2-buildsize "96 MB (additional 8MB for the test-suite)">
|
---|
12 | <!ENTITY glib2-time "0.8 SBU (additional 1.3 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 | <!-- Compiled against PCRE, Python, and desktop-file-utils.
|
---|
38 | All 76 tests passed -->
|
---|
39 |
|
---|
40 | &lfs65_checked;
|
---|
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="pkgconfig"/></para> -->
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
70 | <para role="recommended"><xref linkend="pcre"/>
|
---|
71 | (built with unicode properties)</para>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
74 | <para role="optional"><xref linkend="gamin"/> and
|
---|
75 | <xref linkend="gtk-doc"/></para>
|
---|
76 |
|
---|
77 | <para><application>Gamin</application> requires
|
---|
78 | <application>GLib</application> in order to compile; therefore, you must
|
---|
79 | first install <application>GLib</application>, then compile
|
---|
80 | <application>Gamin</application>, and recompile
|
---|
81 | <application>GLib</application> against it.</para>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Optional Runtime Dependency for the
|
---|
84 | <command>gtester-report</command> program</bridgehead>
|
---|
85 | <para role="optional"><xref linkend="python"/></para>
|
---|
86 |
|
---|
87 | <para condition="html" role="usernotes">User Notes:
|
---|
88 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2 role="installation">
|
---|
93 | <title>Installation of GLib</title>
|
---|
94 |
|
---|
95 | <para>Install <application>GLib</application> by running the following
|
---|
96 | commands:</para>
|
---|
97 |
|
---|
98 | <screen><userinput>./configure --prefix=/usr \
|
---|
99 | --with-pcre=system &&
|
---|
100 | make</userinput></screen>
|
---|
101 |
|
---|
102 | <para>The <application>GLib</application> test suite requires
|
---|
103 | <application>desktop-file-utils</application> in order to run. However,
|
---|
104 | <application>desktop-file-utils</application> requires
|
---|
105 | <application>GLib</application> in order to compile; therefore, you must
|
---|
106 | first install <application>GLib</application> and then run the test
|
---|
107 | suite.</para>
|
---|
108 |
|
---|
109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
110 |
|
---|
111 | <screen role="root"><userinput>make install &&
|
---|
112 | chmod -v 755 /usr/bin/gtester-report</userinput></screen>
|
---|
113 |
|
---|
114 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
115 | run the test suite.</para>
|
---|
116 |
|
---|
117 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
118 |
|
---|
119 | </sect2>
|
---|
120 |
|
---|
121 | <sect2 role="commands">
|
---|
122 | <title>Command Explanations</title>
|
---|
123 |
|
---|
124 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
125 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
126 |
|
---|
127 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
128 | build to use a system-provided version of the
|
---|
129 | <application>PCRE</application> library instead of an internal
|
---|
130 | version.</para>
|
---|
131 |
|
---|
132 | <para><parameter>--disable-static</parameter>: prevent static libraries
|
---|
133 | being built and installed.</para>
|
---|
134 |
|
---|
135 | </sect2>
|
---|
136 |
|
---|
137 | <sect2 role="configuration">
|
---|
138 | <title>Configuring GLib</title>
|
---|
139 |
|
---|
140 | <sect3>
|
---|
141 | <title>Configuration Information</title>
|
---|
142 |
|
---|
143 | <para>By default, <application>GLib</application> assumes that all
|
---|
144 | filenames are in the UTF-8 charset. See the <xref
|
---|
145 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
146 | linkend="locale-issues"/> page for more details on this kind of
|
---|
147 | issue. In order to tell <application>GLib</application> and
|
---|
148 | applications that use it that filenames are in the default locale
|
---|
149 | encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
---|
150 | value "@locale":</para>
|
---|
151 |
|
---|
152 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
153 | <literal># Use the current locale charset for filenames
|
---|
154 | # in applications using GLib
|
---|
155 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
156 | EOF</userinput></screen>
|
---|
157 |
|
---|
158 | </sect3>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | <sect2 role="content">
|
---|
163 | <title>Contents</title>
|
---|
164 |
|
---|
165 | <segmentedlist>
|
---|
166 | <segtitle>Installed Programs</segtitle>
|
---|
167 | <segtitle>Installed Libraries</segtitle>
|
---|
168 | <segtitle>Installed Directories</segtitle>
|
---|
169 |
|
---|
170 | <seglistitem>
|
---|
171 | <seg>glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
172 | gobject-query, gtester and gtester-report</seg>
|
---|
173 | <seg>libgio-2.0.so, libglib-2.0.so, libgobject-2.0.so,
|
---|
174 | libgmodule-2.0.so, and libgthread-2.0.so</seg>
|
---|
175 | <seg>/usr/include/gio-unix-2.0, /usr/include/glib-2.0,
|
---|
176 | /usr/lib/gio, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
---|
177 | /usr/share/gtk-doc/html/gio, /usr/share/gtk-doc/html/glib,
|
---|
178 | and /usr/share/gtk-doc/html/gobject</seg>
|
---|
179 | </seglistitem>
|
---|
180 | </segmentedlist>
|
---|
181 |
|
---|
182 | <variablelist>
|
---|
183 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
184 | <?dbfo list-presentation="list"?>
|
---|
185 | <?dbhtml list-presentation="table"?>
|
---|
186 |
|
---|
187 | <varlistentry id="glib-genmarshal">
|
---|
188 | <term><command>glib-genmarshal</command></term>
|
---|
189 | <listitem>
|
---|
190 | <para>is a C code marshaller generation utility for GLib
|
---|
191 | closures.</para>
|
---|
192 | <indexterm zone="glib2 glib-genmarshal">
|
---|
193 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
194 | </indexterm>
|
---|
195 | </listitem>
|
---|
196 | </varlistentry>
|
---|
197 |
|
---|
198 | <varlistentry id="glib-gettextize">
|
---|
199 | <term><command>glib-gettextize</command></term>
|
---|
200 | <listitem>
|
---|
201 | <para>is a variant of the <application>gettext</application>
|
---|
202 | internationalization utility.</para>
|
---|
203 | <indexterm zone="glib2 glib-gettextize">
|
---|
204 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="glib-mkenums">
|
---|
210 | <term><command>glib-mkenums</command></term>
|
---|
211 | <listitem>
|
---|
212 | <para>is a C language enum description generation utility.</para>
|
---|
213 | <indexterm zone="glib2 glib-mkenums">
|
---|
214 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
215 | </indexterm>
|
---|
216 | </listitem>
|
---|
217 | </varlistentry>
|
---|
218 |
|
---|
219 | <varlistentry id="gobject-query">
|
---|
220 | <term><command>gobject-query</command></term>
|
---|
221 | <listitem>
|
---|
222 | <para>is a small utility that draws a tree of types.</para>
|
---|
223 | <indexterm zone="glib2 gobject-query">
|
---|
224 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
225 | </indexterm>
|
---|
226 | </listitem>
|
---|
227 | </varlistentry>
|
---|
228 |
|
---|
229 | <varlistentry id="GLib-libraries">
|
---|
230 | <term>GLib libraries</term>
|
---|
231 | <listitem>
|
---|
232 | <para>contain a low-level core library for the
|
---|
233 | <application>GIMP</application> Toolkit.</para>
|
---|
234 | <indexterm zone="glib2 GLib-libraries">
|
---|
235 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | </variablelist>
|
---|
241 |
|
---|
242 | </sect2>
|
---|
243 |
|
---|
244 | </sect1>
|
---|