Skip to content

glib/CMakeLists.txt: allow the user to configure INTROSPECTION_COMPILER_ARGS

Fabrice Fontaine requested to merge (removed):master into master

Allow the user to add its own parameters such as --includedir=$(STAGING_DIR)/usr/share/gir-1.0 to INTROSPECTION_COMPILER_ARGS to avoid the following build failure when cross-compiling with buildroot:

[ 98%] Generating Poppler-0.18.typelib
Could not find GIR file 'GObject-2.0.gir'; check XDG_DATA_DIRS or use --includedir
error parsing file /home/giuliobenetti/autobuild/run/instance-1/output-1/build/poppler-21.12.0/glib/Poppler-0.18.gir: Failed to parse included gir GObject-2.0
If the above error message is about missing .so libraries, then setting up GIR_EXTRA_LIBS_PATH in the .mk file should help.
Typically like this: PKG_MAKE_ENV += GIR_EXTRA_LIBS_PATH="$(@D)/.libs"

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com

Merge request reports