GLib-2.22.0
Introduction to GLib
The GLib 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.
This package is known to build and work properly using an LFS-6.5
platform.
Package Information
GLib Dependencies
Recommended
PCRE-7.9
(built with unicode properties)
Optional
Gamin-0.1.10 and GTK-Doc-1.11
Gamin requires GLib in order to compile; therefore, you must
first install GLib, then compile
Gamin, and recompile GLib against it.
Optional Runtime Dependency for the gtester-report program
Python-2.6.2
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/glib2
Installation of GLib
Install GLib by running the
following commands:
./configure --prefix=/usr \
--with-pcre=system &&
make
The GLib test suite requires
desktop-file-utils in order to
run. However, desktop-file-utils
requires GLib in order to compile;
therefore, you must first install GLib and then run the test suite.
Now, as the root user:
make install &&
chmod -v 755 /usr/bin/gtester-report
You should now install desktop-file-utils-0.15 and proceed
to run the test suite.
To test the results, issue: make
check.
Command Explanations
--enable-gtk-doc: Use this parameter if
GTK-Doc is installed and you wish
to rebuild the API documentation.
--with-pcre=system: This
parameter causes the build to use a system-provided version of the
PCRE library instead of an
internal version.
--disable-static: prevent
static libraries being built and installed.
Configuring GLib
Configuration Information
By default, GLib assumes that
all filenames are in the UTF-8 charset. See the Wrong
Filename Encoding section of the Locale Related 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
G_FILENAME_ENCODING to the value
"@locale":
cat > /etc/profile.d/glib2-locale.sh << "EOF"
# Use the current locale charset for filenames
# in applications using GLib
export G_FILENAME_ENCODING=@locale
EOF
Contents
Installed Programs:
glib-genmarshal, glib-gettextize,
glib-mkenums, gobject-query, gtester and gtester-report
Installed Libraries:
libgio-2.0.so, libglib-2.0.so,
libgobject-2.0.so, libgmodule-2.0.so, and
libgthread-2.0.so
Installed Directories:
/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
Short Descriptions
|
glib-genmarshal
|
is a C code marshaller generation utility for GLib
closures.
|
|
glib-gettextize
|
is a variant of the gettext internationalization
utility.
|
|
glib-mkenums
|
is a C language enum description generation utility.
|
|
gobject-query
|
is a small utility that draws a tree of types.
|
|
GLib
libraries
|
contain a low-level core library for the GIMP Toolkit.
|
Last updated on 2009-10-17 07:50:57 +0000