[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 |
|
---|
[d4615e0d] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.44/glib-&glib2-version;.tar.xz">
|
---|
| 8 | <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.44/glib-&glib2-version;.tar.xz">
|
---|
[04626dde] | 9 | <!ENTITY glib2-md5sum "83efba4722a9674b97437d1d99af79db">
|
---|
[d4615e0d] | 10 | <!ENTITY glib2-size "6.9 MB">
|
---|
[04626dde] | 11 | <!ENTITY glib2-buildsize "187 MB (additional 72 MB to run the test suite)">
|
---|
| 12 | <!ENTITY glib2-time "0.8 SBU (additional 3.1 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>
|
---|
[2c38e951] | 33 | The <application>GLib</application> package contains low-level
|
---|
[0d7900a] | 34 | libraries useful for providing data structure handling for C, portability
|
---|
[b84342d6] | 35 | wrappers and interfaces for such runtime functionality as an
|
---|
| 36 | event loop, threads, dynamic loading and an object system.
|
---|
| 37 | </para>
|
---|
[4c3474fe] | 38 |
|
---|
[f3a1cd14] | 39 | &lfs77_checked; &gcc5_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">
|
---|
[adf6dd9a] | 79 | <xref linkend="libffi"/> and
|
---|
[860b8f3] | 80 | <xref linkend="python2"/> or <xref linkend="python3"/>
|
---|
[0d7900a] | 81 | </para>
|
---|
[4c3474fe] | 82 |
|
---|
[1b9e36e] | 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[b8a081c] | 84 | <para role="recommended">
|
---|
[d3e019dc] | 85 | <xref linkend="pcre"/> (built with Unicode properties)
|
---|
[b8a081c] | 86 | </para>
|
---|
[1b9e36e] | 87 |
|
---|
[7c18102] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 89 | <para role="optional">
|
---|
[2c38e951] | 90 | <xref linkend="dbus"/> (required for some tests),
|
---|
[2f0f7a0] | 91 | <xref linkend="elfutils"/>,
|
---|
[43972176] | 92 | <xref linkend="gtk-doc"/>, and
|
---|
| 93 | <ulink url="ftp://oss.sgi.com/projects/fam/download/stable/">FAM library</ulink>
|
---|
[b8a081c] | 94 | </para>
|
---|
[b31b493] | 95 |
|
---|
[75103a06] | 96 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
[b84342d6] | 97 | <para role="optional">
|
---|
[70b674f2] | 98 | Quoted directly from the <filename>INSTALL</filename> file:
|
---|
[b84342d6] | 99 | <quote>Some of the mimetype-related functionality in GIO requires the
|
---|
| 100 | <command>update-mime-database</command> and
|
---|
[0d7900a] | 101 | <command>update-desktop-database</command> utilities</quote>,
|
---|
[b84342d6] | 102 | which are part of
|
---|
| 103 | <xref linkend="shared-mime-info"/> and
|
---|
| 104 | <xref linkend="desktop-file-utils"/>, respectively.
|
---|
| 105 | </para>
|
---|
[75103a06] | 106 |
|
---|
[1039de3] | 107 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 108 | <ulink url="&blfs-wiki;/glib2"/>
|
---|
| 109 | </para>
|
---|
[7c18102] | 110 | </sect2>
|
---|
[4c3474fe] | 111 |
|
---|
[7c18102] | 112 | <sect2 role="installation">
|
---|
| 113 | <title>Installation of GLib</title>
|
---|
| 114 |
|
---|
[b84342d6] | 115 | <para>
|
---|
| 116 | Install <application>GLib</application> by running the following
|
---|
| 117 | commands:
|
---|
| 118 | </para>
|
---|
[b31b493] | 119 |
|
---|
[70b674f2] | 120 | <screen><userinput>./configure --prefix=/usr --with-pcre=system &&
|
---|
[7c18102] | 121 | make</userinput></screen>
|
---|
[4c3474fe] | 122 |
|
---|
[b84342d6] | 123 | <para>
|
---|
| 124 | The <application>GLib</application> test suite requires
|
---|
[2c38e951] | 125 | <application>desktop-file-utils</application> for some tests. However,
|
---|
[b84342d6] | 126 | <application>desktop-file-utils</application> requires
|
---|
| 127 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 128 | first install <application>GLib</application> and then run the test
|
---|
| 129 | suite.
|
---|
| 130 | </para>
|
---|
[4c3474fe] | 131 |
|
---|
[b84342d6] | 132 | <para>
|
---|
| 133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
[4c3474fe] | 135 |
|
---|
[355495ce] | 136 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4c3474fe] | 137 |
|
---|
[b84342d6] | 138 | <para>
|
---|
| 139 | You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 140 | run the test suite.
|
---|
| 141 | </para>
|
---|
[c0e1d87] | 142 |
|
---|
[b84342d6] | 143 | <para>
|
---|
[2c38e951] | 144 | To test the results, after having installed the package, issue:
|
---|
[d4615e0d] | 145 | <command>make -k check</command>.
|
---|
[b84342d6] | 146 | </para>
|
---|
[c0e1d87] | 147 |
|
---|
[7c18102] | 148 | </sect2>
|
---|
[4c3474fe] | 149 |
|
---|
[7c18102] | 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
[864b24de] | 152 |
|
---|
[b84342d6] | 153 | <para>
|
---|
[359fdb62] | 154 | <parameter>--with-pcre=system</parameter>: This switch causes the
|
---|
[b84342d6] | 155 | build to use a system-provided version of the
|
---|
| 156 | <application>PCRE</application> library instead of an internal
|
---|
| 157 | version.
|
---|
| 158 | </para>
|
---|
[7147513] | 159 |
|
---|
[0913f48] | 160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 161 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[0913f48] | 162 |
|
---|
[860b8f3] | 163 | <para>
|
---|
| 164 | <option>--with-python=python3</option>: Add this switch if you want GLib
|
---|
| 165 | to use Python3 instead of Python2.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[7c18102] | 168 | </sect2>
|
---|
[4c3474fe] | 169 |
|
---|
[7c18102] | 170 | <sect2 role="content">
|
---|
| 171 | <title>Contents</title>
|
---|
| 172 |
|
---|
| 173 | <segmentedlist>
|
---|
| 174 | <segtitle>Installed Programs</segtitle>
|
---|
| 175 | <segtitle>Installed Libraries</segtitle>
|
---|
| 176 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 177 |
|
---|
[7c18102] | 178 | <seglistitem>
|
---|
[0913f48] | 179 | <seg>
|
---|
[2f0f7a0] | 180 | gapplication, gdbus, gdbus-codegen, gio-querymodules,
|
---|
[0913f48] | 181 | glib-compile-resources, glib-compile-schemas,
|
---|
| 182 | glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
[70b674f2] | 183 | gobject-query, gresource, gsettings, gtester,
|
---|
[0913f48] | 184 | and gtester-report
|
---|
| 185 | </seg>
|
---|
| 186 | <seg>
|
---|
| 187 | libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
[70b674f2] | 188 | libgobject-2.0.so, and libgthread-2.0.so
|
---|
[0913f48] | 189 | </seg>
|
---|
| 190 | <seg>
|
---|
[d3e019dc] | 191 | /usr/include/gio-unix-2.0,
|
---|
| 192 | /usr/include/glib-2.0,
|
---|
| 193 | /usr/lib/gio,
|
---|
| 194 | /usr/lib/glib-2.0,
|
---|
| 195 | /usr/share/glib-2.0,
|
---|
| 196 | /usr/share/gtk-doc/html/gio,
|
---|
[70b674f2] | 197 | /usr/share/gtk-doc/html/glib, and
|
---|
[d3e019dc] | 198 | /usr/share/gtk-doc/html/gobject
|
---|
[0913f48] | 199 | </seg>
|
---|
[7c18102] | 200 | </seglistitem>
|
---|
| 201 | </segmentedlist>
|
---|
[4c3474fe] | 202 |
|
---|
[7c18102] | 203 | <variablelist>
|
---|
| 204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 205 | <?dbfo list-presentation="list"?>
|
---|
| 206 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 207 |
|
---|
[837e96ed] | 208 | <varlistentry id="gapplication">
|
---|
| 209 | <term><command>gapplication</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>
|
---|
| 212 | can be used to start applications and can be used to send
|
---|
| 213 | messages to already-running instances of other applications.
|
---|
| 214 | </para>
|
---|
| 215 | <indexterm zone="glib2 gapplication">
|
---|
| 216 | <primary sortas="b-gapplication">application</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
[b31b493] | 220 | <varlistentry id="gdbus">
|
---|
| 221 | <term><command>gdbus</command></term>
|
---|
| 222 | <listitem>
|
---|
[b84342d6] | 223 | <para>
|
---|
[d3e019dc] | 224 | is a simple tool used for working with
|
---|
| 225 | <application>D-Bus</application> objects.
|
---|
[b84342d6] | 226 | </para>
|
---|
[b31b493] | 227 | <indexterm zone="glib2 gdbus">
|
---|
| 228 | <primary sortas="b-gdbus">gdbus</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="gdbus-codegen">
|
---|
| 234 | <term><command>gdbus-codegen</command></term>
|
---|
| 235 | <listitem>
|
---|
[b84342d6] | 236 | <para>
|
---|
[0d7900a] | 237 | is used to generate code and/or documentation for one or
|
---|
[b84342d6] | 238 | more <application>D-Bus</application> interfaces.
|
---|
| 239 | </para>
|
---|
[b31b493] | 240 | <indexterm zone="glib2 gdbus-codegen">
|
---|
| 241 | <primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="gio-querymodules">
|
---|
| 247 | <term><command>gio-querymodules</command></term>
|
---|
| 248 | <listitem>
|
---|
[b84342d6] | 249 | <para>
|
---|
[0d7900a] | 250 | is used to create a giomodule.cache file in the listed directories.
|
---|
[d3e019dc] | 251 | This file lists the implemented extension points for each module
|
---|
| 252 | that has been found.
|
---|
[b84342d6] | 253 | </para>
|
---|
[b31b493] | 254 | <indexterm zone="glib2 gio-querymodules">
|
---|
| 255 | <primary sortas="b-gio-querymodules">gio-querymodules</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
| 259 |
|
---|
| 260 | <varlistentry id="glib-compile-resources">
|
---|
| 261 | <term><command>glib-compile-resources</command></term>
|
---|
| 262 | <listitem>
|
---|
[b84342d6] | 263 | <para>
|
---|
[0d7900a] | 264 | is used to read the resource description from file and
|
---|
| 265 | the files that it references to create a binary resource
|
---|
[b84342d6] | 266 | bundle that is suitable for use with the GResource API.
|
---|
| 267 | </para>
|
---|
[b31b493] | 268 | <indexterm zone="glib2 glib-compile-resources">
|
---|
| 269 | <primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="glib-compile-schemas">
|
---|
| 275 | <term><command>glib-compile-schemas</command></term>
|
---|
| 276 | <listitem>
|
---|
[b84342d6] | 277 | <para>
|
---|
[0d7900a] | 278 | is used to compile all the GSettings XML schema files
|
---|
| 279 | in directory into a binary file with the name gschemas.compiled
|
---|
[b84342d6] | 280 | that can be used by GSettings.
|
---|
| 281 | </para>
|
---|
[b31b493] | 282 | <indexterm zone="glib2 glib-compile-schemas">
|
---|
| 283 | <primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
[7c18102] | 288 | <varlistentry id="glib-genmarshal">
|
---|
| 289 | <term><command>glib-genmarshal</command></term>
|
---|
| 290 | <listitem>
|
---|
[b84342d6] | 291 | <para>
|
---|
| 292 | is a C code marshaller generation utility for GLib closures.
|
---|
| 293 | </para>
|
---|
[7c18102] | 294 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 295 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
[4c3474fe] | 299 |
|
---|
[7c18102] | 300 | <varlistentry id="glib-gettextize">
|
---|
| 301 | <term><command>glib-gettextize</command></term>
|
---|
| 302 | <listitem>
|
---|
[b84342d6] | 303 | <para>
|
---|
| 304 | is a variant of the <application>gettext</application>
|
---|
| 305 | internationalization utility.
|
---|
| 306 | </para>
|
---|
[7c18102] | 307 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 308 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 309 | </indexterm>
|
---|
| 310 | </listitem>
|
---|
| 311 | </varlistentry>
|
---|
[4c3474fe] | 312 |
|
---|
[7c18102] | 313 | <varlistentry id="glib-mkenums">
|
---|
| 314 | <term><command>glib-mkenums</command></term>
|
---|
| 315 | <listitem>
|
---|
[b84342d6] | 316 | <para>
|
---|
| 317 | is a C language enum description generation utility.
|
---|
| 318 | </para>
|
---|
[7c18102] | 319 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 320 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 321 | </indexterm>
|
---|
| 322 | </listitem>
|
---|
| 323 | </varlistentry>
|
---|
[4c3474fe] | 324 |
|
---|
[7c18102] | 325 | <varlistentry id="gobject-query">
|
---|
| 326 | <term><command>gobject-query</command></term>
|
---|
| 327 | <listitem>
|
---|
[b84342d6] | 328 | <para>
|
---|
| 329 | is a small utility that draws a tree of types.
|
---|
| 330 | </para>
|
---|
[7c18102] | 331 | <indexterm zone="glib2 gobject-query">
|
---|
| 332 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 333 | </indexterm>
|
---|
| 334 | </listitem>
|
---|
| 335 | </varlistentry>
|
---|
[4c3474fe] | 336 |
|
---|
[b31b493] | 337 | <varlistentry id="gresource">
|
---|
| 338 | <term><command>gresource</command></term>
|
---|
| 339 | <listitem>
|
---|
[b84342d6] | 340 | <para>
|
---|
| 341 | offers a simple commandline interface to GResource.
|
---|
| 342 | </para>
|
---|
[b31b493] | 343 | <indexterm zone="glib2 gresource">
|
---|
| 344 | <primary sortas="b-gresource">gresource</primary>
|
---|
| 345 | </indexterm>
|
---|
| 346 | </listitem>
|
---|
| 347 | </varlistentry>
|
---|
| 348 |
|
---|
| 349 | <varlistentry id="gsettings">
|
---|
| 350 | <term><command>gsettings</command></term>
|
---|
| 351 | <listitem>
|
---|
[b84342d6] | 352 | <para>
|
---|
| 353 | offers a simple commandline interface to GSettings.
|
---|
| 354 | </para>
|
---|
[b31b493] | 355 | <indexterm zone="glib2 gsettings">
|
---|
| 356 | <primary sortas="b-gsettings">gsettings</primary>
|
---|
| 357 | </indexterm>
|
---|
| 358 | </listitem>
|
---|
| 359 | </varlistentry>
|
---|
| 360 |
|
---|
[e103708b] | 361 | <varlistentry id="gtester">
|
---|
| 362 | <term><command>gtester</command></term>
|
---|
| 363 | <listitem>
|
---|
[b84342d6] | 364 | <para>
|
---|
| 365 | is a test running utility.
|
---|
| 366 | </para>
|
---|
[e103708b] | 367 | <indexterm zone="glib2 gtester">
|
---|
| 368 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
| 372 |
|
---|
| 373 | <varlistentry id="gtester-report">
|
---|
| 374 | <term><command>gtester-report</command></term>
|
---|
| 375 | <listitem>
|
---|
[b84342d6] | 376 | <para>
|
---|
| 377 | is a test report formatting utility.
|
---|
| 378 | </para>
|
---|
[e103708b] | 379 | <indexterm zone="glib2 gtester-report">
|
---|
| 380 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 381 | </indexterm>
|
---|
| 382 | </listitem>
|
---|
| 383 | </varlistentry>
|
---|
| 384 |
|
---|
[7c18102] | 385 | <varlistentry id="GLib-libraries">
|
---|
| 386 | <term>GLib libraries</term>
|
---|
| 387 | <listitem>
|
---|
[b84342d6] | 388 | <para>
|
---|
[2c38e951] | 389 | contain low-level core libraries for the
|
---|
[b84342d6] | 390 | <application>GIMP</application> Toolkit.
|
---|
| 391 | </para>
|
---|
[7c18102] | 392 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 393 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 394 | </indexterm>
|
---|
| 395 | </listitem>
|
---|
| 396 | </varlistentry>
|
---|
[4c3474fe] | 397 |
|
---|
[7c18102] | 398 | </variablelist>
|
---|
| 399 |
|
---|
| 400 | </sect2>
|
---|
[d4340990] | 401 |
|
---|
| 402 | </sect1>
|
---|