[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 |
|
---|
[0f2c58e] | 7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.12/glib-&glib2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.12/glib-&glib2-version;.tar.bz2">
|
---|
[e871a9a1] | 9 | <!ENTITY glib2-md5sum "0b3a42098243d054475ff6eb51ed2be1">
|
---|
[cb66236] | 10 | <!ENTITY glib2-size "2.9 MB">
|
---|
| 11 | <!ENTITY glib2-buildsize "53 MB">
|
---|
[e871a9a1] | 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 |
|
---|
[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 |
|
---|
[7c18102] | 61 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[4f26c54] | 62 | <para role="required"><xref linkend="pkgconfig"/></para>
|
---|
[4c3474fe] | 63 |
|
---|
[7c18102] | 64 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4f26c54] | 65 | <para role="optional"><xref linkend="gtk-doc"/></para>
|
---|
[4c3474fe] | 66 |
|
---|
[1039de3] | 67 | <para condition="html" role="usernotes">User Notes:
|
---|
| 68 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
| 69 |
|
---|
[7c18102] | 70 | </sect2>
|
---|
[4c3474fe] | 71 |
|
---|
[7c18102] | 72 | <sect2 role="installation">
|
---|
| 73 | <title>Installation of GLib</title>
|
---|
| 74 |
|
---|
[06b397f7] | 75 | <para>Install <application>GLib</application> by running the following
|
---|
[7c18102] | 76 | commands:</para>
|
---|
| 77 |
|
---|
[b3b6019] | 78 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[7c18102] | 79 | make</userinput></screen>
|
---|
[4c3474fe] | 80 |
|
---|
[7c18102] | 81 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[4c3474fe] | 82 |
|
---|
[7c18102] | 83 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[4c3474fe] | 84 |
|
---|
[7c18102] | 85 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[4c3474fe] | 86 |
|
---|
[7c18102] | 87 | </sect2>
|
---|
[4c3474fe] | 88 |
|
---|
[7c18102] | 89 | <sect2 role="commands">
|
---|
| 90 | <title>Command Explanations</title>
|
---|
[864b24de] | 91 |
|
---|
[56ce09e] | 92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 93 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[4c3474fe] | 94 |
|
---|
[7c18102] | 95 | </sect2>
|
---|
[4c3474fe] | 96 |
|
---|
[0f442884] | 97 | <sect2 role="configuration">
|
---|
| 98 | <title>Configuring GLib</title>
|
---|
| 99 |
|
---|
| 100 | <sect3>
|
---|
| 101 | <title>Configuration Information</title>
|
---|
| 102 |
|
---|
| 103 | <para>By default, <application>GLib</application> assumes that all
|
---|
| 104 | filenames are in the UTF-8 charset. See the <xref
|
---|
[a4b9cd7] | 105 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
[0f442884] | 106 | linkend="locale-issues"/> page for more details on this kind of
|
---|
| 107 | issue. In order to tell GLib and applications that use it
|
---|
| 108 | that filenames are in the default locale encoding, set the variable
|
---|
| 109 | <envar>G_FILENAME_ENCODING</envar> to the value "@locale":</para>
|
---|
| 110 |
|
---|
| 111 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
| 112 | <literal># Use the current locale charset for filenames
|
---|
| 113 | # in applications using GLib
|
---|
| 114 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
| 115 | EOF</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect3>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
[7c18102] | 121 | <sect2 role="content">
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <segmentedlist>
|
---|
| 125 | <segtitle>Installed Programs</segtitle>
|
---|
| 126 | <segtitle>Installed Libraries</segtitle>
|
---|
| 127 | <segtitle>Installed Directories</segtitle>
|
---|
[4c3474fe] | 128 |
|
---|
[7c18102] | 129 | <seglistitem>
|
---|
| 130 | <seg>glib-genmarshal, glib-gettextize, glib-mkenums, and
|
---|
| 131 | gobject-query</seg>
|
---|
[74390482] | 132 | <seg>libglib-2.0.so, libgobject-2.0.so, libgmodule-2.0.so, and
|
---|
[7c18102] | 133 | libgthread-2.0.so</seg>
|
---|
| 134 | <seg>/usr/include/glib-2.0, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
---|
| 135 | /usr/share/gtk-doc/html/glib, and /usr/share/gtk-doc/html/gobject</seg>
|
---|
| 136 | </seglistitem>
|
---|
| 137 | </segmentedlist>
|
---|
[4c3474fe] | 138 |
|
---|
[7c18102] | 139 | <variablelist>
|
---|
| 140 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 141 | <?dbfo list-presentation="list"?>
|
---|
| 142 | <?dbhtml list-presentation="table"?>
|
---|
[4c3474fe] | 143 |
|
---|
[7c18102] | 144 | <varlistentry id="glib-genmarshal">
|
---|
| 145 | <term><command>glib-genmarshal</command></term>
|
---|
| 146 | <listitem>
|
---|
| 147 | <para>is a C code marshaller generation utility for GLib
|
---|
| 148 | closures.</para>
|
---|
| 149 | <indexterm zone="glib2 glib-genmarshal">
|
---|
| 150 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
[4c3474fe] | 154 |
|
---|
[7c18102] | 155 | <varlistentry id="glib-gettextize">
|
---|
| 156 | <term><command>glib-gettextize</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>is a variant of the <application>gettext</application>
|
---|
| 159 | internationalization utility.</para>
|
---|
| 160 | <indexterm zone="glib2 glib-gettextize">
|
---|
| 161 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
[4c3474fe] | 165 |
|
---|
[7c18102] | 166 | <varlistentry id="glib-mkenums">
|
---|
| 167 | <term><command>glib-mkenums</command></term>
|
---|
| 168 | <listitem>
|
---|
| 169 | <para>is a C language enum description generation utility.</para>
|
---|
| 170 | <indexterm zone="glib2 glib-mkenums">
|
---|
| 171 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
| 172 | </indexterm>
|
---|
| 173 | </listitem>
|
---|
| 174 | </varlistentry>
|
---|
[4c3474fe] | 175 |
|
---|
[7c18102] | 176 | <varlistentry id="gobject-query">
|
---|
| 177 | <term><command>gobject-query</command></term>
|
---|
| 178 | <listitem>
|
---|
| 179 | <para>is a small utility that draws a tree of types.</para>
|
---|
| 180 | <indexterm zone="glib2 gobject-query">
|
---|
| 181 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
[4c3474fe] | 185 |
|
---|
[7c18102] | 186 | <varlistentry id="GLib-libraries">
|
---|
| 187 | <term>GLib libraries</term>
|
---|
| 188 | <listitem>
|
---|
| 189 | <para>contain a low-level core library for the
|
---|
| 190 | <application>GIMP</application> Toolkit.</para>
|
---|
| 191 | <indexterm zone="glib2 GLib-libraries">
|
---|
| 192 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
[4c3474fe] | 196 |
|
---|
[7c18102] | 197 | </variablelist>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
[d4340990] | 200 |
|
---|
| 201 | </sect1>
|
---|