[gdal-dev] Problems compiling the project
Even Rouault
even.rouault at spatialys.com
Thu Jul 18 03:16:44 PDT 2024
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*<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
> 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/20240718/7db5955a/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 10974 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 154 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 3946 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 3678 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 3646 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 4056 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 640 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240718/7db5955a/attachment-0011.png>
More information about the gdal-dev
mailing list