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