1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY glib2-download-http "&gnome-download-http;/glib/2.12/glib-&glib2-version;.tar.bz2">
|
---|
8 | <!ENTITY glib2-download-ftp "ftp://ftp.gtk.org/pub/glib/2.12/glib-&glib2-version;.tar.bz2">
|
---|
9 | <!ENTITY glib2-md5sum "0b3a42098243d054475ff6eb51ed2be1">
|
---|
10 | <!ENTITY glib2-size "2.9 MB">
|
---|
11 | <!ENTITY glib2-buildsize "53 MB">
|
---|
12 | <!ENTITY glib2-time "0.6 SBU (additional 1.3 SBU to run the test suite)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="glib2" xreflabel="GLib-&glib2-version;">
|
---|
16 | <?dbhtml filename="glib2.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>GLib-&glib2-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="glib2">
|
---|
26 | <primary sortas="a-GLib2">GLib2</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to GLib</title>
|
---|
31 |
|
---|
32 | <para>The <application>GLib</application> package contains a low-level core
|
---|
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>
|
---|
36 |
|
---|
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>
|
---|
58 |
|
---|
59 | <bridgehead renderas="sect3">GLib Dependencies</bridgehead>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
62 | <para role="required"><xref linkend="pkgconfig"/></para>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
65 | <para role="optional"><xref linkend="gtk-doc"/></para>
|
---|
66 |
|
---|
67 | <para condition="html" role="usernotes">User Notes:
|
---|
68 | <ulink url="&blfs-wiki;/glib2"/></para>
|
---|
69 |
|
---|
70 | </sect2>
|
---|
71 |
|
---|
72 | <sect2 role="installation">
|
---|
73 | <title>Installation of GLib</title>
|
---|
74 |
|
---|
75 | <para>Install <application>GLib</application> by running the following
|
---|
76 | commands:</para>
|
---|
77 |
|
---|
78 | <screen><userinput>./configure --prefix=/usr &&
|
---|
79 | make</userinput></screen>
|
---|
80 |
|
---|
81 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
82 |
|
---|
83 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
84 |
|
---|
85 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2 role="commands">
|
---|
90 | <title>Command Explanations</title>
|
---|
91 |
|
---|
92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
93 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2 role="configuration">
|
---|
98 | <title>Configuring GLib</title>
|
---|
99 |
|
---|
100 | <sect3>
|
---|
101 | <title>Configuration Information</title>
|
---|
102 |
|
---|
103 | <para>By default, <application>GLib</application> assumes that all
|
---|
104 | filenames are in the UTF-8 charset. See the <xref
|
---|
105 | linkend="locale-wrong-filename-encoding"/> section of the <xref
|
---|
106 | linkend="locale-issues"/> page for more details on this kind of
|
---|
107 | issue. In order to tell GLib and applications that use it
|
---|
108 | that filenames are in the default locale encoding, set the variable
|
---|
109 | <envar>G_FILENAME_ENCODING</envar> to the value "@locale":</para>
|
---|
110 |
|
---|
111 | <screen><userinput>cat > /etc/profile.d/glib2-locale.sh << "EOF"
|
---|
112 | <literal># Use the current locale charset for filenames
|
---|
113 | # in applications using GLib
|
---|
114 | export G_FILENAME_ENCODING=@locale</literal>
|
---|
115 | EOF</userinput></screen>
|
---|
116 |
|
---|
117 | </sect3>
|
---|
118 |
|
---|
119 | </sect2>
|
---|
120 |
|
---|
121 | <sect2 role="content">
|
---|
122 | <title>Contents</title>
|
---|
123 |
|
---|
124 | <segmentedlist>
|
---|
125 | <segtitle>Installed Programs</segtitle>
|
---|
126 | <segtitle>Installed Libraries</segtitle>
|
---|
127 | <segtitle>Installed Directories</segtitle>
|
---|
128 |
|
---|
129 | <seglistitem>
|
---|
130 | <seg>glib-genmarshal, glib-gettextize, glib-mkenums, and
|
---|
131 | gobject-query</seg>
|
---|
132 | <seg>libglib-2.0.so, libgobject-2.0.so, libgmodule-2.0.so, and
|
---|
133 | libgthread-2.0.so</seg>
|
---|
134 | <seg>/usr/include/glib-2.0, /usr/lib/glib-2.0, /usr/share/glib-2.0,
|
---|
135 | /usr/share/gtk-doc/html/glib, and /usr/share/gtk-doc/html/gobject</seg>
|
---|
136 | </seglistitem>
|
---|
137 | </segmentedlist>
|
---|
138 |
|
---|
139 | <variablelist>
|
---|
140 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
141 | <?dbfo list-presentation="list"?>
|
---|
142 | <?dbhtml list-presentation="table"?>
|
---|
143 |
|
---|
144 | <varlistentry id="glib-genmarshal">
|
---|
145 | <term><command>glib-genmarshal</command></term>
|
---|
146 | <listitem>
|
---|
147 | <para>is a C code marshaller generation utility for GLib
|
---|
148 | closures.</para>
|
---|
149 | <indexterm zone="glib2 glib-genmarshal">
|
---|
150 | <primary sortas="b-glib-genmarshal">glib-genmarshal</primary>
|
---|
151 | </indexterm>
|
---|
152 | </listitem>
|
---|
153 | </varlistentry>
|
---|
154 |
|
---|
155 | <varlistentry id="glib-gettextize">
|
---|
156 | <term><command>glib-gettextize</command></term>
|
---|
157 | <listitem>
|
---|
158 | <para>is a variant of the <application>gettext</application>
|
---|
159 | internationalization utility.</para>
|
---|
160 | <indexterm zone="glib2 glib-gettextize">
|
---|
161 | <primary sortas="b-glib-gettextize">glib-gettextize</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="glib-mkenums">
|
---|
167 | <term><command>glib-mkenums</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>is a C language enum description generation utility.</para>
|
---|
170 | <indexterm zone="glib2 glib-mkenums">
|
---|
171 | <primary sortas="b-glib-mkenums">glib-mkenums</primary>
|
---|
172 | </indexterm>
|
---|
173 | </listitem>
|
---|
174 | </varlistentry>
|
---|
175 |
|
---|
176 | <varlistentry id="gobject-query">
|
---|
177 | <term><command>gobject-query</command></term>
|
---|
178 | <listitem>
|
---|
179 | <para>is a small utility that draws a tree of types.</para>
|
---|
180 | <indexterm zone="glib2 gobject-query">
|
---|
181 | <primary sortas="b-gobject-query">gobject-query</primary>
|
---|
182 | </indexterm>
|
---|
183 | </listitem>
|
---|
184 | </varlistentry>
|
---|
185 |
|
---|
186 | <varlistentry id="GLib-libraries">
|
---|
187 | <term>GLib libraries</term>
|
---|
188 | <listitem>
|
---|
189 | <para>contain a low-level core library for the
|
---|
190 | <application>GIMP</application> Toolkit.</para>
|
---|
191 | <indexterm zone="glib2 GLib-libraries">
|
---|
192 | <primary sortas="c-GLib-libraries">Glib libraries</primary>
|
---|
193 | </indexterm>
|
---|
194 | </listitem>
|
---|
195 | </varlistentry>
|
---|
196 |
|
---|
197 | </variablelist>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | </sect1>
|
---|