Can't build with builtin_loaders != none
After the default value of builtin_loaders
was changed from none
to default
and then to ['png', 'jpeg']
, I can't build gdk-pixbuf from the git repo with
default settings. I get
[83/171] Generating resources.c with a custom command
FAILED: tests/resources.c
/usr/bin/python3 /home/kjell/checkout/gnome/gdk-pixbuf/build-aux/gen-resources.py --glib-compile-resources=/opt/gnome/bin/glib-compile-resources --pixdata=/home/kjell/checkout/build_gnome/gdk-pixbuf/gdk-pixbuf/gdk-pixbuf-pixdata --loaders=/home/kjell/checkout/build_gnome/gdk-pixbuf/gdk-pixbuf/loaders.cache --sourcedir=/home/kjell/checkout/gnome/gdk-pixbuf/tests --source ../../gnome/gdk-pixbuf/tests/resources.gresource.xml tests/resources.c
failed to load "/home/kjell/checkout/gnome/gdk-pixbuf/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/home/kjell/checkout/gnome/gdk-pixbuf/tests/icc-profile.png?
../../gnome/gdk-pixbuf/tests/resources.gresource.xml: Child process exited with code 1.
[85/171] Compiling C object tests/pixbuf-composite.p/test-common.c.o
ninja: build stopped: subcommand failed.
*** Error during phase build of gdk-pixbuf: ########## Error running ninja *** [24/31]
gdk-pixbuf/meson.build: File formats in builtin_loaders
are not included in
dynamic_loaders
. Therefore they are not included in loaders_cache
.
tests/meson.build: Only loaders in loaders_cache
are used when resources.c
and resources.h
are built.
meson configure -Dbuiltin_loaders=none
fixes the build.