error: meson does not find libxisf

kubuntu 22.04.3
Hi everyone
The autotools method is working fine.

Command:
meson setup --prefix /usr/local --buildtype release _build -Denable-libcurl=yes

The meson setup fails at:

Run-time dependency OpenMP found: YES 4.5
Message: FFTW linked against OpenMP
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency exiv2 found: YES 0.27.5
Run-time dependency libraw found: YES 0.20.2
Run-time dependency libtiff-4 found: YES 4.3.0
Run-time dependency libjpeg found: YES 2.1.2
Run-time dependency libpng found: YES 1.6.37
Run-time dependency libheif found: YES 1.12.0
Run-time dependency libxisf found: NO (tried pkgconfig and cmake)

meson.build:389:2: ERROR: Dependency “libxisf” not found, tried pkgconfig and cmake

I have those installed:

libxisf-dev is already the newest version (0.2.9~202308141246~ubuntu22.04.1).
and

libxisf is already the newest version (0.2.9~202308141246~ubuntu22.04.1).

I have also tries with:
meson setup --prefix /usr/local --buildtype release _build -Denable-libcurl=yes -Denable-libXISF=yes
which gives:
meson.build:28:0: ERROR: Unknown options: “enable-libXISF”

Question: what am I missing?
TIA, Steve

Hello.

If you don’t want libxisf. Just tell to meson to not compile it.

If you want, try to remove the build directory to redo a meson setup.

In the event anyone else sees this or needs it, there is a quick answer. You need to install libpugixml-dev and liblz4-dev on Ubuntu. These are dependencies that are not installed by default. Meson will tell you this in it’s output, but not in a very obvious way.

I’ve updated the doc

Here’s a full list, Kubuntu 26.04

sudo apt install libgtk-3-dev libcfitsio-dev libfftw3-dev libgsl-dev libopencv-dev libcurl4-gnutls-dev libpng-dev libjpeg-dev libtiff5-dev libraw-dev gnome-icon-theme libavformat-dev libavutil-dev libavcodec-dev libswscale-dev libswresample-dev libgit2-dev libheif-dev libexiv2-dev libjxl-dev wcslib-dev libjson-glib-dev libffms2-dev libgtksourceview-4-dev meson cmake sqlite3 libsqlite3-dev libglib2.0-dev build-essential libgtk-3-dev libgtksourceview-4-dev libgtksourceview-5-0 gir1.2-gtksource-5 libgtksourceview-5-dev libgtk-4-dev libgtk-4-dev libgtkmm-4.0-dev libxisf0 libxisf-dev libpugixml-dev liblz4-dev