Build & Test

Clone gobject-introspection with git:

git clone https://gitlab.gnome.org/GNOME/gobject-introspection.git
cd gobject-introspection

Autotools

Build:
./autogen.sh
# To see the build options run "./configure --help"
make
Test:
make check  # run tests
make check.quality  # run code quality checks

Meson

Build:
meson _build
cd _build
# To see the build options run "meson configure"
ninja _build
Test:
meson test  # run tests
flake8 ..  # run code quality checks

Dependencies

gobject-introspection depends on a row of other packages, either strictly, optionally or only for testing. The following installation instructions should over all cases for some common Distributions.

Debian/Ubuntu:
sudo apt install pkg-config python3-dev flex bison libglib2.0-dev \
    autoconf-archive libcairo2-dev libffi-dev python3-mako \
    python3-markdown python3-distutils meson build-essential \
    gtk-doc-tools
Fedora:
sudo dnf install pkg-config flex bison cairo-devel
    cairo-gobject-devel autoconf-archive python3-mako gcc automake \
    autoconf python3-markdown meson libffi-devel python3-devel \
    python3 gtk-doc