[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 |
|
---|
[4749981] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.30/glib-&glib2-version;.tar.xz">
|
---|
| 8 | <!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.30/glib-&glib2-version;.tar.xz">
|
---|
| 9 | <!ENTITY glib2-md5sum "b7dd26aa83de0b59c867a0b9eb9f9462">
|
---|
[3b10fa8] | 10 | <!ENTITY glib2-size "7.4 MB">
|
---|
[08f1ff7] | 11 | <!ENTITY glib2-buildsize "179 MB">
|
---|
[75103a06] | 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 |
|
---|
[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 |
|
---|
[4c77a949] | 37 | &lfs71_checked;
|
---|
[08f1ff7] | 38 |
|
---|
[a41f643] | 39 | <!-- Compiled against PCRE, Python, and desktop-file-utils.
|
---|
[75103a06] | 40 | 1 test failed (regex) -->
|
---|
[c0e1d87] | 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 |
|
---|
[08f1ff7] | 66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[4716d52] | 67 | <para role="required"><xref linkend="libffi"/> and <xref linkend="python2"/>
|
---|
[08f1ff7] | 68 | <!--<para role="required"><xref linkend="pkgconfig"/> -->
|
---|
| 69 | </para>
|
---|
[4c3474fe] | 70 |
|
---|
[75103a06] | 71 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 72 | many reasons why the internal PCRE should be used -->
|
---|
[1b9e36e] | 73 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[1bc4ab8f] | 74 | <para role="recommended"><xref linkend="pcre"/>
|
---|
[7147513] | 75 | (built with unicode properties)</para>
|
---|
[1b9e36e] | 76 |
|
---|
[7c18102] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[61135fc] | 78 | <para role="optional"><xref linkend="attr"/>, <!-- <xref linkend="gamin"/>,
|
---|
| 79 | --> <xref linkend="dbus"/> (required to run the tests) and
|
---|
[7147513] | 80 | <xref linkend="gtk-doc"/></para>
|
---|
| 81 |
|
---|
[08f1ff7] | 82 | <!-- Couldn't find this
|
---|
[a41f643] | 83 | <para><application>Gamin</application> requires
|
---|
[9709041] | 84 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 85 | first install <application>GLib</application>, then compile
|
---|
| 86 | <application>Gamin</application>, and recompile
|
---|
[08f1ff7] | 87 | <application>GLib</application> against it.</para> -->
|
---|
[4c3474fe] | 88 |
|
---|
[75103a06] | 89 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
| 90 | <para role="optional">Quoted directly from the <filename>INSTALL</filename>
|
---|
| 91 | file; <quote>Some of the mimetype-related functionality in GIO requires the
|
---|
| 92 | <command>update-mime-database</command> and
|
---|
[3b10fa8] | 93 | <command>update-desktop-database</command> utilities</quote>, which are part of
|
---|
[75103a06] | 94 | <xref linkend="shared-mime-info"/> and
|
---|
[3b10fa8] | 95 | <xref linkend="desktop-file-utils"/>, respectively.</para>
|
---|
[75103a06] | 96 |
|
---|
[1039de3] | 97 | <para condition="html" role="usernotes">User Notes:
|
---|
| 98 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 99 |
|
---|
[7c18102] | 100 | </sect2>
|
---|
[4c3474fe] | 101 |
|
---|
[7c18102] | 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of GLib</title>
|
---|
| 104 |
|
---|
[06b397f7] | 105 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 106 | commands:</para>
|
---|
| 107 |
|
---|
[75103a06] | 108 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 109 | many reasons why the internal PCRE should be used -->
|
---|
[08f1ff7] | 110 | <screen><userinput>PCRE_LIBS=-lpcre PCRE_CFLAGS=" " \
|
---|
[b4e7a79] | 111 | LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=-I/usr/lib/libffi-3.0.10/include \
|
---|
[4749981] | 112 | ./configure --prefix=/usr --sysconfdir=/etc --with-pcre=system &&
|
---|
[7c18102] | 113 | make</userinput></screen>
|
---|
[4c3474fe] | 114 |
|
---|
[fd91fea] | 115 | <para>The <application>GLib</application> test suite requires
|
---|
| 116 | <application>desktop-file-utils</application> in order to run. However,
|
---|
| 117 | <application>desktop-file-utils</application> requires
|
---|
| 118 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 119 | first install <application>GLib</application> and then run the test
|
---|
[c0e1d87] | 120 | suite.</para>
|
---|
[4c3474fe] | 121 |
|
---|
[7c18102] | 122 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 123 |
|
---|
[7147513] | 124 | <screen role="root"><userinput>make install &&
|
---|
[08f1ff7] | 125 | ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
|
---|
[4c3474fe] | 126 |
|
---|
[c0e1d87] | 127 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 128 | run the test suite.</para>
|
---|
| 129 |
|
---|
| 130 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 131 |
|
---|
[7c18102] | 132 | </sect2>
|
---|
[4c3474fe] | 133 |
|
---|
[7c18102] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
[864b24de] | 136 |
|
---|
[08f1ff7] | 137 | <para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
|
---|
| 138 | for <application>pkg_config</application>, but it wants to use
|
---|
| 139 | <application>pkg_config</application> during the build process. These
|
---|
| 140 | environment variables work around not having
|
---|
| 141 | <application>pkg_config</application> available.</para>
|
---|
| 142 |
|
---|
| 143 | <para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
|
---|
| 144 | architecture dependent header file where programs can find it.</para>
|
---|
| 145 |
|
---|
[e05cd03f] | 146 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[56ce09e] | 147 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[4c3474fe] | 148 |
|
---|
[75103a06] | 149 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 150 | many reasons why the internal PCRE should be used -->
|
---|
[7147513] | 151 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 152 | build to use a system-provided version of the
|
---|
| 153 | <application>PCRE</application> library instead of an internal
|
---|
| 154 | version.</para>
|
---|
| 155 |
|
---|
[7c18102] | 156 | </sect2>
|
---|
[4c3474fe] | 157 |
|
---|
[0f442884] | 158 | <sect2 role="configuration">
|
---|
| 159 | <title>Configuring GLib</title>
|
---|
| 160 |
|
---|
| 161 | <sect3>
|
---|
| 162 | <title>Configuration Information</title>
|
---|
| 163 |
|
---|
| 164 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 165 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 166 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[0f442884] | 167 | linkend="locale-issues"/> page for more details on this kind of
|
---|
[a41f643] | 168 | issue. In order to tell <application>GLib</application> and
|
---|
| 169 | applications that use it that filenames are in the default locale
|
---|
| 170 | encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
---|
[8fc023d2] | 171 | value "@locale":</para>
|
---|
[0f442884] | 172 |
|
---|
| 173 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
| 174 | <literal># Use the current locale charset for filenames
|
---|
| 175 | # in applications using GLib
|
---|
| 176 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 177 | EOF</userinput></screen>
|
---|
| 178 |
|
---|
| 179 | </sect3>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
[7c18102] | 183 | <sect2 role="content">
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
| 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Programs</segtitle>
|
---|
| 188 | <segtitle>Installed Libraries</segtitle>
|
---|
| 189 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 190 |
|
---|
[7c18102] | 191 | <seglistitem>
|
---|
[e103708b] | 192 | <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
[7147513] | 193 | gobject-query, gtester and gtester-report</seg>
|
---|
[e103708b] | 194 | <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
| 195 | libgobject-2.0.so, and libgthread-2.0.so</seg>
|
---|
| 196 | <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
|
---|
| 197 | lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
|
---|
| 198 | gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
|
---|
[7c18102] | 199 | </seglistitem>
|
---|
| 200 | </segmentedlist>
|
---|
[4c3474fe] | 201 |
|
---|
[7c18102] | 202 | <variablelist>
|
---|
| 203 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 204 | <?dbfo list-presentation="list"?>
|
---|
| 205 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 206 |
|
---|
[7c18102] | 207 | <varlistentry id="glib-genmarshal">
|
---|
| 208 | <term><command>glib-genmarshal</command></term>
|
---|
| 209 | <listitem>
|
---|
| 210 | <para>is a C code marshaller generation utility for GLib
|
---|
| 211 | closures.</para>
|
---|
| 212 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 213 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 | </listitem>
|
---|
| 216 | </varlistentry>
|
---|
[4c3474fe] | 217 |
|
---|
[7c18102] | 218 | <varlistentry id="glib-gettextize">
|
---|
| 219 | <term><command>glib-gettextize</command></term>
|
---|
| 220 | <listitem>
|
---|
| 221 | <para>is a variant of the <application>gettext</application>
|
---|
| 222 | internationalization utility.</para>
|
---|
| 223 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 224 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
[4c3474fe] | 228 |
|
---|
[7c18102] | 229 | <varlistentry id="glib-mkenums">
|
---|
| 230 | <term><command>glib-mkenums</command></term>
|
---|
| 231 | <listitem>
|
---|
| 232 | <para>is a C language enum description generation utility.</para>
|
---|
| 233 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 234 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 235 | </indexterm>
|
---|
| 236 | </listitem>
|
---|
| 237 | </varlistentry>
|
---|
[4c3474fe] | 238 |
|
---|
[7c18102] | 239 | <varlistentry id="gobject-query">
|
---|
| 240 | <term><command>gobject-query</command></term>
|
---|
| 241 | <listitem>
|
---|
| 242 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 243 | <indexterm zone="glib2 gobject-query">
|
---|
| 244 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
[4c3474fe] | 248 |
|
---|
[e103708b] | 249 | <varlistentry id="gtester">
|
---|
| 250 | <term><command>gtester</command></term>
|
---|
| 251 | <listitem>
|
---|
| 252 | <para>is a test running utility.</para>
|
---|
| 253 | <indexterm zone="glib2 gtester">
|
---|
| 254 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 255 | </indexterm>
|
---|
| 256 | </listitem>
|
---|
| 257 | </varlistentry>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="gtester-report">
|
---|
| 260 | <term><command>gtester-report</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>is a test report formatting utility.</para>
|
---|
| 263 | <indexterm zone="glib2 gtester-report">
|
---|
| 264 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
[7c18102] | 269 | <varlistentry id="GLib-libraries">
|
---|
| 270 | <term>GLib libraries</term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>contain a low-level core library for the
|
---|
| 273 | <application>GIMP</application> Toolkit.</para>
|
---|
| 274 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 275 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 276 | </indexterm>
|
---|
| 277 | </listitem>
|
---|
| 278 | </varlistentry>
|
---|
[4c3474fe] | 279 |
|
---|
[7c18102] | 280 | </variablelist>
|
---|
| 281 |
|
---|
| 282 | </sect2>
|
---|
[d4340990] | 283 |
|
---|
| 284 | </sect1>
|
---|