gi-compile-repository(1)
π gi-compile-repository β ok bestie, it's the Typelib compiler π
gi-compile-repository is a little tool from the General Commands Manual family, and she's here to turn your GIR files into typelibs. Come on, let's go π¦
β¨ SYNOPSIS β¨
gi-compile-repository [OPTIONβ¦] GIRFILE
Yeah. That's the whole vibe. Options plus a GIR file. Slay β¨
πΈ DESCRIPTION πΈ
So gi-compile-repository takes one or more GIR files and converts them into one or more typelibs. Iconic behaviour, honestly. π
The output goes to standard output by default β unless you pass --output, in which case it goes wherever you told it to. Periodt.
On Debian-derived systems π each architecture ships its own version of gi-compile-repository, prefixed with the DEB_HOST_GNU_TYPE from dpkg-architecture(1). So like, for example:
arm-linux-gnueabihf-gi-compile-repository
These architecture-prefixed names use the appropriate search paths for whatever architecture you're targeting, and you should use them when you're cross-compiling. π§
Want the whole lore dump? Go read <file:///usr/share/doc/gobject-introspection/README.Debian.gz>. It's giving documentation, bestie π
π OPTIONS π
--helpβ shows the help options. Your classic "wait what does this do again" moment π--output FILENAME,-o FILENAMEβ saves the resulting output into FILENAME. No more yelling into stdout, we're being organised now π--verboseβ shows verbose messages. She will talk more. Let her π£οΈ--debugβ shows debug messages. Maximum yapping mode, for when something is lowkey wrong π--includedir DIRECTORYβ adds DIRECTORY to the search path for GIR XML. You can use this option more than once, and the first DIRECTORY on the command-line gets searched first (that's highest precedence, babe π).--shared-library FILENAME,-l FILENAMEβ specifies the shared library where the symbols in the typelib can be found. Here's the tea though: the library name should not contain the ending shared library suffix π«. You can use this option more than once, for typelibs that describe more than one shared library.--versionβ shows the program's version number and dips. Exit stage left π
π EXAMPLE π
$ gi-compile-repository -o Gio-2.0.typelib /usr/share/gir-1.0/Gio-2.0.gir
Look at her go. Not a single note. Ate π₯
π BUGS π
Found a bug? Don't suffer in silence, bestie β report it at <https://gitlab.gnome.org/GNOME/glib/-/issues> π«Ά
π HOMEPAGE and CONTACT π
<https://gi.readthedocs.io/> β go say hi, she's friendly β¨
β AUTHORS β
Matthias Clasen π
And that's the whole page, fr fr β brought to you by the General Commands Manual, version/date energy from gi-compile-repository(1). Stay compiled, bestie π¦π
π¦ where this page comes from
- ubuntu stonking: girepository-tools 2.90.0-1 Β· LGPL-2.1-or-later
- π the page's license: LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms