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