source: general/genlib/glib2.xml@ bed59e0

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 bed59e0 was b22e1383, checked in by Ken Moffat <ken@…>, 12 years ago

Remove special measures from glib2 so that it again depends on pkgconfig.

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

  • Property mode set to 100644
File size: 12.9 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 "9bd3ac535c24b6c162be13b2c43c5adc">
10 <!ENTITY glib2-size "5.9 MB">
11 <!ENTITY glib2-buildsize "180 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>
33 The <application>GLib</application> package contains a low-level
34 libraries useful for providing data structure handling for C, portability
35 wrappers and interfaces for such runtime functionality as an
36 event loop, threads, dynamic loading and an object system.
37 </para>
38
39 &lfs71_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&glib2-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&glib2-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &glib2-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &glib2-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &glib2-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &glib2-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="libffi"/>,
80 <xref linkend="pkgconfig"/> and
81 <xref linkend="python2"/>
82 </para>
83
84 <bridgehead renderas="sect4">Recommended</bridgehead>
85 <para role="recommended">
86 <xref linkend="pcre"/> (built with unicode properties)
87 </para>
88
89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
91 <xref linkend="attr"/>,
92 <xref linkend="dbus"/> (required to run the tests),
93 <xref linkend="gamin"/> and
94 <xref linkend="gtk-doc"/>
95 </para>
96
97 <para>
98 <application>Gamin</application> requires
99 <application>GLib</application> in order to compile; therefore,
100 you must first install <application>GLib</application>,
101 then compile <application>Gamin</application>, and recompile
102 <application>GLib</application> against it.
103 </para>
104
105 <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
106 <para role="optional">
107 Quoted directly from the <filename>INSTALL</filename> file;
108 <quote>Some of the mimetype-related functionality in GIO requires the
109 <command>update-mime-database</command> and
110 <command>update-desktop-database</command> utilities</quote>,
111 which are part of
112 <xref linkend="shared-mime-info"/> and
113 <xref linkend="desktop-file-utils"/>, respectively.
114 </para>
115
116 <para condition="html" role="usernotes">User Notes:
117 <ulink url="&blfs-wiki;/glib2"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of GLib</title>
123
124 <para>
125 Install <application>GLib</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
130 --with-pcre=system &amp;&amp;
131make</userinput></screen>
132
133 <para>
134 The <application>GLib</application> test suite requires
135 <application>desktop-file-utils</application> in order to run. However,
136 <application>desktop-file-utils</application> requires
137 <application>GLib</application> in order to compile; therefore, you must
138 first install <application>GLib</application> and then run the test
139 suite.
140 </para>
141
142 <para>
143 Now, as the <systemitem class="username">root</systemitem> user:
144 </para>
145
146<screen role="root"><userinput>make install &amp;&amp;
147ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
148
149 <para>
150 You should now install <xref linkend="desktop-file-utils"/> and proceed to
151 run the test suite.
152 </para>
153
154 <para>
155 To test the results, issue: <command>make check</command>.
156 </para>
157
158 </sect2>
159
160 <sect2 role="commands">
161 <title>Command Explanations</title>
162
163<!--<para>
164 PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
165 for <application>pkg-config</application>, but it wants to use
166 <application>pkg-config</application> during the build process.
167 These environment variables work around not having
168 <application>pkg-config</application> available.
169 </para>-->
170
171 <para>
172 <command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
173 architecture dependent header file where programs can find it.
174 </para>
175
176 <para>
177 <parameter>--with-pcre=system</parameter>: This parameter causes the
178 build to use a system-provided version of the
179 <application>PCRE</application> library instead of an internal
180 version.
181 </para>
182
183 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
184 href="../../xincludes/gtk-doc-rebuild.xml"/>
185
186 </sect2>
187
188 <sect2 role="content">
189 <title>Contents</title>
190
191 <segmentedlist>
192 <segtitle>Installed Programs</segtitle>
193 <segtitle>Installed Libraries</segtitle>
194 <segtitle>Installed Directories</segtitle>
195
196 <seglistitem>
197 <seg>
198 gdbus, gdbus-codegen, gio-querymodules,
199 glib-compile-resources, glib-compile-schemas,
200 glib-genmarshal, glib-gettextize, glib-mkenums,
201 gobject-query, gresource, gsettings, gtester
202 and gtester-report
203 </seg>
204 <seg>
205 libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
206 libgobject-2.0.so, libgthread-2.0.so and libgiofam.so
207 </seg>
208 <seg>
209 /usr/include/{gio-unix-2.0,glib-2.0},
210 /usr/lib/{gdbus-2.0,gio,glib-2.0},
211 /usr/share/glib-2.0 and
212 /usr/share/gtk-doc/html/{gio,glib,gobject}
213 </seg>
214 </seglistitem>
215 </segmentedlist>
216
217 <variablelist>
218 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
219 <?dbfo list-presentation="list"?>
220 <?dbhtml list-presentation="table"?>
221
222 <varlistentry id="gdbus">
223 <term><command>gdbus</command></term>
224 <listitem>
225 <para>
226 is a simple used tool for working with D-Bus objects.
227 </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>
238 is used to generate code and/or documentation for one or
239 more <application>D-Bus</application> interfaces.
240 </para>
241 <indexterm zone="glib2 gdbus-codegen">
242 <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="gio-querymodules">
248 <term><command>gio-querymodules</command></term>
249 <listitem>
250 <para>
251 is used to create a giomodule.cache file in the listed directories.
252 This file lists the implemented extension points for each module that has
253 been found.
254 </para>
255 <indexterm zone="glib2 gio-querymodules">
256 <primary sortas="b-gio-querymodules">gio-querymodules</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="glib-compile-resources">
262 <term><command>glib-compile-resources</command></term>
263 <listitem>
264 <para>
265 is used to read the resource description from file and
266 the files that it references to create a binary resource
267 bundle that is suitable for use with the GResource API.
268 </para>
269 <indexterm zone="glib2 glib-compile-resources">
270 <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="glib-compile-schemas">
276 <term><command>glib-compile-schemas</command></term>
277 <listitem>
278 <para>
279 is used to compile all the GSettings XML schema files
280 in directory into a binary file with the name gschemas.compiled
281 that can be used by GSettings.
282 </para>
283 <indexterm zone="glib2 glib-compile-schemas">
284 <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="glib-genmarshal">
290 <term><command>glib-genmarshal</command></term>
291 <listitem>
292 <para>
293 is a C code marshaller generation utility for GLib closures.
294 </para>
295 <indexterm zone="glib2 glib-genmarshal">
296 <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 <varlistentry id="glib-gettextize">
302 <term><command>glib-gettextize</command></term>
303 <listitem>
304 <para>
305 is a variant of the <application>gettext</application>
306 internationalization utility.
307 </para>
308 <indexterm zone="glib2 glib-gettextize">
309 <primary sortas="b-glib-gettextize">glib-gettextize</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="glib-mkenums">
315 <term><command>glib-mkenums</command></term>
316 <listitem>
317 <para>
318 is a C language enum description generation utility.
319 </para>
320 <indexterm zone="glib2 glib-mkenums">
321 <primary sortas="b-glib-mkenums">glib-mkenums</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="gobject-query">
327 <term><command>gobject-query</command></term>
328 <listitem>
329 <para>
330 is a small utility that draws a tree of types.
331 </para>
332 <indexterm zone="glib2 gobject-query">
333 <primary sortas="b-gobject-query">gobject-query</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="gresource">
339 <term><command>gresource</command></term>
340 <listitem>
341 <para>
342 offers a simple commandline interface to GResource.
343 </para>
344 <indexterm zone="glib2 gresource">
345 <primary sortas="b-gresource">gresource</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="gsettings">
351 <term><command>gsettings</command></term>
352 <listitem>
353 <para>
354 offers a simple commandline interface to GSettings.
355 </para>
356 <indexterm zone="glib2 gsettings">
357 <primary sortas="b-gsettings">gsettings</primary>
358 </indexterm>
359 </listitem>
360 </varlistentry>
361
362 <varlistentry id="gtester">
363 <term><command>gtester</command></term>
364 <listitem>
365 <para>
366 is a test running utility.
367 </para>
368 <indexterm zone="glib2 gtester">
369 <primary sortas="b-gtester">gtester</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 <varlistentry id="gtester-report">
375 <term><command>gtester-report</command></term>
376 <listitem>
377 <para>
378 is a test report formatting utility.
379 </para>
380 <indexterm zone="glib2 gtester-report">
381 <primary sortas="b-gtester-report">gtester-report</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="GLib-libraries">
387 <term>GLib libraries</term>
388 <listitem>
389 <para>
390 contain a low-level core libraries for the
391 <application>GIMP</application> Toolkit.
392 </para>
393 <indexterm zone="glib2 GLib-libraries">
394 <primary sortas="c-GLib-libraries">Glib libraries</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
399 </variablelist>
400
401 </sect2>
402
403</sect1>
Note: See TracBrowser for help on using the repository browser.