[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">
|
---|
[75103a06] | 9 | <!ENTITY glib2-md5sum "8a6e45d7840460ed84288ebfd75782d4">
|
---|
| 10 | <!ENTITY glib2-size "5.3 MB">
|
---|
[e103708b] | 11 | <!ENTITY glib2-buildsize "106 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 |
|
---|
[a41f643] | 37 | <!-- Compiled against PCRE, Python, and desktop-file-utils.
|
---|
[75103a06] | 38 | 1 test failed (regex) -->
|
---|
[c0e1d87] | 39 |
|
---|
[7c18102] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&glib2-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&glib2-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &glib2-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &glib2-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &glib2-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &glib2-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
[4c3474fe] | 61 |
|
---|
[06b397f7] | 62 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[4c3474fe] | 63 |
|
---|
[358241d1] | 64 | <!-- <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 65 | <para role="required"><xref linkend="pkgconfig"/></para> -->
|
---|
[4c3474fe] | 66 |
|
---|
[75103a06] | 67 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 68 | many reasons why the internal PCRE should be used -->
|
---|
[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 |
|
---|
[75103a06] | 88 | <bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
---|
| 89 | <para role="optional">Quoted directly from the <filename>INSTALL</filename>
|
---|
| 90 | file; <quote>Some of the mimetype-related functionality in GIO requires the
|
---|
| 91 | <command>update-mime-database</command> and
|
---|
| 92 | <command>update-desktop-database</command> utilities, which are part of
|
---|
| 93 | <xref linkend="shared-mime-info"/> and
|
---|
| 94 | <xref linkend="desktop-file-utils"/>, respectively.</quote></para>
|
---|
| 95 |
|
---|
[1039de3] | 96 | <para condition="html" role="usernotes">User Notes:
|
---|
| 97 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 98 |
|
---|
[7c18102] | 99 | </sect2>
|
---|
[4c3474fe] | 100 |
|
---|
[7c18102] | 101 | <sect2 role="installation">
|
---|
| 102 | <title>Installation of GLib</title>
|
---|
| 103 |
|
---|
[06b397f7] | 104 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 105 | commands:</para>
|
---|
| 106 |
|
---|
[75103a06] | 107 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 108 | many reasons why the internal PCRE should be used -->
|
---|
[7147513] | 109 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 110 | --with-pcre=system &&
|
---|
[7c18102] | 111 | make</userinput></screen>
|
---|
[4c3474fe] | 112 |
|
---|
[fd91fea] | 113 | <para>The <application>GLib</application> test suite requires
|
---|
| 114 | <application>desktop-file-utils</application> in order to run. However,
|
---|
| 115 | <application>desktop-file-utils</application> requires
|
---|
| 116 | <application>GLib</application> in order to compile; therefore, you must
|
---|
| 117 | first install <application>GLib</application> and then run the test
|
---|
[c0e1d87] | 118 | suite.</para>
|
---|
[4c3474fe] | 119 |
|
---|
[7c18102] | 120 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 121 |
|
---|
[7147513] | 122 | <screen role="root"><userinput>make install &&
|
---|
| 123 | chmod -v 755 /usr/bin/gtester-report</userinput></screen>
|
---|
[4c3474fe] | 124 |
|
---|
[c0e1d87] | 125 | <para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
---|
| 126 | run the test suite.</para>
|
---|
| 127 |
|
---|
| 128 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 129 |
|
---|
[7c18102] | 130 | </sect2>
|
---|
[4c3474fe] | 131 |
|
---|
[7c18102] | 132 | <sect2 role="commands">
|
---|
| 133 | <title>Command Explanations</title>
|
---|
[864b24de] | 134 |
|
---|
[e05cd03f] | 135 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[56ce09e] | 136 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[4c3474fe] | 137 |
|
---|
[75103a06] | 138 | <!-- This should be discussed as the instructions in the tarball give
|
---|
| 139 | many reasons why the internal PCRE should be used -->
|
---|
[7147513] | 140 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 141 | build to use a system-provided version of the
|
---|
| 142 | <application>PCRE</application> library instead of an internal
|
---|
| 143 | version.</para>
|
---|
| 144 |
|
---|
[75103a06] | 145 | <!-- Not required any longer; static libs are not installed by default
|
---|
| 146 | <para><parameter>-disable-static</parameter>: prevent static libraries
|
---|
| 147 | being built and installed.</para> -->
|
---|
[1b9e36e] | 148 |
|
---|
[7c18102] | 149 | </sect2>
|
---|
[4c3474fe] | 150 |
|
---|
[0f442884] | 151 | <sect2 role="configuration">
|
---|
| 152 | <title>Configuring GLib</title>
|
---|
| 153 |
|
---|
| 154 | <sect3>
|
---|
| 155 | <title>Configuration Information</title>
|
---|
| 156 |
|
---|
| 157 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 158 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 159 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[0f442884] | 160 | linkend="locale-issues"/> page for more details on this kind of
|
---|
[a41f643] | 161 | issue. In order to tell <application>GLib</application> and
|
---|
| 162 | applications that use it that filenames are in the default locale
|
---|
| 163 | encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
---|
[8fc023d2] | 164 | value "@locale":</para>
|
---|
[0f442884] | 165 |
|
---|
| 166 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
| 167 | <literal># Use the current locale charset for filenames
|
---|
| 168 | # in applications using GLib
|
---|
| 169 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 170 | EOF</userinput></screen>
|
---|
| 171 |
|
---|
| 172 | </sect3>
|
---|
| 173 |
|
---|
| 174 | </sect2>
|
---|
| 175 |
|
---|
[7c18102] | 176 | <sect2 role="content">
|
---|
| 177 | <title>Contents</title>
|
---|
| 178 |
|
---|
| 179 | <segmentedlist>
|
---|
| 180 | <segtitle>Installed Programs</segtitle>
|
---|
| 181 | <segtitle>Installed Libraries</segtitle>
|
---|
| 182 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 183 |
|
---|
[7c18102] | 184 | <seglistitem>
|
---|
[e103708b] | 185 | <seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
[7147513] | 186 | gobject-query, gtester and gtester-report</seg>
|
---|
[e103708b] | 187 | <seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
---|
| 188 | libgobject-2.0.so, and libgthread-2.0.so</seg>
|
---|
| 189 | <seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
|
---|
| 190 | lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
|
---|
| 191 | gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
|
---|
[7c18102] | 192 | </seglistitem>
|
---|
| 193 | </segmentedlist>
|
---|
[4c3474fe] | 194 |
|
---|
[7c18102] | 195 | <variablelist>
|
---|
| 196 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 197 | <?dbfo list-presentation="list"?>
|
---|
| 198 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 199 |
|
---|
[7c18102] | 200 | <varlistentry id="glib-genmarshal">
|
---|
| 201 | <term><command>glib-genmarshal</command></term>
|
---|
| 202 | <listitem>
|
---|
| 203 | <para>is a C code marshaller generation utility for GLib
|
---|
| 204 | closures.</para>
|
---|
| 205 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 206 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
[4c3474fe] | 210 |
|
---|
[7c18102] | 211 | <varlistentry id="glib-gettextize">
|
---|
| 212 | <term><command>glib-gettextize</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>is a variant of the <application>gettext</application>
|
---|
| 215 | internationalization utility.</para>
|
---|
| 216 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 217 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
| 220 | </varlistentry>
|
---|
[4c3474fe] | 221 |
|
---|
[7c18102] | 222 | <varlistentry id="glib-mkenums">
|
---|
| 223 | <term><command>glib-mkenums</command></term>
|
---|
| 224 | <listitem>
|
---|
| 225 | <para>is a C language enum description generation utility.</para>
|
---|
| 226 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 227 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 228 | </indexterm>
|
---|
| 229 | </listitem>
|
---|
| 230 | </varlistentry>
|
---|
[4c3474fe] | 231 |
|
---|
[7c18102] | 232 | <varlistentry id="gobject-query">
|
---|
| 233 | <term><command>gobject-query</command></term>
|
---|
| 234 | <listitem>
|
---|
| 235 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 236 | <indexterm zone="glib2 gobject-query">
|
---|
| 237 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>
|
---|
[4c3474fe] | 241 |
|
---|
[e103708b] | 242 | <varlistentry id="gtester">
|
---|
| 243 | <term><command>gtester</command></term>
|
---|
| 244 | <listitem>
|
---|
| 245 | <para>is a test running utility.</para>
|
---|
| 246 | <indexterm zone="glib2 gtester">
|
---|
| 247 | <primary sortas="b-gtester">gtester</primary>
|
---|
| 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
| 251 |
|
---|
| 252 | <varlistentry id="gtester-report">
|
---|
| 253 | <term><command>gtester-report</command></term>
|
---|
| 254 | <listitem>
|
---|
| 255 | <para>is a test report formatting utility.</para>
|
---|
| 256 | <indexterm zone="glib2 gtester-report">
|
---|
| 257 | <primary sortas="b-gtester-report">gtester-report</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
[7c18102] | 262 | <varlistentry id="GLib-libraries">
|
---|
| 263 | <term>GLib libraries</term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>contain a low-level core library for the
|
---|
| 266 | <application>GIMP</application> Toolkit.</para>
|
---|
| 267 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 268 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
[4c3474fe] | 272 |
|
---|
[7c18102] | 273 | </variablelist>
|
---|
| 274 |
|
---|
| 275 | </sect2>
|
---|
[d4340990] | 276 |
|
---|
| 277 | </sect1>
|
---|