<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Abel,</p>
<p>the error message indicates that the build is trying to link a
release version of poppler.lib, whereas your build is a debug one.</p>
<p>For multi-config generators like Visual Studio builds, I'm not
sure how <span lang="EN-US">-DCMAKE_BUILD_TYPE=Debug is
effective. You perhaps need to do the following instead:<br>
</span></p>
<p>cmake --build build --config Debug</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 17/07/2024 à 17:59, Abel Pau via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:PAXPR07MB7775398BEB725AAE362C4071FAA32@PAXPR07MB7775.eurprd07.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}span.EstiloCorreo18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}span.EstiloCorreo19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m trying to compile
the project using the two lines that always have worked:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cmake -B build -S .
-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/vcpkg/scripts/buildsystems/vcpkg.cmake
-DCMAKE_BUILD_TYPE=Debug<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cmake --build build<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Before starting I
deleted the build folder.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The first line is ok and
creates the projects... but the second one gives me some
<span style="color:red">red</span> errors.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m using windows and
Visual Studio 2019<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Is there something I’m
missing?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Generating Code...<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> shapelib.vcxproj ->
D:\GitHub-repository\gdal\build\ogr\ogrsf_frmts\shape\shapelib.dir\Debug\shapelib.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Building Custom Rule
D:/GitHub-repository/gdal/CMakeLists.txt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Error.obj)
: error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">' in
cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Error.obj)
: error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MD_DynamicRelease' doesn't match<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">value
'MDd_DynamicDebug' in cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Object.obj)
: error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">2' in
cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Object.obj)
: error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MD_DynamicRelease' doesn't matc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">h
value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Catalog.obj)
: error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">'2' in
cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(Catalog.obj)
: error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MD_DynamicRelease' doesn't mat<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">ch
value 'MDd_DynamicDebug' in cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(XRef.obj)
: error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">in
cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(XRef.obj)
: error LNK2038: mismatch detected for 'RuntimeLibrary':
value 'MD_DynamicRelease' doesn't match<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">value
'MDd_DynamicDebug' in cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">poppler.lib(OptionalContent.obj)
: error LNK2038: mismatch detected for
'_ITERATOR_DEBUG_LEVEL': value '0' doesn't matc<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:red" lang="EN-US">h
value '2' in cpl_alibaba_oss.obj
[D:\GitHub-repository\gdal\build\GDAL.vcxproj]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" style="width:375.0pt" width="0"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="width:232.5pt;padding:0cm 0cm 0cm 0cm"
width="312">
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#008655;mso-fareast-language:CA"><a
href="" target="_blank" moz-do-not-send="true"><b><span
style="color:#008655;text-decoration:none">Abel
Pau Garcia</span></b><span
style="color:#008655">
</span></a><o:p></o:p></span></p>
</td>
<td rowspan="2"
style="width:142.5pt;padding:0cm 0cm 0cm 0cm"
width="188" valign="top">
<p class="MsoNormal" style="text-align:right"
align="right"><span lang="ES"><a
href="https://www.creaf.cat/"
moz-do-not-send="true"><span
style="color:blue;mso-fareast-language:CA;text-decoration:none"
lang="CA"><img
style="width:1.875in;height:.4479in"
id="Imagen_x0020_1"
src="cid:part1.pvlHEFhH.rn0Aqj3A@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/logo-creaf-small.jpg"
class="" width="180" height="43" border="0"></span></a></span><span
style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 3.75pt 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:CA"><a
href="" target="_blank" moz-do-not-send="true"><b><span
style="color:#BC5802;text-decoration:none">GIS
developer</span></b><b><span
style="color:#BC5802">
</span></b></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 0cm 1.5pt 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#445B4E;mso-fareast-language:CA"><a
href="mailto:a.pau@creaf.uab.cat"
moz-do-not-send="true"><b><span
style="color:#445B4E;text-decoration:none">a.pau@creaf.uab.cat</span></b><span
style="color:#445B4E">
</span></a><o:p></o:p></span></p>
</td>
<td rowspan="4"
style="width:78.75pt;padding:0cm 0cm 0cm 0cm"
width="188" valign="top">
<p class="MsoNormal" style="text-align:right"
align="right"><span style="mso-fareast-language:CA"><img
style="width:1.0937in;height:.5208in"
id="logo_opcional"
src="cid:part2.xHMs49to.zSOc4hgg@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/cap_0.png" class=""
width="105" height="50" border="0"></span><span
style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 0cm 1.5pt 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#445B4E;mso-fareast-language:CA"><a
href="https://teams.microsoft.com/l/chat/0/0?users=a.pau@creaf.uab.cat"
moz-do-not-send="true"><b><span
style="color:#445B4E;text-decoration:none">Let's
chat on Teams!</span></b><span
style="color:#445B4E"> </span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 0cm 1.5pt 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:3.75pt;margin-right:0cm;margin-bottom:3.75pt;margin-left:0cm">
<b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#445B4E;mso-fareast-language:CA">Tel.
+34 934814277<u>
</u></span></b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:red;mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:1.5pt 0cm 1.5pt 0cm"><br>
</td>
</tr>
<tr>
<td colspan="2" style="padding:1.5pt 0cm 1.5pt 0cm">
<p class="MsoNormal"><span lang="ES"><a
href="https://twitter.com/CREAF_ecologia"
target="_blank" moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA;text-decoration:none"
lang="CA"><img
style="width:.3125in;height:.3125in"
id="Imagen_x0020_3"
src="cid:part3.quv9GkqY.7jfC28ni@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/x_30.png" class=""
width="30" height="30" border="0"></span></a><a
href="https://www.linkedin.com/company/creaf/"
target="_blank" moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA;text-decoration:none"
lang="CA"><img
style="width:.3125in;height:.3125in"
id="Imagen_x0020_4"
src="cid:part4.8aZe2v0h.uy0P4U4u@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/linkedin_30.png" class=""
width="30" height="30" border="0"></span></a><a
href="https://www.youtube.com/c/creafecologia"
target="_blank" moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA;text-decoration:none"
lang="CA"><img
style="width:.3125in;height:.3125in"
id="Imagen_x0020_5"
src="cid:part5.57bu9Hxk.epJ0xpIh@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/youtube_30.png" class=""
width="30" height="30" border="0"></span></a><a
href="https://www.instagram.com/CREAF_ecologia/"
target="_blank" moz-do-not-send="true"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA;text-decoration:none"
lang="CA"><img
style="width:.3125in;height:.3125in"
id="Imagen_x0020_6"
src="cid:part6.ozTgAZ77.Rq5k4YnE@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/instagram_30.png"
class="" width="30" height="30" border="0"></span></a></span><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#BC5802;mso-fareast-language:CA"><br>
<a href="http://www.creaf.cat" target="_blank"
moz-do-not-send="true"><b><span
style="color:#BC5802;text-decoration:none">www.creaf.cat</span></b><span
style="color:#BC5802">
</span></a><b>| </b><a
href="http://blog.creaf.cat" target="_blank"
moz-do-not-send="true"><b><span
style="color:#BC5802;text-decoration:none">http://blog.creaf.cat</span></b><span
style="color:#BC5802">
</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1B241F;mso-fareast-language:CA"><a
href="https://www.openstreetmap.org/way/123379060"
target="_blank" moz-do-not-send="true"><span
style="color:#1B241F">CREAF. Campus UAB. Edifici
C. 08193 Bellaterra (Barcelona) </span></a><br>
<br>
<a
href="https://www.creaf.cat/ca/politica-de-privacitat" target="_blank"
moz-do-not-send="true"><b><span
style="color:#BC5802;text-decoration:none">Política
de privacitat</span></b><span
style="color:#BC5802">
</span></a><o:p></o:p></span></p>
</td>
<td rowspan="2"
style="width:52.5pt;padding:0cm 0cm 0cm 0cm" width="188"
valign="bottom">
<p class="MsoNormal" style="text-align:right"
align="right"><span style="mso-fareast-language:CA"><img
style="width:.7291in;height:.5208in"
id="Imagen_x0020_7"
src="cid:part7.ilx6rDUM.KT3lFPG0@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/corner_right_0.png"
class="" width="70" height="50" border="0"></span><span
style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:CA"><a
href="" target="_blank" moz-do-not-send="true"><span
style="color:#999999">Abans d'imprimir aquest
missatge electrònic penseu en el medi ambient.
</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>