[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 |
|
---|
[e103708b] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.24/glib-&glib2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.24/glib-&glib2-version;.tar.bz2">
|
---|
| 9 | <!ENTITY glib2-md5sum "6a7db81c9a2cffe6a34dadb57d7ba2d2">
|
---|
| 10 | <!ENTITY glib2-size "5.1 MB">
|
---|
| 11 | <!ENTITY glib2-buildsize "106 MB">
|
---|
| 12 | <!ENTITY glib2-time "2.4 SBU (additional 4.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 |
|
---|
[06b397f7] | 32 | <para>The <application>GLib</application> package contains a low-level core
|
---|
[7c18102] | 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>
|
---|
[4c3474fe] | 36 |
|
---|
[a41f643] | 37 | <!-- Compiled against PCRE, Python, and desktop-file-utils.
|
---|
[c0e1d87] | 38 | All 76 tests passed -->
|
---|
| 39 |
|
---|
| 40 | &lfs65_checked;
|
---|
| 41 |
|
---|
[7c18102] | 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>
|
---|
[4c3474fe] | 63 |
|
---|
[06b397f7] | 64 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[4c3474fe] | 65 |
|
---|
[358241d1] | 66 | <!-- <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 67 | <para role="required"><xref linkend="pkgconfig"/></para> -->
|
---|
[4c3474fe] | 68 |
|
---|
[1b9e36e] | 69 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1bc4ab8f] | 70 | <para role="recommended"><xref linkend="pcre"/>
|
---|
[7147513] | 71 | (built with unicode properties)</para>
|
---|
[1b9e36e] | 72 |
|
---|
[7c18102] | 73 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f2fa50ca] | 74 | <para role="optional"><xref linkend="attr"/>,
|
---|
| 75 | <xref linkend="gamin"/>, and
|
---|
[7147513] | 76 | <xref linkend="gtk-doc"/></para>
|
---|
| 77 |
|
---|
[a41f643] | 78 | <para><application>Gamin</application> requires
|
---|
[9709041] | 79 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 80 | first install <application>GLib</application>, then compile
|
---|
| 81 | <application>Gamin</application>, and recompile
|
---|
| 82 | <application>GLib</application> against it.</para>
|
---|
| 83 |
|
---|
[7147513] | 84 | <bridgehead renderas="sect4">Optional Runtime Dependency for the
|
---|
| 85 | <command>gtester-report</command> program</bridgehead>
|
---|
| 86 | <para role="optional"><xref linkend="python"/></para>
|
---|
[4c3474fe] | 87 |
|
---|
[1039de3] | 88 | <para condition="html" role="usernotes">User Notes:
|
---|
| 89 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 90 |
|
---|
[7c18102] | 91 | </sect2>
|
---|
[4c3474fe] | 92 |
|
---|
[7c18102] | 93 | <sect2 role="installation">
|
---|
| 94 | <title>Installation of GLib</title>
|
---|
| 95 |
|
---|
[06b397f7] | 96 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 97 | commands:</para>
|
---|
| 98 |
|
---|
[7147513] | 99 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 100 | --with-pcre=system &&
|
---|
[7c18102] | 101 | make</userinput></screen>
|
---|
[4c3474fe] | 102 |
|
---|
[fd91fea] | 103 | <para>The <application>GLib</application> test suite requires
|
---|
| 104 | <application>desktop-file-utils</application> in order to run. However,
|
---|
| 105 | <application>desktop-file-utils</application> requires
|
---|
| 106 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 107 | first install <application>GLib</application> and then run the test
|
---|
[c0e1d87] | 108 | suite.</para>
|
---|
[4c3474fe] | 109 |
|
---|
[7c18102] | 110 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 111 |
|
---|
[7147513] | 112 | <screen role="root"><userinput>make install &&
|
---|
| 113 | chmod -v 755 /usr/bin/gtester-report</userinput></screen>
|
---|
[4c3474fe] | 114 |
|
---|
[c0e1d87] | 115 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 116 | run the test suite.</para>
|
---|
| 117 |
|
---|
| 118 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 119 |
|
---|
[7c18102] | 120 | </sect2>
|
---|
[4c3474fe] | 121 |
|
---|
[7c18102] | 122 | <sect2 role="commands">
|
---|
| 123 | <title>Command Explanations</title>
|
---|
[864b24de] | 124 |
|
---|
[e05cd03f] | 125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[56ce09e] | 126 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[4c3474fe] | 127 |
|
---|
[7147513] | 128 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 129 | build to use a system-provided version of the
|
---|
| 130 | <application>PCRE</application> library instead of an internal
|
---|
| 131 | version.</para>
|
---|
| 132 |
|
---|
[1b9e36e] | 133 | <para><parameter>--disable-static</parameter>: prevent static libraries
|
---|
| 134 | being built and installed.</para>
|
---|
| 135 |
|
---|
[7c18102] | 136 | </sect2>
|
---|
[4c3474fe] | 137 |
|
---|
[0f442884] | 138 | <sect2 role="configuration">
|
---|
| 139 | <title>Configuring GLib</title>
|
---|
| 140 |
|
---|
| 141 | <sect3>
|
---|
| 142 | <title>Configuration Information</title>
|
---|
| 143 |
|
---|
| 144 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 145 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 146 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[0f442884] | 147 | linkend="locale-issues"/> page for more details on this kind of
|
---|
[a41f643] | 148 | issue. In order to tell <application>GLib</application> and
|
---|
| 149 | applications that use it that filenames are in the default locale
|
---|
| 150 | encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
---|
[8fc023d2] | 151 | value "@locale":</para>
|
---|
[0f442884] | 152 |
|
---|
| 153 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
| 154 | <literal># Use the current locale charset for filenames
|
---|
| 155 | # in applications using GLib
|
---|
| 156 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 157 | EOF</userinput></screen>
|
---|
| 158 |
|
---|
| 159 | </sect3>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
[7c18102] | 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Programs</segtitle>
|
---|
| 168 | <segtitle>Installed Libraries</segtitle>
|
---|
| 169 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 170 |
|
---|
[7c18102] | 171 | <seglistitem>
|
---|
[e103708b] | 172 | <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
[7147513] | 173 | gobject-query, gtester and gtester-report</seg>
|
---|
[e103708b] | 174 | <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
| 175 | libgobject-2.0.so, and libgthread-2.0.so</seg>
|
---|
| 176 | <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
|
---|
| 177 | lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
|
---|
| 178 | gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
|
---|
[7c18102] | 179 | </seglistitem>
|
---|
| 180 | </segmentedlist>
|
---|
[4c3474fe] | 181 |
|
---|
[7c18102] | 182 | <variablelist>
|
---|
| 183 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 184 | <?dbfo list-presentation="list"?>
|
---|
| 185 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 186 |
|
---|
[7c18102] | 187 | <varlistentry id="glib-genmarshal">
|
---|
| 188 | <term><command>glib-genmarshal</command></term>
|
---|
| 189 | <listitem>
|
---|
| 190 | <para>is a C code marshaller generation utility for GLib
|
---|
| 191 | closures.</para>
|
---|
| 192 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 193 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
[4c3474fe] | 197 |
|
---|
[7c18102] | 198 | <varlistentry id="glib-gettextize">
|
---|
| 199 | <term><command>glib-gettextize</command></term>
|
---|
| 200 | <listitem>
|
---|
| 201 | <para>is a variant of the <application>gettext</application>
|
---|
| 202 | internationalization utility.</para>
|
---|
| 203 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 204 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
[4c3474fe] | 208 |
|
---|
[7c18102] | 209 | <varlistentry id="glib-mkenums">
|
---|
| 210 | <term><command>glib-mkenums</command></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>is a C language enum description generation utility.</para>
|
---|
| 213 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 214 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 215 | </indexterm>
|
---|
| 216 | </listitem>
|
---|
| 217 | </varlistentry>
|
---|
[4c3474fe] | 218 |
|
---|
[7c18102] | 219 | <varlistentry id="gobject-query">
|
---|
| 220 | <term><command>gobject-query</command></term>
|
---|
| 221 | <listitem>
|
---|
| 222 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 223 | <indexterm zone="glib2 gobject-query">
|
---|
| 224 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[4c3474fe] | 228 |
|
---|
[e103708b] | 229 | <varlistentry id="gtester">
|
---|
| 230 | <term><command>gtester</command></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>is a test running utility.</para>
|
---|
| 233 | <indexterm zone="glib2 gtester">
|
---|
| 234 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
| 238 |
|
---|
| 239 | <varlistentry id="gtester-report">
|
---|
| 240 | <term><command>gtester-report</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>is a test report formatting utility.</para>
|
---|
| 243 | <indexterm zone="glib2 gtester-report">
|
---|
| 244 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
[7c18102] | 249 | <varlistentry id="GLib-libraries">
|
---|
| 250 | <term>GLib libraries</term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>contain a low-level core library for the
|
---|
| 253 | <application>GIMP</application> Toolkit.</para>
|
---|
| 254 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 255 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 256 | </indexterm>
|
---|
| 257 | </listitem>
|
---|
| 258 | </varlistentry>
|
---|
[4c3474fe] | 259 |
|
---|
[7c18102] | 260 | </variablelist>
|
---|
| 261 |
|
---|
| 262 | </sect2>
|
---|
[d4340990] | 263 |
|
---|
| 264 | </sect1>
|
---|