[gdal-dev] Problems compiling the project
Abel Pau
a.pau at creaf.cat
Tue Jul 23 00:57:55 PDT 2024
I found the problem.
As always I has an environment variable pointing to a folder with a release popler.lib (this environment variable has nothing to do with the GDAL driver I was trying to compile).
So, all right, thanks!
De: gdal-dev <gdal-dev-bounces at lists.osgeo.org> En nombre de Abel Pau via gdal-dev
Enviado el: divendres, 19 de juliol de 2024 16:30
Para: Even Rouault <even.rouault at spatialys.com>; gdal-dev at lists.osgeo.org
Asunto: Re: [gdal-dev] Problems compiling the project
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.rouault at spatialys.com<mailto:even.rouault at spatialys.com>>
Enviado el: dijous, 18 de juliol de 2024 12:17
Para: Abel Pau <a.pau at creaf.cat<mailto:a.pau at creaf.cat>>; gdal-dev at lists.osgeo.org<mailto:gdal-dev at 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.pau at creaf.uab.cat <mailto:a.pau at 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.pau@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 at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 10974 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 154 bytes
Desc: image002.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 3946 bytes
Desc: image003.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 3678 bytes
Desc: image004.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 3646 bytes
Desc: image005.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 4056 bytes
Desc: image006.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 640 bytes
Desc: image007.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240723/a41e5af0/attachment-0011.png>
More information about the gdal-dev
mailing list