[gdal-dev] GDAL_ENABLE_DRIVER_PDF

Johannes Paul johannespaul92 at gmail.com
Wed Mar 6 02:00:43 PST 2024


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240306/1a274fbf/attachment.htm>


More information about the gdal-dev mailing list