Introduction to GObject Introspection

The GObject Introspection is used to describe the program APIs and collect them in a uniform, machine readable format.

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

Package Information




Cairo-1.17.4 (required for the tests), Gjs-1.68.1 (to satisfy one test), GTK-Doc-1.33.2, Mako-1.1.4, and Markdown (to satisfy one test)

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gobject-introspection

Installation of GObject Introspection

Install GObject Introspection by running the following commands:

mkdir build &&
cd    build &&

meson --prefix=/usr --buildtype=release .. &&

To test the results, issue: ninja test. If Mako-1.1.4 is installed but the Python 3 module named Markdown (not in BLFS) is not, one test named test_docwriter.py will fail.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=true: Build and install the documentation.

-Dcairo=enabled: Use cairo for tests.

-Ddoctool=enabled: Install g-ir-doc-tool and run related tests.


Installed Program: g-ir-annotation-tool, g-ir-compiler, g-ir-doc-tool, g-ir-generate, g-ir-inspect, and g-ir-scanner
Installed Libraries: libgirepository-1.0.so and _giscanner.cpython-39-<arch>-linux-gnu.so
Installed Directories: /usr/include/gobject-introspection-1.0, /usr/lib/girepository-1.0, /usr/lib/gobject-introspection, /usr/share/gir-1.0, and /usr/share/gobject-introspection-1.0

Short Descriptions


creates or extracts annotation data from GI typelibs


converts one or more GIR files into one or more typelib


generates Mallard files that can be viewed with yelp or rendered to HTML with yelp-build from yelp-tools


is a utility that gives information about a GI typelib


is a GIR generator that uses the repository API


is a tool which generates GIR XML files by parsing headers and introspecting GObject based libraries


provides an API to access the typelib metadata

Last updated on Fri Jun 4 20:06:48 2021 +