[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">
|
---|
[355495ce] | 9 | <!ENTITY glib2-md5sum "bf84fefd9c1a5b5a7a38736f4ddd674a">
|
---|
[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 |
|
---|
[43a4e608] | 39 | &lfs72_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 |
|
---|
[06b397f] | 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 |
|
---|
[355495ce] | 129 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 130 | --sysconfdir=/etc \
|
---|
| 131 | --with-pcre=system &&
|
---|
[7c18102] | 132 | make</userinput></screen>
|
---|
[4c3474fe] | 133 |
|
---|
[b84342d6] | 134 | <para>
|
---|
| 135 | The <application>GLib</application> test suite requires
|
---|
| 136 | <application>desktop-file-utils</application> in order to run. However,
|
---|
| 137 | <application>desktop-file-utils</application> requires
|
---|
| 138 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 139 | first install <application>GLib</application> and then run the test
|
---|
| 140 | suite.
|
---|
| 141 | </para>
|
---|
[4c3474fe] | 142 |
|
---|
[b84342d6] | 143 | <para>
|
---|
| 144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 145 | </para>
|
---|
[4c3474fe] | 146 |
|
---|
[355495ce] | 147 | <screen role="root"><userinput>make install</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 |
|
---|
[b84342d6] | 163 | <para>
|
---|
| 164 | <parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 165 | build to use a system-provided version of the
|
---|
| 166 | <application>PCRE</application> library instead of an internal
|
---|
| 167 | version.
|
---|
| 168 | </para>
|
---|
[7147513] | 169 |
|
---|
[0913f48] | 170 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 171 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[0913f48] | 172 |
|
---|
[7c18102] | 173 | </sect2>
|
---|
[4c3474fe] | 174 |
|
---|
[7c18102] | 175 | <sect2 role="content">
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
| 178 | <segmentedlist>
|
---|
| 179 | <segtitle>Installed Programs</segtitle>
|
---|
| 180 | <segtitle>Installed Libraries</segtitle>
|
---|
| 181 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 182 |
|
---|
[7c18102] | 183 | <seglistitem>
|
---|
[0913f48] | 184 | <seg>
|
---|
| 185 | gdbus, gdbus-codegen, gio-querymodules,
|
---|
| 186 | glib-compile-resources, glib-compile-schemas,
|
---|
| 187 | glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
| 188 | gobject-query, gresource, gsettings, gtester
|
---|
| 189 | and gtester-report
|
---|
| 190 | </seg>
|
---|
| 191 | <seg>
|
---|
| 192 | libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
| 193 | libgobject-2.0.so, libgthread-2.0.so and libgiofam.so
|
---|
| 194 | </seg>
|
---|
| 195 | <seg>
|
---|
[b8a081c] | 196 | /usr/include/{gio-unix-2.0,glib-2.0},
|
---|
| 197 | /usr/lib/{gdbus-2.0,gio,glib-2.0},
|
---|
| 198 | /usr/share/glib-2.0 and
|
---|
[0913f48] | 199 | /usr/share/gtk-doc/html/{gio,glib,gobject}
|
---|
| 200 | </seg>
|
---|
[7c18102] | 201 | </seglistitem>
|
---|
| 202 | </segmentedlist>
|
---|
[4c3474fe] | 203 |
|
---|
[7c18102] | 204 | <variablelist>
|
---|
| 205 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 206 | <?dbfo list-presentation="list"?>
|
---|
| 207 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 208 |
|
---|
[b31b493] | 209 | <varlistentry id="gdbus">
|
---|
| 210 | <term><command>gdbus</command></term>
|
---|
| 211 | <listitem>
|
---|
[b84342d6] | 212 | <para>
|
---|
[7ded7e3] | 213 | is a simple used tool for working with D-Bus objects.
|
---|
[b84342d6] | 214 | </para>
|
---|
[b31b493] | 215 | <indexterm zone="glib2 gdbus">
|
---|
| 216 | <primary sortas="b-gdbus">gdbus</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="gdbus-codegen">
|
---|
| 222 | <term><command>gdbus-codegen</command></term>
|
---|
| 223 | <listitem>
|
---|
[b84342d6] | 224 | <para>
|
---|
| 225 | is used to generate code and/or documentation for one or
|
---|
| 226 | more <application>D-Bus</application> interfaces.
|
---|
| 227 | </para>
|
---|
[b31b493] | 228 | <indexterm zone="glib2 gdbus-codegen">
|
---|
| 229 | <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="gio-querymodules">
|
---|
| 235 | <term><command>gio-querymodules</command></term>
|
---|
| 236 | <listitem>
|
---|
[b84342d6] | 237 | <para>
|
---|
| 238 | is used to create a giomodule.cache file in the listed directories.
|
---|
| 239 | This file lists the implemented extension points for each module that has
|
---|
| 240 | been found.
|
---|
| 241 | </para>
|
---|
[b31b493] | 242 | <indexterm zone="glib2 gio-querymodules">
|
---|
| 243 | <primary sortas="b-gio-querymodules">gio-querymodules</primary>
|
---|
| 244 | </indexterm>
|
---|
| 245 | </listitem>
|
---|
| 246 | </varlistentry>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="glib-compile-resources">
|
---|
| 249 | <term><command>glib-compile-resources</command></term>
|
---|
| 250 | <listitem>
|
---|
[b84342d6] | 251 | <para>
|
---|
| 252 | is used to read the resource description from file and
|
---|
| 253 | the files that it references to create a binary resource
|
---|
| 254 | bundle that is suitable for use with the GResource API.
|
---|
| 255 | </para>
|
---|
[b31b493] | 256 | <indexterm zone="glib2 glib-compile-resources">
|
---|
| 257 | <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="glib-compile-schemas">
|
---|
| 263 | <term><command>glib-compile-schemas</command></term>
|
---|
| 264 | <listitem>
|
---|
[b84342d6] | 265 | <para>
|
---|
| 266 | is used to compile all the GSettings XML schema files
|
---|
| 267 | in directory into a binary file with the name gschemas.compiled
|
---|
| 268 | that can be used by GSettings.
|
---|
| 269 | </para>
|
---|
[b31b493] | 270 | <indexterm zone="glib2 glib-compile-schemas">
|
---|
| 271 | <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
[7c18102] | 276 | <varlistentry id="glib-genmarshal">
|
---|
| 277 | <term><command>glib-genmarshal</command></term>
|
---|
| 278 | <listitem>
|
---|
[b84342d6] | 279 | <para>
|
---|
| 280 | is a C code marshaller generation utility for GLib closures.
|
---|
| 281 | </para>
|
---|
[7c18102] | 282 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 283 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
[4c3474fe] | 287 |
|
---|
[7c18102] | 288 | <varlistentry id="glib-gettextize">
|
---|
| 289 | <term><command>glib-gettextize</command></term>
|
---|
| 290 | <listitem>
|
---|
[b84342d6] | 291 | <para>
|
---|
| 292 | is a variant of the <application>gettext</application>
|
---|
| 293 | internationalization utility.
|
---|
| 294 | </para>
|
---|
[7c18102] | 295 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 296 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
[4c3474fe] | 300 |
|
---|
[7c18102] | 301 | <varlistentry id="glib-mkenums">
|
---|
| 302 | <term><command>glib-mkenums</command></term>
|
---|
| 303 | <listitem>
|
---|
[b84342d6] | 304 | <para>
|
---|
| 305 | is a C language enum description generation utility.
|
---|
| 306 | </para>
|
---|
[7c18102] | 307 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 308 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
[4c3474fe] | 312 |
|
---|
[7c18102] | 313 | <varlistentry id="gobject-query">
|
---|
| 314 | <term><command>gobject-query</command></term>
|
---|
| 315 | <listitem>
|
---|
[b84342d6] | 316 | <para>
|
---|
| 317 | is a small utility that draws a tree of types.
|
---|
| 318 | </para>
|
---|
[7c18102] | 319 | <indexterm zone="glib2 gobject-query">
|
---|
| 320 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
[4c3474fe] | 324 |
|
---|
[b31b493] | 325 | <varlistentry id="gresource">
|
---|
| 326 | <term><command>gresource</command></term>
|
---|
| 327 | <listitem>
|
---|
[b84342d6] | 328 | <para>
|
---|
| 329 | offers a simple commandline interface to GResource.
|
---|
| 330 | </para>
|
---|
[b31b493] | 331 | <indexterm zone="glib2 gresource">
|
---|
| 332 | <primary sortas="b-gresource">gresource</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
| 336 |
|
---|
| 337 | <varlistentry id="gsettings">
|
---|
| 338 | <term><command>gsettings</command></term>
|
---|
| 339 | <listitem>
|
---|
[b84342d6] | 340 | <para>
|
---|
| 341 | offers a simple commandline interface to GSettings.
|
---|
| 342 | </para>
|
---|
[b31b493] | 343 | <indexterm zone="glib2 gsettings">
|
---|
| 344 | <primary sortas="b-gsettings">gsettings</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
[e103708b] | 349 | <varlistentry id="gtester">
|
---|
| 350 | <term><command>gtester</command></term>
|
---|
| 351 | <listitem>
|
---|
[b84342d6] | 352 | <para>
|
---|
| 353 | is a test running utility.
|
---|
| 354 | </para>
|
---|
[e103708b] | 355 | <indexterm zone="glib2 gtester">
|
---|
| 356 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
| 361 | <varlistentry id="gtester-report">
|
---|
| 362 | <term><command>gtester-report</command></term>
|
---|
| 363 | <listitem>
|
---|
[b84342d6] | 364 | <para>
|
---|
| 365 | is a test report formatting utility.
|
---|
| 366 | </para>
|
---|
[e103708b] | 367 | <indexterm zone="glib2 gtester-report">
|
---|
| 368 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
| 372 |
|
---|
[7c18102] | 373 | <varlistentry id="GLib-libraries">
|
---|
| 374 | <term>GLib libraries</term>
|
---|
| 375 | <listitem>
|
---|
[b84342d6] | 376 | <para>
|
---|
| 377 | contain a low-level core libraries for the
|
---|
| 378 | <application>GIMP</application> Toolkit.
|
---|
| 379 | </para>
|
---|
[7c18102] | 380 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 381 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 382 | </indexterm>
|
---|
| 383 | </listitem>
|
---|
| 384 | </varlistentry>
|
---|
[4c3474fe] | 385 |
|
---|
[7c18102] | 386 | </variablelist>
|
---|
| 387 |
|
---|
| 388 | </sect2>
|
---|
[d4340990] | 389 |
|
---|
| 390 | </sect1>
|
---|