mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 20:42:34 +08:00
d8f34ff1d8
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8305 af4574ff-66df-0310-9fd7-8a98e5e911e0
246 lines
8.5 KiB
XML
246 lines
8.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY glib2-download-http "&gnome-download-http;/glib/2.22/glib-&glib2-version;.tar.bz2">
|
|
<!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.22/glib-&glib2-version;.tar.bz2">
|
|
<!ENTITY glib2-md5sum "d91bcbe27556430ddecce65086355708">
|
|
<!ENTITY glib2-size "5.0 MB">
|
|
<!ENTITY glib2-buildsize "96 MB">
|
|
<!ENTITY glib2-time "1.0 SBU (additional 1.7 SBU to run the test suite)">
|
|
]>
|
|
|
|
<sect1 id="glib2" xreflabel="GLib-&glib2-version;">
|
|
<?dbhtml filename="glib2.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>GLib-&glib2-version;</title>
|
|
|
|
<indexterm zone="glib2">
|
|
<primary sortas="a-GLib2">GLib2</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to GLib</title>
|
|
|
|
<para>The <application>GLib</application> package contains a low-level core
|
|
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>
|
|
|
|
<!-- Compiled against PCRE, Python, and desktop-file-utils.
|
|
All 76 tests passed -->
|
|
|
|
&lfs65_checked;
|
|
|
|
<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>
|
|
|
|
<bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
|
|
|
<!-- <bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="pkgconfig"/></para> -->
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended"><xref linkend="pcre"/>
|
|
(built with unicode properties)</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional"><xref linkend="attr"/>,
|
|
<xref linkend="gamin"/>, and
|
|
<xref linkend="gtk-doc"/></para>
|
|
|
|
<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>
|
|
|
|
<bridgehead renderas="sect4">Optional Runtime Dependency for the
|
|
<command>gtester-report</command> program</bridgehead>
|
|
<para role="optional"><xref linkend="python"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/glib2"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of GLib</title>
|
|
|
|
<para>Install <application>GLib</application> by running the following
|
|
commands:</para>
|
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
--with-pcre=system &&
|
|
make</userinput></screen>
|
|
|
|
<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>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>make install &&
|
|
chmod -v 755 /usr/bin/gtester-report</userinput></screen>
|
|
|
|
<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>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
<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>
|
|
|
|
<para><parameter>--disable-static</parameter>: prevent static libraries
|
|
being built and installed.</para>
|
|
|
|
</sect2>
|
|
|
|
<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
|
|
linkend="locale-wrong-filename-encoding"/> section of the <xref
|
|
linkend="locale-issues"/> page for more details on this kind of
|
|
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
|
|
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>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>glib-genmarshal, glib-gettextize, glib-mkenums,
|
|
gobject-query, gtester and gtester-report</seg>
|
|
<seg>libgio-2.0.so, libglib-2.0.so, libgobject-2.0.so,
|
|
libgmodule-2.0.so, and libgthread-2.0.so</seg>
|
|
<seg>/usr/include/gio-unix-2.0, /usr/include/glib-2.0,
|
|
/usr/lib/gio, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
|
/usr/share/gtk-doc/html/gio, /usr/share/gtk-doc/html/glib,
|
|
and /usr/share/gtk-doc/html/gobject</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|