<div dir="ltr">Hi,<div><br></div><div>While compiling GDAL V3.8.4 under Windows (Visual Studio 17 2022), I would like to add the PDF plugin.</div><div>I downloaded all dependencies from <a href="https://www.gisinternals.com">GisInternals</a>.</div><div>The PDF plugin compilation, based on Poppler, fails due to missing dependencies for poppler.lib.</div><div>I found a not-documented cmake variable used in FindPoppler.cmake: POPPLER_EXTRA_LIBRARIES.</div><div><br></div><div>I tried to initialize it in my cmake configuration file :</div><div>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)<br></div><div><br></div><div>The compilation process fails due to errors in </div><div>1) <AdditionalUsingDirectories> : it contains directories and the extra librairies : </div><div><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></div><div><br></div><div>2) <AdditionalDependencies> : the extra librairies are separated by a space, not a semicolon</div><div><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><br></div><div><br></div><div>I guess, I did not initialize POPPLER_EXTRA_LIBRARIES:</div><div><ul><li>is its type STRING ?</li><li>what separator should I use between library name ?</li></ul></div><div>Thanks for your help</div><div>Philippe</div></div>
<font style="font-size: 9px;">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.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>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.<br>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.</font>