[gdal-dev] Compiling Poppler plugin under Windows (missing dependencies with GisInterrnals)

Philippe Ghesquiere philippe.ghesquiere at airbus.com
Thu Mar 21 05:43:26 PDT 2024


Hi,

While compiling GDAL V3.8.4 under Windows (Visual Studio 17 2022), I would
like to add the PDF plugin.
I downloaded all dependencies from GisInternals
<https://www.gisinternals.com>.
The PDF plugin compilation, based on Poppler, fails due to missing
dependencies for poppler.lib.
I found a not-documented cmake variable used in FindPoppler.cmake:
POPPLER_EXTRA_LIBRARIES.

I tried to initialize it in my cmake configuration file :
set (POPPLER_EXTRA_LIBRARIES
"E:/00_GIT/GisInternals/release-1930-x64/lib/libjpeg.lib
E:/00_GIT/GisInternals/release-1930-x64/lib/libpng16_static.lib
E:/00_GIT/GisInternals/release-1930-x64/lib/tiff.lib" CACHE STRING "" FORCE)

The compilation process fails due to errors in
1) <AdditionalUsingDirectories> : it contains directories and the extra
librairies :
<AdditionalUsingDirectories>E:/00_GIT/GisInternals/release-1930-x64/lib;E:/00_GIT/GisInternals/release-1930-x64/lib/libjpeg.lib
E:/00_GIT/GisInternals/release-1930-x64/lib/libpng16_static.lib
E:/00_GIT/GisInternals/release-1930-x64/lib;E:/00_GIT/PDFium/lib</AdditionalUsingDirectories>

2) <AdditionalDependencies> : the extra librairies are separated by a
space, not a semicolon
<AdditionalDependencies>..\..\Debug\gdald.lib;E:\00_GIT\GisInternals\release-1930-x64\lib\poppler.lib;E:\00_GIT\PDFium\lib\pdfium.lib;winmm.lib;E:\00_GIT\GisInternals\release-1930-x64\lib\libjpeg.lib
E:\00_GIT\GisInternals\release-1930-x64\lib\libpng16_static.lib
E:\00_GIT\GisInternals\release-1930-x64\lib\tiff.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib</AdditionalDependencies>

I guess, I did not initialize POPPLER_EXTRA_LIBRARIES:

   - is its type STRING ?
   - what separator should I use between library name ?

Thanks for your help
Philippe
The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240321/1b56e1e8/attachment.htm>


More information about the gdal-dev mailing list