[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b31b493] | 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">
|
---|
[7ded7e3] | 9 | <!ENTITY glib2-md5sum "9bd3ac535c24b6c162be13b2c43c5adc">
|
---|
[b31b493] | 10 | <!ENTITY glib2-size "5.9 MB">
|
---|
[b84342d6] | 11 | <!ENTITY glib2-buildsize "180 MB">
|
---|
[7ded7e3] | 12 | <!ENTITY glib2-time "1.5 SBU (additional 4.0 SBU to run the test suite)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[7c461b3] | 15 | <sect1 id="glib2" xreflabel="GLib-&glib2-version;">
|
---|
[7c18102] | 16 | <?dbhtml filename="glib2.html"?>
|
---|
[4c3474fe] | 17 |
|
---|
[7c18102] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[4c3474fe] | 22 |
|
---|
[7c18102] | 23 | <title>GLib-&glib2-version;</title>
|
---|
[4c3474fe] | 24 |
|
---|
[7c18102] | 25 | <indexterm zone="glib2">
|
---|
| 26 | <primary sortas="a-GLib2">GLib2</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to GLib</title>
|
---|
[4c3474fe] | 31 |
|
---|
[b84342d6] | 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>
|
---|
[4c3474fe] | 38 |
|
---|
[4c77a949] | 39 | &lfs71_checked;
|
---|
[08f1ff7] | 40 |
|
---|
[7c18102] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[b84342d6] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&glib2-download-http;"/>
|
---|
| 46 | </para>
|
---|
[7c18102] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[b84342d6] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&glib2-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[7c18102] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[b84342d6] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &glib2-md5sum;
|
---|
| 56 | </para>
|
---|
[7c18102] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[b84342d6] | 59 | <para>
|
---|
| 60 | Download size: &glib2-size;
|
---|
| 61 | </para>
|
---|
[7c18102] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[b84342d6] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &glib2-buildsize;
|
---|
| 66 | </para>
|
---|
[7c18102] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[b84342d6] | 69 | <para>
|
---|
| 70 | Estimated build time: &glib2-time;
|
---|
| 71 | </para>
|
---|
[7c18102] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
[4c3474fe] | 74 |
|
---|
[06b397f7] | 75 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[4c3474fe] | 76 |
|
---|
[08f1ff7] | 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 78 | <para role="required">
|
---|
[b22e1383] | 79 | <xref linkend="libffi"/>,
|
---|
| 80 | <xref linkend="pkgconfig"/> and
|
---|
[b8a081c] | 81 | <xref linkend="python2"/>
|
---|
[08f1ff7] | 82 | </para>
|
---|
[4c3474fe] | 83 |
|
---|
[1b9e36e] | 84 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b8a081c] | 85 | <para role="recommended">
|
---|
| 86 | <xref linkend="pcre"/> (built with unicode properties)
|
---|
| 87 | </para>
|
---|
[1b9e36e] | 88 |
|
---|
[7c18102] | 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 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>
|
---|
[b31b493] | 96 |
|
---|
[b84342d6] | 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>
|
---|
[4c3474fe] | 104 |
|
---|
[75103a06] | 105 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
[b84342d6] | 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>
|
---|
[75103a06] | 115 |
|
---|
[1039de3] | 116 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 117 | <ulink url="&blfs-wiki;/glib2"/>
|
---|
| 118 | </para>
|
---|
[7c18102] | 119 | </sect2>
|
---|
[4c3474fe] | 120 |
|
---|
[7c18102] | 121 | <sect2 role="installation">
|
---|
| 122 | <title>Installation of GLib</title>
|
---|
| 123 |
|
---|
[b84342d6] | 124 | <para>
|
---|
| 125 | Install <application>GLib</application> by running the following
|
---|
| 126 | commands:
|
---|
| 127 | </para>
|
---|
[b31b493] | 128 |
|
---|
[b22e1383] | 129 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 130 | --with-pcre=system &&
|
---|
[7c18102] | 131 | make</userinput></screen>
|
---|
[4c3474fe] | 132 |
|
---|
[b84342d6] | 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>
|
---|
[4c3474fe] | 141 |
|
---|
[b84342d6] | 142 | <para>
|
---|
| 143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 144 | </para>
|
---|
[4c3474fe] | 145 |
|
---|
[7147513] | 146 | <screen role="root"><userinput>make install &&
|
---|
[08f1ff7] | 147 | ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
|
---|
[4c3474fe] | 148 |
|
---|
[b84342d6] | 149 | <para>
|
---|
| 150 | You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 151 | run the test suite.
|
---|
| 152 | </para>
|
---|
[c0e1d87] | 153 |
|
---|
[b84342d6] | 154 | <para>
|
---|
| 155 | To test the results, issue: <command>make check</command>.
|
---|
| 156 | </para>
|
---|
[c0e1d87] | 157 |
|
---|
[7c18102] | 158 | </sect2>
|
---|
[4c3474fe] | 159 |
|
---|
[7c18102] | 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
[864b24de] | 162 |
|
---|
[b22e1383] | 163 | <!--<para>
|
---|
[b84342d6] | 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.
|
---|
[b22e1383] | 169 | </para>-->
|
---|
[08f1ff7] | 170 |
|
---|
[b84342d6] | 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>
|
---|
[08f1ff7] | 175 |
|
---|
[b84342d6] | 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>
|
---|
[7147513] | 182 |
|
---|
[0913f48] | 183 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 184 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[0913f48] | 185 |
|
---|
[7c18102] | 186 | </sect2>
|
---|
[4c3474fe] | 187 |
|
---|
[7c18102] | 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>
|
---|
[4c3474fe] | 195 |
|
---|
[7c18102] | 196 | <seglistitem>
|
---|
[0913f48] | 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>
|
---|
[b8a081c] | 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
|
---|
[0913f48] | 212 | /usr/share/gtk-doc/html/{gio,glib,gobject}
|
---|
| 213 | </seg>
|
---|
[7c18102] | 214 | </seglistitem>
|
---|
| 215 | </segmentedlist>
|
---|
[4c3474fe] | 216 |
|
---|
[7c18102] | 217 | <variablelist>
|
---|
| 218 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 219 | <?dbfo list-presentation="list"?>
|
---|
| 220 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 221 |
|
---|
[b31b493] | 222 | <varlistentry id="gdbus">
|
---|
| 223 | <term><command>gdbus</command></term>
|
---|
| 224 | <listitem>
|
---|
[b84342d6] | 225 | <para>
|
---|
[7ded7e3] | 226 | is a simple used tool for working with D-Bus objects.
|
---|
[b84342d6] | 227 | </para>
|
---|
[b31b493] | 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>
|
---|
[b84342d6] | 237 | <para>
|
---|
| 238 | is used to generate code and/or documentation for one or
|
---|
| 239 | more <application>D-Bus</application> interfaces.
|
---|
| 240 | </para>
|
---|
[b31b493] | 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>
|
---|
[b84342d6] | 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>
|
---|
[b31b493] | 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>
|
---|
[b84342d6] | 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>
|
---|
[b31b493] | 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>
|
---|
[b84342d6] | 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>
|
---|
[b31b493] | 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 |
|
---|
[7c18102] | 289 | <varlistentry id="glib-genmarshal">
|
---|
| 290 | <term><command>glib-genmarshal</command></term>
|
---|
| 291 | <listitem>
|
---|
[b84342d6] | 292 | <para>
|
---|
| 293 | is a C code marshaller generation utility for GLib closures.
|
---|
| 294 | </para>
|
---|
[7c18102] | 295 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 296 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
[4c3474fe] | 300 |
|
---|
[7c18102] | 301 | <varlistentry id="glib-gettextize">
|
---|
| 302 | <term><command>glib-gettextize</command></term>
|
---|
| 303 | <listitem>
|
---|
[b84342d6] | 304 | <para>
|
---|
| 305 | is a variant of the <application>gettext</application>
|
---|
| 306 | internationalization utility.
|
---|
| 307 | </para>
|
---|
[7c18102] | 308 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 309 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
[4c3474fe] | 313 |
|
---|
[7c18102] | 314 | <varlistentry id="glib-mkenums">
|
---|
| 315 | <term><command>glib-mkenums</command></term>
|
---|
| 316 | <listitem>
|
---|
[b84342d6] | 317 | <para>
|
---|
| 318 | is a C language enum description generation utility.
|
---|
| 319 | </para>
|
---|
[7c18102] | 320 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 321 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 322 | </indexterm>
|
---|
| 323 | </listitem>
|
---|
| 324 | </varlistentry>
|
---|
[4c3474fe] | 325 |
|
---|
[7c18102] | 326 | <varlistentry id="gobject-query">
|
---|
| 327 | <term><command>gobject-query</command></term>
|
---|
| 328 | <listitem>
|
---|
[b84342d6] | 329 | <para>
|
---|
| 330 | is a small utility that draws a tree of types.
|
---|
| 331 | </para>
|
---|
[7c18102] | 332 | <indexterm zone="glib2 gobject-query">
|
---|
| 333 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 334 | </indexterm>
|
---|
| 335 | </listitem>
|
---|
| 336 | </varlistentry>
|
---|
[4c3474fe] | 337 |
|
---|
[b31b493] | 338 | <varlistentry id="gresource">
|
---|
| 339 | <term><command>gresource</command></term>
|
---|
| 340 | <listitem>
|
---|
[b84342d6] | 341 | <para>
|
---|
| 342 | offers a simple commandline interface to GResource.
|
---|
| 343 | </para>
|
---|
[b31b493] | 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>
|
---|
[b84342d6] | 353 | <para>
|
---|
| 354 | offers a simple commandline interface to GSettings.
|
---|
| 355 | </para>
|
---|
[b31b493] | 356 | <indexterm zone="glib2 gsettings">
|
---|
| 357 | <primary sortas="b-gsettings">gsettings</primary>
|
---|
| 358 | </indexterm>
|
---|
| 359 | </listitem>
|
---|
| 360 | </varlistentry>
|
---|
| 361 |
|
---|
[e103708b] | 362 | <varlistentry id="gtester">
|
---|
| 363 | <term><command>gtester</command></term>
|
---|
| 364 | <listitem>
|
---|
[b84342d6] | 365 | <para>
|
---|
| 366 | is a test running utility.
|
---|
| 367 | </para>
|
---|
[e103708b] | 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>
|
---|
[b84342d6] | 377 | <para>
|
---|
| 378 | is a test report formatting utility.
|
---|
| 379 | </para>
|
---|
[e103708b] | 380 | <indexterm zone="glib2 gtester-report">
|
---|
| 381 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 382 | </indexterm>
|
---|
| 383 | </listitem>
|
---|
| 384 | </varlistentry>
|
---|
| 385 |
|
---|
[7c18102] | 386 | <varlistentry id="GLib-libraries">
|
---|
| 387 | <term>GLib libraries</term>
|
---|
| 388 | <listitem>
|
---|
[b84342d6] | 389 | <para>
|
---|
| 390 | contain a low-level core libraries for the
|
---|
| 391 | <application>GIMP</application> Toolkit.
|
---|
| 392 | </para>
|
---|
[7c18102] | 393 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 394 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 395 | </indexterm>
|
---|
| 396 | </listitem>
|
---|
| 397 | </varlistentry>
|
---|
[4c3474fe] | 398 |
|
---|
[7c18102] | 399 | </variablelist>
|
---|
| 400 |
|
---|
| 401 | </sect2>
|
---|
[d4340990] | 402 |
|
---|
| 403 | </sect1>
|
---|