[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 |
|
---|
[1b9e36e] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.18/glib-&glib2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.18/glib-&glib2-version;.tar.bz2">
|
---|
[7147513] | 9 | <!ENTITY glib2-md5sum "ec25ed261534d870141000ab73f1a2bf">
|
---|
| 10 | <!ENTITY glib2-size "4.8 MB">
|
---|
| 11 | <!ENTITY glib2-buildsize "90 MB (includes running the test-suite)">
|
---|
| 12 | <!ENTITY glib2-time "0.9 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 |
|
---|
[7c18102] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&glib2-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&glib2-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &glib2-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &glib2-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &glib2-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &glib2-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
[4c3474fe] | 58 |
|
---|
[06b397f7] | 59 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
[4c3474fe] | 60 |
|
---|
[358241d1] | 61 | <!-- <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 62 | <para role="required"><xref linkend="pkgconfig"/></para> -->
|
---|
[4c3474fe] | 63 |
|
---|
[1b9e36e] | 64 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[7147513] | 65 | <para role="optional"><xref linkend="pcre"/>
|
---|
| 66 | (built with unicode properties)</para>
|
---|
[1b9e36e] | 67 |
|
---|
[7c18102] | 68 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7147513] | 69 | <para role="optional"><xref linkend="gamin"/> and
|
---|
| 70 | <xref linkend="gtk-doc"/></para>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional Runtime Dependency for the
|
---|
| 73 | <command>gtester-report</command> program</bridgehead>
|
---|
| 74 | <para role="optional"><xref linkend="python"/></para>
|
---|
[4c3474fe] | 75 |
|
---|
[1039de3] | 76 | <para condition="html" role="usernotes">User Notes:
|
---|
| 77 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 78 |
|
---|
[7c18102] | 79 | </sect2>
|
---|
[4c3474fe] | 80 |
|
---|
[7c18102] | 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of GLib</title>
|
---|
| 83 |
|
---|
[06b397f7] | 84 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 85 | commands:</para>
|
---|
| 86 |
|
---|
[7147513] | 87 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 88 | --with-pcre=system &&
|
---|
[7c18102] | 89 | make</userinput></screen>
|
---|
[4c3474fe] | 90 |
|
---|
[7c18102] | 91 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[4c3474fe] | 92 |
|
---|
[7c18102] | 93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 94 |
|
---|
[7147513] | 95 | <screen role="root"><userinput>make install &&
|
---|
| 96 | chmod -v 755 /usr/bin/gtester-report</userinput></screen>
|
---|
[4c3474fe] | 97 |
|
---|
[7c18102] | 98 | </sect2>
|
---|
[4c3474fe] | 99 |
|
---|
[7c18102] | 100 | <sect2 role="commands">
|
---|
| 101 | <title>Command Explanations</title>
|
---|
[864b24de] | 102 |
|
---|
[56ce09e] | 103 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 104 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[4c3474fe] | 105 |
|
---|
[7147513] | 106 | <para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
---|
| 107 | build to use a system-provided version of the
|
---|
| 108 | <application>PCRE</application> library instead of an internal
|
---|
| 109 | version.</para>
|
---|
| 110 |
|
---|
[1b9e36e] | 111 | <para><parameter>--disable-static</parameter>: prevent static libraries
|
---|
| 112 | being built and installed.</para>
|
---|
| 113 |
|
---|
[7c18102] | 114 | </sect2>
|
---|
[4c3474fe] | 115 |
|
---|
[0f442884] | 116 | <sect2 role="configuration">
|
---|
| 117 | <title>Configuring GLib</title>
|
---|
| 118 |
|
---|
| 119 | <sect3>
|
---|
| 120 | <title>Configuration Information</title>
|
---|
| 121 |
|
---|
| 122 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 123 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 124 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[0f442884] | 125 | linkend="locale-issues"/> page for more details on this kind of
|
---|
| 126 | issue. In order to tell GLib and applications that use it
|
---|
| 127 | that filenames are in the default locale encoding, set the variable
|
---|
| 128 | <envar>G_FILENAME_ENCODING</envar> to the value "@locale":</para>
|
---|
| 129 |
|
---|
| 130 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
| 131 | <literal># Use the current locale charset for filenames
|
---|
| 132 | # in applications using GLib
|
---|
| 133 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 134 | EOF</userinput></screen>
|
---|
| 135 |
|
---|
| 136 | </sect3>
|
---|
| 137 |
|
---|
| 138 | </sect2>
|
---|
| 139 |
|
---|
[7c18102] | 140 | <sect2 role="content">
|
---|
| 141 | <title>Contents</title>
|
---|
| 142 |
|
---|
| 143 | <segmentedlist>
|
---|
| 144 | <segtitle>Installed Programs</segtitle>
|
---|
| 145 | <segtitle>Installed Libraries</segtitle>
|
---|
| 146 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 147 |
|
---|
[7c18102] | 148 | <seglistitem>
|
---|
[7147513] | 149 | <seg>glib-genmarshal, glib-gettextize, glib-mkenums,
|
---|
| 150 | gobject-query, gtester and gtester-report</seg>
|
---|
[74390482] | 151 | <seg>libglib-2.0.so, libgobject-2.0.so, libgmodule-2.0.so, and
|
---|
[7c18102] | 152 | libgthread-2.0.so</seg>
|
---|
| 153 | <seg>/usr/include/glib-2.0, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
---|
| 154 | /usr/share/gtk-doc/html/glib, and /usr/share/gtk-doc/html/gobject</seg>
|
---|
| 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
[4c3474fe] | 157 |
|
---|
[7c18102] | 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 162 |
|
---|
[7c18102] | 163 | <varlistentry id="glib-genmarshal">
|
---|
| 164 | <term><command>glib-genmarshal</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>is a C code marshaller generation utility for GLib
|
---|
| 167 | closures.</para>
|
---|
| 168 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 169 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
[4c3474fe] | 173 |
|
---|
[7c18102] | 174 | <varlistentry id="glib-gettextize">
|
---|
| 175 | <term><command>glib-gettextize</command></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>is a variant of the <application>gettext</application>
|
---|
| 178 | internationalization utility.</para>
|
---|
| 179 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 180 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 181 | </indexterm>
|
---|
| 182 | </listitem>
|
---|
| 183 | </varlistentry>
|
---|
[4c3474fe] | 184 |
|
---|
[7c18102] | 185 | <varlistentry id="glib-mkenums">
|
---|
| 186 | <term><command>glib-mkenums</command></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>is a C language enum description generation utility.</para>
|
---|
| 189 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 190 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
[4c3474fe] | 194 |
|
---|
[7c18102] | 195 | <varlistentry id="gobject-query">
|
---|
| 196 | <term><command>gobject-query</command></term>
|
---|
| 197 | <listitem>
|
---|
| 198 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 199 | <indexterm zone="glib2 gobject-query">
|
---|
| 200 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
[4c3474fe] | 204 |
|
---|
[7c18102] | 205 | <varlistentry id="GLib-libraries">
|
---|
| 206 | <term>GLib libraries</term>
|
---|
| 207 | <listitem>
|
---|
| 208 | <para>contain a low-level core library for the
|
---|
| 209 | <application>GIMP</application> Toolkit.</para>
|
---|
| 210 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 211 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
[4c3474fe] | 215 |
|
---|
[7c18102] | 216 | </variablelist>
|
---|
| 217 |
|
---|
| 218 | </sect2>
|
---|
[d4340990] | 219 |
|
---|
| 220 | </sect1>
|
---|