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;
|
|
|
|
|
2012-03-30 03:02:49 +08:00
|
|
|
<!ENTITY glib2-download-http "&gnome-download-http;/glib/2.32/glib-&glib2-version;.tar.xz">
|
|
|
|
<!ENTITY glib2-download-ftp "&gnome-download-ftp;/glib/2.32/glib-&glib2-version;.tar.xz">
|
2012-07-20 00:27:40 +08:00
|
|
|
<!ENTITY glib2-md5sum "bf84fefd9c1a5b5a7a38736f4ddd674a">
|
2012-03-30 03:02:49 +08:00
|
|
|
<!ENTITY glib2-size "5.9 MB">
|
2012-05-08 06:05:37 +08:00
|
|
|
<!ENTITY glib2-buildsize "180 MB">
|
2012-05-17 00:39:28 +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
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
The <application>GLib</application> package contains a low-level
|
|
|
|
libraries 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
|
|
|
|
2012-08-25 15:33:59 +08:00
|
|
|
&lfs72_checked;
|
2011-11-05 05:03:36 +08:00
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&glib2-download-http;"/>
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&glib2-download-ftp;"/>
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Download MD5 sum: &glib2-md5sum;
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Download size: &glib2-size;
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Estimated disk space required: &glib2-buildsize;
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</listitem>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Estimated build time: &glib2-time;
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
</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>
|
2012-04-17 00:14:42 +08:00
|
|
|
<para role="required">
|
2012-06-06 03:36:06 +08:00
|
|
|
<xref linkend="libffi"/>,
|
|
|
|
<xref linkend="pkgconfig"/> and
|
2012-04-17 00:14:42 +08:00
|
|
|
<xref linkend="python2"/>
|
2011-11-05 05:03:36 +08:00
|
|
|
</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2008-11-28 10:11:26 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
2012-04-17 00:14:42 +08:00
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="pcre"/> (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>
|
2012-04-17 00:14:42 +08:00
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="attr"/>,
|
|
|
|
<xref linkend="dbus"/> (required to run the tests),
|
|
|
|
<xref linkend="gamin"/> and
|
|
|
|
<xref linkend="gtk-doc"/>
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
<application>Gamin</application> requires
|
|
|
|
<application>GLib</application> in order to compile; therefore,
|
|
|
|
you must first install <application>GLib</application>,
|
|
|
|
then compile <application>Gamin</application>, and recompile
|
|
|
|
<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>
|
2012-05-08 06:05:37 +08:00
|
|
|
<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
|
|
|
|
<command>update-desktop-database</command> utilities</quote>,
|
|
|
|
which are part of
|
|
|
|
<xref linkend="shared-mime-info"/> and
|
|
|
|
<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:
|
2012-05-17 00:39:28 +08:00
|
|
|
<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>
|
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Install <application>GLib</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-pcre=system &&
|
2005-05-01 18:11:42 +08:00
|
|
|
make</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2012-05-08 06:05:37 +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
|
|
|
|
suite.
|
|
|
|
</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2012-07-20 00:27:40 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
You should now install <xref linkend="desktop-file-utils"/> and proceed to
|
|
|
|
run the test suite.
|
|
|
|
</para>
|
2009-07-28 19:19:18 +08:00
|
|
|
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>.
|
|
|
|
</para>
|
2009-07-28 19:19:18 +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
|
|
|
|
2012-05-08 06:05:37 +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>
|
2009-02-14 01:41:27 +08:00
|
|
|
|
2012-03-31 03:22:43 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
2012-05-08 06:05:37 +08:00
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
2012-03-31 03:22:43 +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="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>
|
2012-03-31 03:22:43 +08:00
|
|
|
<seg>
|
|
|
|
gdbus, gdbus-codegen, gio-querymodules,
|
|
|
|
glib-compile-resources, glib-compile-schemas,
|
|
|
|
glib-genmarshal, glib-gettextize, glib-mkenums,
|
|
|
|
gobject-query, gresource, gsettings, gtester
|
|
|
|
and gtester-report
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libgio-2.0.so, libglib-2.0.so, libgmodule-2.0.so,
|
|
|
|
libgobject-2.0.so, libgthread-2.0.so and libgiofam.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2012-04-17 00:14:42 +08:00
|
|
|
/usr/include/{gio-unix-2.0,glib-2.0},
|
|
|
|
/usr/lib/{gdbus-2.0,gio,glib-2.0},
|
|
|
|
/usr/share/glib-2.0 and
|
2012-03-31 03:22:43 +08:00
|
|
|
/usr/share/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
|
|
|
|
2012-03-30 03:02:49 +08:00
|
|
|
<varlistentry id="gdbus">
|
|
|
|
<term><command>gdbus</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
2012-05-17 00:39:28 +08:00
|
|
|
is a simple used tool for working with D-Bus objects.
|
2012-05-08 06:05:37 +08:00
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 gdbus">
|
|
|
|
<primary sortas="b-gdbus">gdbus</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdbus-codegen">
|
|
|
|
<term><command>gdbus-codegen</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is used to generate code and/or documentation for one or
|
|
|
|
more <application>D-Bus</application> interfaces.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 gdbus-codegen">
|
|
|
|
<primary sortas="b-gdbus-codegen">gdbus-codegen</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gio-querymodules">
|
|
|
|
<term><command>gio-querymodules</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is used to create a giomodule.cache file in the listed directories.
|
|
|
|
This file lists the implemented extension points for each module that has
|
|
|
|
been found.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 gio-querymodules">
|
|
|
|
<primary sortas="b-gio-querymodules">gio-querymodules</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="glib-compile-resources">
|
|
|
|
<term><command>glib-compile-resources</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is used to read the resource description from file and
|
|
|
|
the files that it references to create a binary resource
|
|
|
|
bundle that is suitable for use with the GResource API.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 glib-compile-resources">
|
|
|
|
<primary sortas="b-glib-compile-resources">glib-compile-resources</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="glib-compile-schemas">
|
|
|
|
<term><command>glib-compile-schemas</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is used to compile all the GSettings XML schema files
|
|
|
|
in directory into a binary file with the name gschemas.compiled
|
|
|
|
that can be used by GSettings.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 glib-compile-schemas">
|
|
|
|
<primary sortas="b-glib-compile-resources">glib-compile-schemas</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-01 18:11:42 +08:00
|
|
|
<varlistentry id="glib-genmarshal">
|
|
|
|
<term><command>glib-genmarshal</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a C code marshaller generation utility for GLib closures.
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
<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>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a variant of the <application>gettext</application>
|
|
|
|
internationalization utility.
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
<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>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a C language enum description generation utility.
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
<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>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a small utility that draws a tree of types.
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
<indexterm zone="glib2 gobject-query">
|
|
|
|
<primary sortas="b-gobject-query">gobject-query</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2005-05-31 00:29:22 +08:00
|
|
|
|
2012-03-30 03:02:49 +08:00
|
|
|
<varlistentry id="gresource">
|
|
|
|
<term><command>gresource</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
offers a simple commandline interface to GResource.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 gresource">
|
|
|
|
<primary sortas="b-gresource">gresource</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gsettings">
|
|
|
|
<term><command>gsettings</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
offers a simple commandline interface to GSettings.
|
|
|
|
</para>
|
2012-03-30 03:02:49 +08:00
|
|
|
<indexterm zone="glib2 gsettings">
|
|
|
|
<primary sortas="b-gsettings">gsettings</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2010-08-11 20:21:56 +08:00
|
|
|
<varlistentry id="gtester">
|
|
|
|
<term><command>gtester</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a test running utility.
|
|
|
|
</para>
|
2010-08-11 20:21:56 +08:00
|
|
|
<indexterm zone="glib2 gtester">
|
|
|
|
<primary sortas="b-gtester">gtester</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gtester-report">
|
|
|
|
<term><command>gtester-report</command></term>
|
|
|
|
<listitem>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
is a test report formatting utility.
|
|
|
|
</para>
|
2010-08-11 20:21:56 +08:00
|
|
|
<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>
|
2012-05-08 06:05:37 +08:00
|
|
|
<para>
|
|
|
|
contain a low-level core libraries for the
|
|
|
|
<application>GIMP</application> Toolkit.
|
|
|
|
</para>
|
2005-05-01 18:11:42 +08:00
|
|
|
<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>
|