Thanks for your answer Even, lcms2 was indeed a missing piece, it allowed me to get GDAL configured but the build failed with a missing header: *fatal error: core/fpdfapi/page/cpdf_page.h: No such file or directory*
I finally used your pre-built binaries from https://github.com/rouault/pdfium_build_gdal_3_8/releases And get GDAL to compile properly with pdfium. Thanks for the support, Johannes On Wed, 6 Mar 2024 at 11:19, Even Rouault <even.roua...@spatialys.com> wrote: > 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 > listgdal-dev@lists.osgeo.orghttps://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