Build fails with: `Couldn't recognize the image file format for file ...`
There are configure options.
cd build
meson setup --prefix=/usr \
--libdir=/usr/lib \
--buildtype=release \
--wrap-mode=nofallback \
-Dpng=enabled \
-Dbuiltin_loaders=png,jpeg \
..
ninja
DESTDIR=$pkgdir ninja install
There is compile log.
The Meson build system
Version: 1.1.1
Source dir: /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10
Build dir: /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build
Build type: native build
Project name: gdk-pixbuf
Project version: 2.42.10
C compiler for the host machine: cc (gcc 13.1.0 "cc (GCC) 13.1.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.9.5)
Run-time dependency glib-2.0 found: YES 2.75.4
Run-time dependency gobject-2.0 found: YES 2.75.4
Run-time dependency gmodule-no-export-2.0 found: YES 2.75.4
Run-time dependency gio-2.0 found: YES 2.75.4
Has header "unistd.h" : YES
Has header "sys/resource.h" : YES
Has header "sys/time.h" : YES
Library m found: YES
Checking for function "round" with dependency -lm: YES
Checking for function "lrint" with dependency -lm: YES
Library intl found: NO
Checking for function "bind_textdomain_codeset" with dependency -lintl: YES
Checking for function "setrlimit" : YES
Checking if "sigsetjmp" : links: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wdeclaration-after-statement: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wlogical-op: YES
Compiler for C supports arguments -fno-strict-aliasing: YES
Compiler for C supports arguments -Wno-int-conversion: YES
Compiler for C supports arguments -Wno-uninitialized: YES
Compiler for C supports arguments -Wno-discarded-qualifiers: YES
Compiler for C supports arguments -Werror=implicit: YES
Compiler for C supports arguments -Werror=nonnull: YES
Compiler for C supports arguments -Werror=init-self: YES
Compiler for C supports arguments -Werror=main: YES
Compiler for C supports arguments -Werror=missing-braces: YES
Compiler for C supports arguments -Werror=sequence-point: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=trigraphs: YES
Compiler for C supports arguments -Werror=array-bounds: YES
Compiler for C supports arguments -Werror=write-strings: YES
Compiler for C supports arguments -Werror=address: YES
Compiler for C supports arguments -Werror=int-to-pointer-cast: YES
Compiler for C supports arguments -Werror=pointer-to-int-cast: YES
Compiler for C supports arguments -Werror=empty-body: YES
Compiler for C supports arguments -fvisibility=hidden: YES
Compiler for C supports link arguments -Wl,-Bsymbolic: YES
Compiler for C supports link arguments -Wl,-z,relro: YES
Compiler for C supports link arguments -Wl,-z,now: YES
Run-time dependency shared-mime-info found: YES 2.2
Library mlib found: NO
Run-time dependency libpng found: YES 1.6.39
Run-time dependency libjpeg found: YES 2.1.5.1
Checking for function "jpeg_destroy_decompress" with dependency libjpeg: YES
Checking for function "jpeg_simple_progression" with dependency libjpeg: YES
Run-time dependency libtiff-4 found: YES 4.5.0
Configuring config.h using configuration
Program build-aux/gen-resources.py found: YES (/usr/bin/python3.11 /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build-aux/gen-resources.py)
Program build-aux/gen-installed-test.py found: YES (/usr/bin/python3.11 /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build-aux/gen-installed-test.py)
Program build-aux/gen-thumbnailer.py found: YES (/usr/bin/python3.11 /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build-aux/gen-thumbnailer.py)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Configuring gdk-pixbuf-features.h using configuration
Found pkg-config: /usr/bin/pkg-config (1.9.5)
Program glib-genmarshal found: YES (/usr/bin/glib-genmarshal)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program glib-mkenums found: YES (/usr/bin/glib-mkenums)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Run-time dependency gobject-introspection-1.0 found: YES 1.75.6
Dependency gobject-introspection-1.0 found: YES 1.75.6 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.75.6 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Program msgfmt found: YES (/usr/bin/msgfmt)
Program msginit found: YES (/usr/bin/msginit)
Program msgmerge found: YES (/usr/bin/msgmerge)
Program xgettext found: YES (/usr/bin/xgettext)
Found CMake: /usr/bin/cmake (3.26.4)
Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
Not looking for a fallback subproject for the dependency gi-docgen because:
Use of fallback dependencies is disabled.
Configuring gdk-pixbuf.toml using configuration
Configuring gdk-pixdata.toml using configuration
Program gi-docgen found: NO
Program rst2man found: YES (/usr/bin/rst2man)
Build targets in project: 192
NOTICE: Future-deprecated features used:
* 0.62.0: {'pkgconfig.generate variable for builtin directories'}
gdk-pixbuf 2.42.10
Loaders
Shared modules : True
Enabled loaders : png
jpeg
tiff
Builtin loaders : png
jpeg
Build
Debugging : False
Optimization : 3
GIO MIME sniffing: True
MediaLib : False
Introspection : True
Documentation : False
Manual pages : True
Relocatable : False
Build tests : True
Installed tests : True
Directories
prefix : /usr
libdir : /usr/lib
datadir : /usr/share
libexecdir : /usr/lib
User defined options
buildtype : release
libdir : /usr/lib
prefix : /usr
wrap_mode : nofallback
builtin_loaders : png,jpeg
png : enabled
Found ninja-1.11.1 at /usr/bin/ninja
[11/278] Generating gdk-pixbuf/gdk-pixbuf-marshal_h with a custom command
INFO: Reading ../gdk-pixbuf/gdk-pixbuf-marshal.list...
[35/278] Generating gdk-pixbuf/gdk-pixbuf-marshal_c with a custom command
INFO: Reading ../gdk-pixbuf/gdk-pixbuf-marshal.list...
[211/278] Generating tests/resources.h with a custom command
FAILED: tests/resources.h
/usr/bin/python3.11 /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build-aux/gen-resources.py --glib-compile-resources=/usr/bin/glib-compile-resources --pixdata=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build/gdk-pixbuf/gdk-pixbuf-pixdata --loaders=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build/gdk-pixbuf/loaders.cache --sourcedir=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests --header ../tests/resources.gresource.xml tests/resources.h
failed to load "/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests/icc-profile.png?
../tests/resources.gresource.xml: Child process exited with code 1.
[212/278] Generating tests/resources.c with a custom command
FAILED: tests/resources.c
/usr/bin/python3.11 /var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build-aux/gen-resources.py --glib-compile-resources=/usr/bin/glib-compile-resources --pixdata=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build/gdk-pixbuf/gdk-pixbuf-pixdata --loaders=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/build/gdk-pixbuf/loaders.cache --sourcedir=/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests --source ../tests/resources.gresource.xml tests/resources.c
failed to load "/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests/icc-profile.png": Couldn?t recognize the image file format for file ?/var/lib/leaf/build/x11-libs/gdk-pixbuf-2.42.10/tests/icc-profile.png?
../tests/resources.gresource.xml: Child process exited with code 1.
[226/278] Generating gdk-pixbuf/GdkPixbuf-2.0.gir with a custom command (wrapped by meson to set env)
ninja: build stopped: subcommand failed.