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;
|
|
|
|
|
2011-11-09 10:59:34 +08:00
|
|
|
<!ENTITY glib2-download-http "&gnome-download-http;/glib/2.30/glib-&glib2-version;.tar.bz2">
|
|
|
|
<!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.30/glib-&glib2-version;.tar.bz2">
|
2011-11-06 05:04:08 +08:00
|
|
|
<!ENTITY glib2-md5sum "921ef2e86e911feb5e21f656f1ac305b">
|
|
|
|
<!ENTITY glib2-size "7.4 MB">
|
2011-11-05 05:03:36 +08:00
|
|
|
<!ENTITY glib2-buildsize "179 MB">
|
2010-11-19 01:49:55 +08:00
|
|
|
<!ENTITY glib2-time "1.5 SBU (additional 4.0 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
|
|
|
|
2011-11-05 05:03:36 +08:00
|
|
|
&lfs70_checked;
|
|
|
|
|
2010-04-22 03:10:06 +08:00
|
|
|
<!-- Compiled against PCRE, Python, and desktop-file-utils.
|
2010-11-19 01:49:55 +08:00
|
|
|
1 test failed (regex) -->
|
2009-07-28 19:19:18 +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
|
|
|
|
2011-11-05 05:03:36 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2011-11-06 05:04:08 +08:00
|
|
|
<para role="required"><xref linkend="libffi"/> and <xref linkend="python"/>
|
2011-11-05 05:03:36 +08:00
|
|
|
<!--<para role="required"><xref linkend="pkgconfig"/> -->
|
|
|
|
</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2010-11-19 01:49:55 +08:00
|
|
|
<!-- This should be discussed as the instructions in the tarball give
|
|
|
|
many reasons why the internal PCRE should be used -->
|
2008-11-28 10:11:26 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2009-08-26 19:53:11 +08:00
|
|
|
<para role="recommended"><xref linkend="pcre"/>
|
2009-02-14 01:41:27 +08:00
|
|
|
(built with unicode properties)</para>
|
2008-11-28 10:11:26 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2011-11-05 05:03:36 +08:00
|
|
|
<para role="optional"><xref linkend="attr"/>
|
|
|
|
<!-- <xref linkend="gamin"/>, -->and
|
2009-02-14 01:41:27 +08:00
|
|
|
<xref linkend="gtk-doc"/></para>
|
|
|
|
|
2011-11-05 05:03:36 +08:00
|
|
|
<!-- Couldn't find this
|
2010-04-22 03:10:06 +08:00
|
|
|
<para><application>Gamin</application> requires
|
2009-09-08 20:04:55 +08:00
|
|
|
<application>GLib</application> in order to compile; therefore, you must
|
|
|
|
first install <application>GLib</application>, then compile
|
|
|
|
<application>Gamin</application>, and recompile
|
2011-11-05 05:03:36 +08:00
|
|
|
<application>GLib</application> against it.</para> -->
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2010-11-19 01:49:55 +08:00
|
|
|
<bridgehead renderas="sect4">Additional Runtime Dependencies</bridgehead>
|
|
|
|
<para role="optional">Quoted directly from the <filename>INSTALL</filename>
|
|
|
|
file; <quote>Some of the mimetype-related functionality in GIO requires the
|
|
|
|
<command>update-mime-database</command> and
|
2011-11-06 05:04:08 +08:00
|
|
|
<command>update-desktop-database</command> utilities</quote>, which are part of
|
2010-11-19 01:49:55 +08:00
|
|
|
<xref linkend="shared-mime-info"/> and
|
2011-11-06 05:04:08 +08:00
|
|
|
<xref linkend="desktop-file-utils"/>, respectively.</para>
|
2010-11-19 01:49:55 +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>
|
|
|
|
|
2010-11-19 01:49:55 +08:00
|
|
|
<!-- This should be discussed as the instructions in the tarball give
|
|
|
|
many reasons why the internal PCRE should be used -->
|
2011-11-05 05:03:36 +08:00
|
|
|
<screen><userinput>PCRE_LIBS=-lpcre PCRE_CFLAGS=" " \
|
2011-11-18 00:36:40 +08:00
|
|
|
LIBFFI_LIBS=-lffi LIBFFI_CFLAGS=-I/usr/lib/libffi-3.0.10/include \
|
2011-11-05 05:03:36 +08:00
|
|
|
./configure --prefix=/usr --with-pcre=system &&
|
2005-05-01 18:11:42 +08:00
|
|
|
make</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2009-07-28 22:31:06 +08:00
|
|
|
<para>The <application>GLib</application> test suite requires
|
|
|
|
<application>desktop-file-utils</application> in order to run. However,
|
|
|
|
<application>desktop-file-utils</application> requires
|
|
|
|
<application>GLib</application> in order to compile; therefore, you must
|
|
|
|
first install <application>GLib</application> and then run the test
|
2009-07-28 19:19:18 +08:00
|
|
|
suite.</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
|
|
|
|
2009-02-14 01:41:27 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
2011-11-05 05:03:36 +08:00
|
|
|
ln -v -sfn ../../lib/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/glibconfig.h</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2009-07-28 19:19:18 +08:00
|
|
|
<para>You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
|
|
|
run the test suite.</para>
|
|
|
|
|
|
|
|
<para>To test the results, issue: <command>make check</command>.</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="commands">
|
|
|
|
<title>Command Explanations</title>
|
2007-01-16 08:08:14 +08:00
|
|
|
|
2011-11-05 05:03:36 +08:00
|
|
|
<para>PCRE_* and LIBFFI_*: <application>Glib</application> is a prerequsite
|
|
|
|
for <application>pkg_config</application>, but it wants to use
|
|
|
|
<application>pkg_config</application> during the build process. These
|
|
|
|
environment variables work around not having
|
|
|
|
<application>pkg_config</application> available.</para>
|
|
|
|
|
|
|
|
<para><command>ln -v -sfn ... glibconfig.h</command>: Place a link to an
|
|
|
|
architecture dependent header file where programs can find it.</para>
|
|
|
|
|
2010-04-22 02:48:34 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2006-06-26 23:45:37 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2010-11-19 01:49:55 +08:00
|
|
|
<!-- This should be discussed as the instructions in the tarball give
|
|
|
|
many reasons why the internal PCRE should be used -->
|
2009-02-14 01:41:27 +08:00
|
|
|
<para><parameter>--with-pcre=system</parameter>: This parameter causes the
|
|
|
|
build to use a system-provided version of the
|
|
|
|
<application>PCRE</application> library instead of an internal
|
|
|
|
version.</para>
|
|
|
|
|
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
|
2010-04-22 03:10:06 +08:00
|
|
|
issue. In order to tell <application>GLib</application> and
|
|
|
|
applications that use it that filenames are in the default locale
|
|
|
|
encoding, set the variable <envar>G_FILENAME_ENCODING</envar> to the
|
2009-07-25 22:23:20 +08:00
|
|
|
value "@locale":</para>
|
2007-01-19 00:34:14 +08:00
|
|
|
|
|
|
|
<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>
|
2010-08-11 20:21:56 +08:00
|
|
|
<seg>gio-querymodules, glib-genmarshal, glib-gettextize, glib-mkenums,
|
2009-02-14 01:41:27 +08:00
|
|
|
gobject-query, gtester and gtester-report</seg>
|
2010-08-11 20:21:56 +08:00
|
|
|
<seg>libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
|
|
|
libgobject-2.0.so, and libgthread-2.0.so</seg>
|
|
|
|
<seg>/usr/{include/{gio-unix-2.0/gio,glib-2.0/{gio,glib,gobject}},
|
|
|
|
lib/{gio/modules,glib-2.0/include},share/{gdb/auto-load,glib-2.0/{gdb,
|
|
|
|
gettext/po},gtk-doc/html/{gio,glib,gobject}}}</seg>
|
2005-05-01 18:11:42 +08:00
|
|
|
</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
|
|
|
|
2010-08-11 20:21:56 +08:00
|
|
|
<varlistentry id="gtester">
|
|
|
|
<term><command>gtester</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a test running utility.</para>
|
|
|
|
<indexterm zone="glib2 gtester">
|
|
|
|
<primary sortas="b-gtester">gtester</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gtester-report">
|
|
|
|
<term><command>gtester-report</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a test report formatting utility.</para>
|
|
|
|
<indexterm zone="glib2 gtester-report">
|
|
|
|
<primary sortas="b-gtester-report">gtester-report</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
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>
|