Introduction to GLib

The GLib package contains 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.

This package is known to build and work properly using an LFS-7.10 platform.

Package Information

GLib Dependencies


libffi-3.2.1 and Python-2.7.12 or Python-3.5.2



D-Bus-1.10.10 (required for some tests), elfutils-0.167, GTK-Doc-1.25, and FAM library

Additional Runtime Dependencies

Quoted directly from the INSTALL file: “Some of the mimetype-related functionality in GIO requires the update-mime-database and update-desktop-database utilities”, which are part of shared-mime-info-1.6 and desktop-file-utils-0.23, respectively.

User Notes:

Installation of GLib

Install GLib by running the following commands:

./configure --prefix=/usr --with-pcre=system &&

The GLib test suite requires desktop-file-utils for some tests. 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

You should now install desktop-file-utils-0.23 and proceed to run the test suite.

To test the results, after having installed the package, issue: make -k check.

Command Explanations

--with-pcre=system: This switch causes the build to use a system-provided version of the PCRE library instead of an internal version.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

--with-python=/usr/bin/python3: Add this switch if you want GLib to use Python3 instead of Python2.


Installed Programs: gapplication, 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
Installed Libraries:,,,, and
Installed Directories: /usr/include/gio-unix-2.0, /usr/{include,lib,share}/glib-2.0, /usr/lib/gio, and /usr/share/gtk-doc/html/g{io,lib,object}

Short Descriptions


can be used to start applications and to send messages to already-running instances of other applications.


is a simple tool used for working with D-Bus objects.


is used to generate code and/or documentation for one or more D-Bus interfaces.


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.


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.


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.


is a C code marshaller generation utility for GLib closures.


is a variant of the gettext internationalization utility.


is a C language enum description generation utility.


is a small utility that draws a tree of types.


offers a simple commandline interface to GResource.


offers a simple commandline interface to GSettings.


is a test running utility.


is a test report formatting utility.

GLib libraries

contain low-level core libraries for the GIMP Toolkit.

Last updated on 2016-08-27 12:04:03 -0700