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

Reply via email to