source: general/genlib/glib2.xml@ b8a081c

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 b8a081c was b8a081c, checked in by Krejzi <krejzi@…>, 12 years ago

glib 2.32.1, gdk-pixbuf 2.26.1, gsettings-desktop-schemas 3.4.1, glibmm 2.32.0, cairomm 1.10.0, gtkmm 3.4.0 and some xml fixes

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

  • Property mode set to 100644
File size: 13.6 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.32/glib-&glib2-version;.tar.xz">
8 <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.32/glib-&glib2-version;.tar.xz">
9 <!ENTITY glib2-md5sum "032c7cf9868c9aa186b490b155a41144">
10 <!ENTITY glib2-size "5.9 MB">
11 <!ENTITY glib2-buildsize "170 MB">
12 <!ENTITY glib2-time "1.2 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">
68 <xref linkend="libffi"/> and
69 <xref linkend="python2"/>
70 </para>
71
72 <bridgehead renderas="sect4">Recommended</bridgehead>
73 <para role="recommended">
74 <xref linkend="pcre"/> (built with unicode properties)
75 </para>
76
77 <bridgehead renderas="sect4">Optional</bridgehead>
78 <para role="optional">
79 <xref linkend="attr"/>,
80 <xref linkend="dbus"/> (required to run the tests),
81 <xref linkend="gamin"/> and
82 <xref linkend="gtk-doc"/>
83 </para>
84
85 <para><application>Gamin</application> requires
86 <application>GLib</application> in order to compile; therefore, you must
87 first install <application>GLib</application>, then compile
88 <application>Gamin</application>, and recompile
89 <application>GLib</application> against it.</para>
90
91 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
92 <para role="optional">Quoted directly from the <filename>INSTALL</filename>
93 file; <quote>Some of the mimetype-related functionality in GIO requires the
94 <command>update-mime-database</command> and
95 <command>update-desktop-database</command> utilities</quote>, which are part of
96 <xref linkend="shared-mime-info"/> and
97 <xref linkend="desktop-file-utils"/>, respectively.</para>
98
99 <para condition="html" role="usernotes">User Notes:
100 <ulink url="&blfs-wiki;/glib2"/></para>
101
102 </sect2>
103
104 <sect2 role="installation">
105 <title>Installation of GLib</title>
106
107 <para>Install <application>GLib</application> by running the following
108 commands:</para>
109
110 <!-- This should be discussed as the instructions in the tarball give
111 many reasons why the internal PCRE should be used -->
112
113 <!-- Re: PCRE 8.30 is bundled, and BLFS has same version -->
114
115<screen><userinput>PCRE_LIBS=-lpcre PCRE_CFLAGS=" " \
116LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=" " \
117./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system &amp;&amp;
118make</userinput></screen>
119
120 <para>The <application>GLib</application> test suite requires
121 <application>desktop-file-utils</application> in order to run. However,
122 <application>desktop-file-utils</application> requires
123 <application>GLib</application> in order to compile; therefore, you must
124 first install <application>GLib</application> and then run the test
125 suite.</para>
126
127 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
128
129<screen role="root"><userinput>make install &amp;&amp;
130ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
131
132 <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
133 run the test suite.</para>
134
135 <para>To test the results, issue: <command>make check</command>.</para>
136
137 </sect2>
138
139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
142 <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
143 for <application>pkg_config</application>, but it wants to use
144 <application>pkg_config</application> during the build process. These
145 environment variables work around not having
146 <application>pkg_config</application> available.</para>
147
148 <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
149 architecture dependent header file where programs can find it.</para>
150
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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
157 href="../../xincludes/gtk-doc-rebuild.xml"/>
158
159 </sect2>
160
161<!-- This has never caused any problems for me. A doc hint could help me
162 understand why this was here in first place.
163
164 <sect2 role="configuration">
165 <title>Configuring GLib</title>
166
167 <sect3>
168 <title>Configuration Information</title>
169
170 <para>By default, <application>GLib</application> assumes that all
171 filenames are in the UTF-8 charset. See the <xref
172 linkend="locale-wrong-filename-encoding"/> section of the <xref
173 linkend="locale-issues"/> page for more details on this kind of issue. In
174 order to tell <application>GLib</application> and applications that use
175 it that filenames are in the default locale encoding, set the variable
176 <envar>G_FILENAME_ENCODING</envar> to the value "@locale". As the
177 <systemitem class="username">root</systemitem> user:</para>
178
179<screen role="root"><userinput>cat &gt; /etc/profile.d/glib2-locale.sh &lt;&lt; "EOF"
180<literal># Use the current locale charset for filenames
181# in applications using GLib
182export G_FILENAME_ENCODING=@locale</literal>
183EOF</userinput></screen>
184
185 </sect3>
186
187 </sect2>
188-->
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Programs</segtitle>
195 <segtitle>Installed Libraries</segtitle>
196 <segtitle>Installed Directories</segtitle>
197
198 <seglistitem>
199 <seg>
200 gdbus, gdbus-codegen, gio-querymodules,
201 glib-compile-resources, glib-compile-schemas,
202 glib-genmarshal, glib-gettextize, glib-mkenums,
203 gobject-query, gresource, gsettings, gtester
204 and gtester-report
205 </seg>
206 <seg>
207 libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
208 libgobject-2.0.so, libgthread-2.0.so and libgiofam.so
209 </seg>
210 <seg>
211 /usr/include/{gio-unix-2.0,glib-2.0},
212 /usr/lib/{gdbus-2.0,gio,glib-2.0},
213 /usr/share/glib-2.0 and
214 /usr/share/gtk-doc/html/{gio,glib,gobject}
215 </seg>
216 </seglistitem>
217 </segmentedlist>
218
219 <variablelist>
220 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
221 <?dbfo list-presentation="list"?>
222 <?dbhtml list-presentation="table"?>
223
224 <varlistentry id="gdbus">
225 <term><command>gdbus</command></term>
226 <listitem>
227 <para>is a simple tool for working with D-Bus objects.</para>
228 <indexterm zone="glib2 gdbus">
229 <primary sortas="b-gdbus">gdbus</primary>
230 </indexterm>
231 </listitem>
232 </varlistentry>
233
234 <varlistentry id="gdbus-codegen">
235 <term><command>gdbus-codegen</command></term>
236 <listitem>
237 <para>is used to generate code and/or documentation for one or
238 more D-Bus interfaces.</para>
239 <indexterm zone="glib2 gdbus-codegen">
240 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry id="gio-querymodules">
246 <term><command>gio-querymodules</command></term>
247 <listitem>
248 <para>is used to create a giomodule.cache file in the listed directories.
249 This file lists the implemented extension points for each module that has
250 been found.</para>
251 <indexterm zone="glib2 gio-querymodules">
252 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="glib-compile-resources">
258 <term><command>glib-compile-resources</command></term>
259 <listitem>
260 <para>is used to read the resource description from file and
261 the files that it references to create a binary resource
262 bundle that is suitable for use with the GResource API.</para>
263 <indexterm zone="glib2 glib-compile-resources">
264 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="glib-compile-schemas">
270 <term><command>glib-compile-schemas</command></term>
271 <listitem>
272 <para>is used to compile all the GSettings XML schema files
273 in directory into a binary file with the name gschemas.compiled
274 that can be used by GSettings.</para>
275 <indexterm zone="glib2 glib-compile-schemas">
276 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="glib-genmarshal">
282 <term><command>glib-genmarshal</command></term>
283 <listitem>
284 <para>is a C code marshaller generation utility for GLib
285 closures.</para>
286 <indexterm zone="glib2 glib-genmarshal">
287 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="glib-gettextize">
293 <term><command>glib-gettextize</command></term>
294 <listitem>
295 <para>is a variant of the <application>gettext</application>
296 internationalization utility.</para>
297 <indexterm zone="glib2 glib-gettextize">
298 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="glib-mkenums">
304 <term><command>glib-mkenums</command></term>
305 <listitem>
306 <para>is a C language enum description generation utility.</para>
307 <indexterm zone="glib2 glib-mkenums">
308 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="gobject-query">
314 <term><command>gobject-query</command></term>
315 <listitem>
316 <para>is a small utility that draws a tree of types.</para>
317 <indexterm zone="glib2 gobject-query">
318 <primary sortas="b-gobject-query">gobject-query</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="gresource">
324 <term><command>gresource</command></term>
325 <listitem>
326 <para>offers a simple commandline interface to GResource.</para>
327 <indexterm zone="glib2 gresource">
328 <primary sortas="b-gresource">gresource</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="gsettings">
334 <term><command>gsettings</command></term>
335 <listitem>
336 <para>offers a simple commandline interface to GSettings.</para>
337 <indexterm zone="glib2 gsettings">
338 <primary sortas="b-gsettings">gsettings</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="gtester">
344 <term><command>gtester</command></term>
345 <listitem>
346 <para>is a test running utility.</para>
347 <indexterm zone="glib2 gtester">
348 <primary sortas="b-gtester">gtester</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="gtester-report">
354 <term><command>gtester-report</command></term>
355 <listitem>
356 <para>is a test report formatting utility.</para>
357 <indexterm zone="glib2 gtester-report">
358 <primary sortas="b-gtester-report">gtester-report</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
363 <varlistentry id="GLib-libraries">
364 <term>GLib libraries</term>
365 <listitem>
366 <para>contain a low-level core library for the
367 <application>GIMP</application> Toolkit.</para>
368 <indexterm zone="glib2 GLib-libraries">
369 <primary sortas="c-GLib-libraries">Glib libraries</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 </variablelist>
375
376 </sect2>
377
378</sect1>
Note: See TracBrowser for help on using the repository browser.