Hi,

I suspect that the error comes from the fact that one of several of the other dependencies required by pdfium are not found: JPEG, PNG, OpenJPEG, lcms2

Even

Le 06/03/2024 à 11:00, Johannes Paul via gdal-dev a écrit :
Hello,

I have compiled PDFium from https://github.com/rouault/pdfium/tree/master and I'm trying to get GDAL 3.8.4 built with this geospatial PDF driver on Almalinux 8.

However if I use cmake with the following variables :
/-DGDAL_USE_PDFIUM=ON -DGDAL_ENABLE_DRIVER_PDF=ON -DPDFIUM_INCLUDE_DIR="${INSTALLDIR}"/include/pdfium -DPDFIUM_LIBRARY="${INSTALLDIR}"/lib/pdfium/libpdfium.a/

I get the following error :
/CMake Error at cmake/helpers/GdalDriverHelper.cmake:284 (message):
  gdal_target_link_libraries(): PRIVATE is a mandatory argument.
Call Stack (most recent call first):
  frmts/pdf/CMakeLists.txt:53 (gdal_target_link_libraries)/

If I remove /-DGDAL_ENABLE_DRIVER_PDF=ON /, I get GDAL compiled but without PDFium.

Any idea?
Thanks,
Johannes



_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to