Introspection fails
Building the src/gulkan-0.15.gir
file fails with the below error message when option('introspection', type : 'boolean', value : true)
is set in meson_options.txt
:
$ meson build
...
$ ninja -C build
...
[71/75] Generating gulkan-0.15.gir with a custom command.
FAILED: src/gulkan-0.15.gir
/usr/bin/g-ir-scanner -pthread -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include --no-libtool --namespace=gulkan --nsversion=0.15 --warn-all --output src/gulkan-0.15.gir --c-include=gulkan/gulkan.h -I/home/USER/Projects/gulkan/src -I/home/USER/Projects/gulkan/build/src --filelist=/home/USER/Projects/gulkan/build/src/25a6634@@gulkan-0.15@sha/gulkan_0.15_gir_filelist --include=cairo-1.0 --include=GdkPixbuf-2.0 --include=Gdk-3.0 --symbol-prefix=gulkan --identifier-prefix=gulkan --pkg-export=gulkan-0.15 --cflags-begin -I/home/USER/Projects/gulkan/build -Wno-overlength-strings -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include --cflags-end --library gulkan-0.15 -L/home/USER/Projects/gulkan/build/src --extra-library=cairo --extra-library=gio-2.0 --extra-library=gobject-2.0 --extra-library=glib-2.0 --extra-library=gdk_pixbuf-2.0 --extra-library=vulkan --extra-library=graphene-1.0 --sources-top-dirs /home/USER/Projects/gulkan/subprojects/ --sources-top-dirs /home/USER/Projects/gulkan/build/subprojects/
g-ir-scanner: link: x86_64-linux-gnu-gcc -pthread -o /home/USER/Projects/gulkan/build/tmp-introspect2k6alu9u/gulkan-0.15 /home/USER/Projects/gulkan/build/tmp-introspect2k6alu9u/gulkan-0.15.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/home/USER/Projects/gulkan/build/src -Wl,-rpath,/home/USER/Projects/gulkan/build/src -lgulkan-0.15 -lcairo -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 -lvulkan -lgraphene-1.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
...
../src/gulkan-descriptor-pool.h:20: Warning: gulkan: Skipping foreign identifier 'GulkanSwapchainRenderer' from namespace GModule
../src/gulkan-descriptor-pool.h:20: Warning: gulkan: Skipping foreign identifier 'GulkanSwapchainRendererClass' from namespace GModule
<unknown>:: Fatal: gulkan: Skipping foreign identifier 'GulkanInstance' from namespace GModule
<unknown>:: Fatal: gulkan: Skipping foreign identifier 'GulkanInstance' from namespace GModule
[73/75] Linking target tests/test_texture_external.
ninja: build stopped: subcommand failed.