meson does not find curl

Hi everyone
kubuntu 22.04.2

Whilst autotools finds curl but not glib-networking:

checking for glib-networking (GIO HTTPS implementation)… no
configure: glib-networking not found
checking for gawk… (cached) gawk
checking for curl-config… /usr/bin/curl-config
checking for the version of libcurl… 7.81.0
checking for libcurl >= version 7.10.0… yes
checking whether libcurl is usable… yes
checking for curl_free… yes
configure: networking solution found with either glib-networking or curl

meson finds glib-networking but not curl:

Optional dependencies
json glib : True
exiv2 : True
libraw : True
TIFF : True
XISF : True
JPEG : True
PNG : True
HEIF : True
FFMS2 : True
ffmpeg : True
libcurl : False
glib-networking : True
wcslib : True
criterion : False

The autotools build works with online plate solving, the meson build doesn’t:

meson:
log: Plate solving image from an online catalogue for a field of view of 2.48 degrees, using a limit magnitude of 12.32
log: Catalog Gaia DR3 size: 0 objects
log: Plate Solving failed. The image could not be aligned with the reference stars.
log: Server unreachable or unresponsive. (The specified location is not supported)
log: Plate solving image from an online catalogue for a field of view of 2.48 degrees, using a limit magnitude of 12.32
log: Catalog TYCHO-2 size: 0 objects
log: Plate Solving failed. The image could not be aligned with the reference stars.

autotools:
log: Reading FITS: file r_pp_cyg-1_Light_stacked.fits, 3 layer(s), 6224x4168 pixels, 32 bits
log: Plate solving image from an online catalogue for a field of view of 2.48 degrees, using a limit magnitude of 12.32
log: Catalog TYCHO-2 size: 688 objects
log: Findstar: processing for channel 1…
log: Using 688 detected stars from image.
using min_scale 0.698424, max_scale 1.047636
using trans_order 1
using trans_order 1.
Initial trans structure:
sig=1.2340e+01 Nr=36 Nm=0 sx=0.0000e+00 sy=0.0000e+00
TRANS based on matches only :
sig=7.5274e+00 Nr=301 Nm=311 sx=2.1939e+00 sy=2.0747e+00
After tuning with recalc, num matches is 290
sig=7.5274e+00 Nr=301 Nm=290 sx=2.1939e+00 sy=2.0747e+00
TRANS based on recalculated matches is
sig=6.6059e+00 Nr=290 Nm=290 sx=1.6800e+00 sy=1.6925e+00
Transformation Matrix:
-0.96991 +0.69847 +1517.99779
+0.69800 +0.97040 -4159.92953
+0.00000 +0.00000 +1.00000
log: Up is -35.73 deg ClockWise wrt. N (flipped)
log: Resolution: 1.195 arcsec/px
log: Focal length: 648.84 mm
log: Pixel size: 3.76 µm
log: Field of view: 02d 03m 59.50s x 01d 23m 1.98s
log: Saved focal length 648.84 and pixel size 3.76 as default values
log: Image center: alpha: 20h15m27s, delta: +41°33’39"
log: Flipping image and updating astrometry data.

Any idea what I’m missing for the meson build?
TIA,
Steve

What are your meson command please. With options?

Command in the siril folder after git pull:
meson --reconfigure _build

Here is the siril folder:
siril$ ls -l
total 1516
drwxrwxr-x 3 steve steve 4096 jul 23 11:26 3rdparty
-rw-rw-r-- 1 steve steve 42391 jul 23 11:30 aclocal.m4
-rw-rw-r-- 1 steve steve 1882 jul 23 11:26 AUTHORS
-rwxrwxr-x 1 steve steve 1256 jul 23 11:26 autogen.sh
drwxr-xr-x 2 steve steve 4096 jul 23 11:30 autom4te.cache
drwxrwxr-x 14 steve steve 4096 jul 31 14:10 _build
drwxrwxr-x 6 steve steve 4096 jul 23 11:26 build
-rw-rw-r-- 1 steve steve 35397 jul 31 14:10 ChangeLog
-rwxr-xr-x 1 steve steve 7400 jul 23 11:29 compile
-rwxr-xr-x 1 steve steve 49482 jul 23 11:29 config.guess
-rw-rw-r-- 1 steve steve 5981 jul 23 11:29 config.h
-rw-rw-r-- 1 steve steve 5490 jul 23 11:30 config.h.in
-rw-rw-r-- 1 steve steve 64109 jul 31 14:12 config.log
-rwxrwxr-x 1 steve steve 46946 jul 31 14:12 config.status
-rwxr-xr-x 1 steve steve 35406 jul 23 11:29 config.sub
-rwxrwxr-x 1 steve steve 389179 jul 23 11:30 configure
-rwxrwxr-x 1 steve steve 389179 jul 23 11:29 configure~
-rw-rw-r-- 1 steve steve 15056 jul 23 11:26 configure.ac
-rw-rw-r-- 1 steve steve 3426 jul 23 11:26 CONTRIBUTING.md
drwxrwxr-x 2 steve steve 4096 jul 31 14:12 data
-rwxr-xr-x 1 steve steve 23568 jul 23 11:29 depcomp
-rw-r–r-- 1 root root 169 jul 31 14:18 git-version.h
-rwxr-xr-x 1 steve steve 15358 jul 23 11:29 install-sh
-rw-rw-r-- 1 steve steve 35057 jul 23 11:26 LICENSE.md
-rw-rw-r-- 1 steve steve 1680 jul 23 11:26 LICENSE_sleef.txt
drwxrwxr-x 2 steve steve 4096 jul 23 11:29 m4
-rw-rw-r-- 1 steve steve 36704 jul 31 14:12 Makefile
-rw-rw-r-- 1 steve steve 2276 jul 23 11:26 Makefile.am
-rw-rw-r-- 1 steve steve 35318 jul 23 11:30 Makefile.in
-rw-rw-r-- 1 steve steve 24950 jul 23 11:26 meson.build
-rw-rw-r-- 1 steve steve 1662 jul 23 11:26 meson_options.txt
-rwxr-xr-x 1 steve steve 6878 jul 23 11:29 missing
-rw-rw-r-- 1 steve steve 38338 jul 31 14:10 NEWS
drwxrwxr-x 3 steve steve 4096 jul 31 14:12 pixmaps
drwxrwxr-x 5 steve steve 4096 jul 31 14:12 platform-specific
drwxrwxr-x 2 steve steve 4096 jul 31 14:18 po
-rw-rw-r-- 1 steve steve 8447 jul 23 11:26 README.md
drwxrwxr-x 2 steve steve 4096 jul 23 11:26 scripts
-rw-rw-r-- 1 steve steve 3748 jul 23 11:26 siril.1
-rw-rw-r-- 1 steve steve 108387 jul 23 11:26 siril.doxyfile
drwxrwxr-x 16 steve steve 4096 jul 31 14:19 src
-rw-rw-r-- 1 steve steve 23 jul 31 14:12 stamp-h1
drwxrwxr-x 6 steve steve 4096 jul 31 14:12 subprojects

TIA

Yes so you are missing the libcurl option which is not enabled by default with meson.
https://siril.readthedocs.io/en/latest/installation/source.html#meson

That got it:

git pull
meson --reconfigure _build -Denable-libcurl=yes

Thanks.

1 Like