<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>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</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 06/03/2024 à 11:00, Johannes Paul
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CACcmK9YWRQqEx9N+vmMFUvzmN8NC8z+eyBMB3kLqeZkaUQaLpQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I have compiled PDFium from <a
href="https://github.com/rouault/pdfium/tree/master"
moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/rouault/pdfium/tree/master</a>
and I'm trying to get GDAL 3.8.4 built with this geospatial
PDF driver on Almalinux 8.</div>
<div><br>
</div>
<div>However if I use cmake with the following variables :</div>
<div><i>-DGDAL_USE_PDFIUM=ON -DGDAL_ENABLE_DRIVER_PDF=ON
-DPDFIUM_INCLUDE_DIR="${INSTALLDIR}"/include/pdfium
-DPDFIUM_LIBRARY="${INSTALLDIR}"/lib/pdfium/libpdfium.a</i></div>
<div><br>
</div>
<div>I get the following error :</div>
<div><i>CMake Error at cmake/helpers/GdalDriverHelper.cmake:284
(message):<br>
gdal_target_link_libraries(): PRIVATE is a mandatory
argument.<br>
Call Stack (most recent call first):<br>
frmts/pdf/CMakeLists.txt:53 (gdal_target_link_libraries)</i><br>
</div>
<div><br>
</div>
<div>If I remove <i>-DGDAL_ENABLE_DRIVER_PDF=ON </i>, I get
GDAL compiled but without PDFium.</div>
<div><br>
</div>
<div>Any idea?</div>
<div>Thanks,</div>
<div>Johannes</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>