Babl.gir not picked up correctly
I tried building gegl on Ubuntu 18.04 and even though I built upstream babl and installed it under ~/.local
, set PKG_CONFIG_PATH
so the .pc
file is found, I get a build error: Couldn't find include 'Babl-0.1.gir' (search path: '['gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
PS /home/mnagy/Source/Repos/gnome-gegl/build> gc Env:/PKG_CONFIG_PATH
/home/mnagy/.local/lib/x86_64-linux-gnu/pkgconfig
PS /home/mnagy/Source/Repos/gnome-gegl/build> gci /home/mnagy/.local/lib/x86_64-linux-gnu/pkgconfig
Directory: /home/mnagy/.local/lib/x86_64-linux-gnu/pkgconfig
Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 9/5/19 11:57 AM 302 babl.pc
Complete build step error:
PS /home/mnagy/Source/Repos/gnome-gegl/build> ninja
[1/378] Generating Gegl-0.4.gir with a custom command.
FAILED: gegl/Gegl-0.4.gir
/usr/bin/g-ir-scanner --no-libtool --namespace=Gegl --nsversion=0.4 --warn-all --output gegl/Gegl-0.4.gir --c-include=gegl.h -I/home/mnagy/Source/Repos/gnome-gegl/gegl -I/home/mnagy/Source/Repos/gnome-gegl/build/gegl -I./. -I../. -I./gegl/. -I../gegl/. -I./gegl/buffer -I../gegl/buffer -I./gegl/graph -I../gegl/graph -I./gegl/module -I../gegl/module -I./gegl/opencl -I../gegl/opencl -I./gegl/operation -I../gegl/operation -I./gegl/process -I../gegl/process -I./gegl/property-types -I../gegl/property-types --filelist=/home/mnagy/Source/Repos/gnome-gegl/build/gegl/2cd4258@@gegl-0.4@sha/Gegl_0.4_gir_filelist --include=GLib-2.0 --include=GObject-2.0 --include=Babl-0.1 --symbol-prefix=gegl --identifier-prefix=Gegl --cflags-begin -DHAVE_CONFIG_H -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wno-deprecated-declarations -mfpmath=sse -mmmx -msse -msse2 -msse4.1 -I./. -I../. -I./gegl/. -I../gegl/. -I./gegl/buffer -I../gegl/buffer -I./gegl/graph -I../gegl/graph -I./gegl/module -I../gegl/module -I./gegl/opencl -I../gegl/opencl -I./gegl/operation -I../gegl/operation -I./gegl/process -I../gegl/process -I./gegl/property-types -I../gegl/property-types -I/home/mnagy/.local/include/babl-0.1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0/ --cflags-end --library gegl-0.4 -L/home/mnagy/Source/Repos/gnome-gegl/build/gegl -L/home/mnagy/.local/lib/x86_64-linux-gnu -L/home/mnagy/.local/lib/x86_64-linux-gnu --extra-library=babl-0.1 --extra-library=glib-2.0 --extra-library=gio-2.0 --extra-library=gobject-2.0 --extra-library=m --extra-library=gmodule-2.0
Couldn't find include 'Babl-0.1.gir' (search path: '['gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
The g-ir-scanner seems to be looking in include directories only, but not share
folders. Placing a symlink to the gir file in system share pointing to .local share fixes the build, but I'd rather not pollute system share folders with manual symlinks. How can the build scripts of babl/gegl handle this situation better?