2004-06-13 06:56:28 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-13 06:56:28 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2007-06-08 12:08:43 +08:00
|
|
|
<!ENTITY glib2-download-http "&gnome-download-http;/glib/2.12/glib-&glib2-version;.tar.bz2">
|
|
|
|
<!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.12/glib-&glib2-version;.tar.bz2">
|
2007-06-30 09:13:01 +08:00
|
|
|
<!ENTITY glib2-md5sum "0b3a42098243d054475ff6eb51ed2be1">
|
2007-03-19 03:36:34 +08:00
|
|
|
<!ENTITY glib2-size "2.9 MB">
|
|
|
|
<!ENTITY glib2-buildsize "53 MB">
|
2007-06-30 09:13:01 +08:00
|
|
|
<!ENTITY glib2-time "0.6 SBU (additional 1.3 SBU to run the test suite)">
|
2004-06-13 06:56:28 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-05 22:52:07 +08:00
|
|
|
<sect1 id="glib2" xreflabel="GLib-&glib2-version;">
|
2005-05-01 18:11:42 +08:00
|
|
|
<?dbhtml filename="glib2.html"?>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<title>GLib-&glib2-version;</title>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<indexterm zone="glib2">
|
|
|
|
<primary sortas="a-GLib2">GLib2</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to GLib</title>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-09-21 06:41:09 +08:00
|
|
|
<para>The <application>GLib</application> package contains a low-level core
|
2005-05-01 18:11:42 +08:00
|
|
|
library. This is useful for providing data structure handling for C,
|
|
|
|
portability wrappers and interfaces for such runtime functionality as an
|
|
|
|
event loop, threads, dynamic loading, and an object system.</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&glib2-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&glib2-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &glib2-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &glib2-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &glib2-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &glib2-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-09-21 06:41:09 +08:00
|
|
|
<bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2005-12-02 04:50:08 +08:00
|
|
|
<para role="required"><xref linkend="pkgconfig"/></para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-02 04:50:08 +08:00
|
|
|
<para role="optional"><xref linkend="gtk-doc"/></para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2006-04-11 02:35:56 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/glib2"/></para>
|
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
</sect2>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of GLib</title>
|
|
|
|
|
2005-09-21 06:41:09 +08:00
|
|
|
<para>Install <application>GLib</application> by running the following
|
2005-05-01 18:11:42 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2006-05-27 21:27:03 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr &&
|
2005-05-01 18:11:42 +08:00
|
|
|
make</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<para>To test the results, issue: <command>make check</command>.</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
</sect2>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2007-01-16 08:08:14 +08:00
|
|
|
|
2006-06-26 23:45:37 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
</sect2>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2007-01-19 00:34:14 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring GLib</title>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>By default, <application>GLib</application> assumes that all
|
|
|
|
filenames are in the UTF-8 charset. See the <xref
|
2007-02-02 19:00:08 +08:00
|
|
|
linkend="locale-wrong-filename-encoding"/> section of the <xref
|
2007-01-19 00:34:14 +08:00
|
|
|
linkend="locale-issues"/> page for more details on this kind of
|
|
|
|
issue. In order to tell GLib and applications that use it
|
|
|
|
that filenames are in the default locale encoding, set the variable
|
|
|
|
<envar>G_FILENAME_ENCODING</envar> to the value "@locale":</para>
|
|
|
|
|
|
|
|
<screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
|
|
|
<literal># Use the current locale charset for filenames
|
|
|
|
# in applications using GLib
|
|
|
|
export G_FILENAME_ENCODING=@locale</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<seglistitem>
|
|
|
|
<seg>glib-genmarshal, glib-gettextize, glib-mkenums, and
|
|
|
|
gobject-query</seg>
|
2005-05-31 05:33:35 +08:00
|
|
|
<seg>libglib-2.0.so, libgobject-2.0.so, libgmodule-2.0.so, and
|
2005-05-01 18:11:42 +08:00
|
|
|
libgthread-2.0.so</seg>
|
|
|
|
<seg>/usr/include/glib-2.0, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
|
|
|
/usr/share/gtk-doc/html/glib, and /usr/share/gtk-doc/html/gobject</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="glib-genmarshal">
|
|
|
|
<term><command>glib-genmarshal</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a C code marshaller generation utility for GLib
|
|
|
|
closures.</para>
|
|
|
|
<indexterm zone="glib2 glib-genmarshal">
|
|
|
|
<primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="glib-gettextize">
|
|
|
|
<term><command>glib-gettextize</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a variant of the <application>gettext</application>
|
|
|
|
internationalization utility.</para>
|
|
|
|
<indexterm zone="glib2 glib-gettextize">
|
|
|
|
<primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="glib-mkenums">
|
|
|
|
<term><command>glib-mkenums</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a C language enum description generation utility.</para>
|
|
|
|
<indexterm zone="glib2 glib-mkenums">
|
|
|
|
<primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="gobject-query">
|
|
|
|
<term><command>gobject-query</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a small utility that draws a tree of types.</para>
|
|
|
|
<indexterm zone="glib2 gobject-query">
|
|
|
|
<primary sortas="b-gobject-query">gobject-query</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="GLib-libraries">
|
|
|
|
<term>GLib libraries</term>
|
|
|
|
<listitem>
|
|
|
|
<para>contain a low-level core library for the
|
|
|
|
<application>GIMP</application> Toolkit.</para>
|
|
|
|
<indexterm zone="glib2 GLib-libraries">
|
|
|
|
<primary sortas="c-GLib-libraries">Glib libraries</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-08-25 19:57:01 +08:00
|
|
|
|
|
|
|
</sect1>
|