Hi Even, I tried at some point using the --config Debug option. It makes no difference.
I don’t understand the difference between now and some months ago. I’ll keep looking for a solution. Thanks! De: Even Rouault <even.roua...@spatialys.com> Enviado el: dijous, 18 de juliol de 2024 12:17 Para: Abel Pau <a....@creaf.cat>; gdal-dev@lists.osgeo.org Asunto: Re: [gdal-dev] Problems compiling the project Hi Abel, the error message indicates that the build is trying to link a release version of poppler.lib, whereas your build is a debug one. For multi-config generators like Visual Studio builds, I'm not sure how -DCMAKE_BUILD_TYPE=Debug is effective. You perhaps need to do the following instead: cmake --build build --config Debug Even Le 17/07/2024 à 17:59, Abel Pau via gdal-dev a écrit : Hi, I’m trying to compile the project using the two lines that always have worked: cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Debug cmake --build build Before starting I deleted the build folder. The first line is ok and creates the projects... but the second one gives me some red errors. I’m using windows and Visual Studio 2019 Is there something I’m missing? Thanks! Generating Code... shapelib.vcxproj -> D:\GitHub-repository\gdal\build\ogr\ogrsf_frmts\shape\shapelib.dir\Debug\shapelib.lib Building Custom Rule D:/GitHub-repository/gdal/CMakeLists.txt poppler.lib(Error.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2 ' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(Error.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(Object.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value ' 2' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(Object.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't matc h value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(Catalog.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(Catalog.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't mat ch value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(XRef.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(XRef.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] poppler.lib(OptionalContent.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't matc h value '2' in cpl_alibaba_oss.obj [D:\GitHub-repository\gdal\build\GDAL.vcxproj] Abel Pau Garcia [https://www.creaf.cat/sites/default/files/logo-creaf-small.jpg]<https://www.creaf.cat/> GIS developer a....@creaf.uab.cat <mailto:a....@creaf.uab.cat> [https://www.creaf.cat/sites/default/files/cap_0.png] Let's chat on Teams! <https://teams.microsoft.com/l/chat/0/0?users=a....@creaf.uab.cat> Tel. +34 934814277 [https://www.creaf.cat/sites/default/files/x_30.png]<https://twitter.com/CREAF_ecologia>[https://www.creaf.cat/sites/default/files/linkedin_30.png]<https://www.linkedin.com/company/creaf/>[https://www.creaf.cat/sites/default/files/youtube_30.png]<https://www.youtube.com/c/creafecologia>[https://www.creaf.cat/sites/default/files/instagram_30.png]<https://www.instagram.com/CREAF_ecologia/> www.creaf.cat <http://www.creaf.cat> | http://blog.creaf.cat CREAF. Campus UAB. Edifici C. 08193 Bellaterra (Barcelona) <https://www.openstreetmap.org/way/123379060> Política de privacitat <https://www.creaf.cat/ca/politica-de-privacitat> [https://www.creaf.cat/sites/default/files/corner_right_0.png] Abans d'imprimir aquest missatge electrònic penseu en el medi ambient. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org> https://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