Your libjpeg is too old. Poppler needs one that provides jpeg_mem_src. That is provided in libjpeg >= 8 ...
I'm facing an issue with a pretty clear message : Your libjpeg is too old. Poppler needs one that provides jpeg_mem_src. That is provided in libjpeg >= 8
But the issue is that the libjeg lib found is >= 8
-- Found Freetype: /opt/local/lib/libfreetype.dylib (found suitable version "2.12.1", minimum required is "2.10")
-- Found Fontconfig: /opt/local/lib/libfontconfig.dylib (found suitable version "2.14.2", minimum required is "2.13")
-- Found JPEG: /opt/local/lib/libjpeg.dylib (found version "80")
-- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.2.13")
-- Found PNG: /opt/local/lib/libpng.dylib (found version "1.6.39")
-- Found TIFF: /opt/local/lib/libtiff.dylib (found version "4.5.1")
-- Checking for module 'nss>=3.49'
-- Found nss, version 3.89.0
-- Found NSS3: ssl3;smime3;nssutil3;nss3;plds4;plc4;nspr4
-- Performing Test HAVE_JPEG_MEM_SRC
-- Performing Test HAVE_JPEG_MEM_SRC - Failed
CMake Error at CMakeLists.txt:168 (message):
Your libjpeg is too old. Poppler needs one that provides jpeg_mem_src.
That is provided in libjpeg >= 8 or libjpeg-turbo >= 1.1.0. You can also
decide to use the internal unmaintained DCT decoder or none at all.
Possible options are: -DENABLE_DCTDECODER=libjpeg,
-DENABLE_DCTDECODER=none, -DENABLE_DCTDECODER=unmaintained
also :
ls -l /opt/local/lib/*jpeg*
-rwxr-xr-x 1 macports wheel 306812 21 fév 15:57 /opt/local/lib/libjpeg.8.2.2.dylib
lrwxr-xr-x 1 root wheel 19 21 fév 15:57 /opt/local/lib/libjpeg.8.dylib -> libjpeg.8.2.2.dylib
lrwxr-xr-x 1 root admin 43 30 jui 10:34 /opt/local/lib/libjpeg.9.dylib -> /opt/local/libexec/jpeg/lib/libjpeg.9.dylib
-rw-r--r-- 1 root wheel 369760 21 fév 15:57 /opt/local/lib/libjpeg.a
lrwxr-xr-x 1 root wheel 15 21 fév 15:57 /opt/local/lib/libjpeg.dylib -> libjpeg.8.dylib
-rwxr-xr-x 1 macports wheel 378945 21 fév 15:57 /opt/local/lib/libturbojpeg.0.2.0.dylib
lrwxr-xr-x 1 root wheel 24 21 fév 15:57 /opt/local/lib/libturbojpeg.0.dylib -> libturbojpeg.0.2.0.dylib
-rw-r--r-- 1 root wheel 468360 21 fév 15:57 /opt/local/lib/libturbojpeg.a
lrwxr-xr-x 1 root wheel 20 21 fév 15:57 /opt/local/lib/libturbojpeg.dylib -> libturbojpeg.0.dylib
I don't know why the found version is "80" and maybe that's part of the issue ?
Tested with the last version of poppler, on an apple m1 (arm) trying to build with Qt 6.4.3 with the following command :
cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib -DENABLE_UNSTABLE_API_ABI_HEADERS=ON