gi-compile-repository(1)

gi-compile-repository1

Typelib compiler

Usage

gi-compile-repository [OPTION…] GIRFILE

Overview

gi-compile-repository converts one or more GIR files into one or more typelibs. The output will be written to standard output unless the --output is specified.

Options

--help

Show help options.

--output FILENAME, -o FILENAME

Save the resulting output in FILENAME.

--verbose

Show verbose messages.

--debug

Show debug messages.

--includedir DIRECTORY

Add DIRECTORY to the search path for GIR XML. This option can be used more than once. The first DIRECTORY on the command-line will be searched first (highest precedence).

--shared-library FILENAME, -l FILENAME

Specifies the shared library where the symbols in the typelib can be found. The name of the library should not contain the ending shared library suffix. This option can be used more than once, for typelibs that describe more than one shared library.

--version

Show program’s version number and exit.

Examples

::

$ gi-compile-repository -o Gio-2.0.typelib /usr/share/gir-1.0/Gio-2.0.gir

HOMEPAGE and CONTACT

<https://gi.readthedocs.io/>

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

Bugs

Report bugs at <https://gitlab.gnome.org/GNOME/glib/-/issues>

Authors

Matthias Clasen

From glib2 2.90.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.