<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Not the answer you'll probably want to hear, but:<br>
</p>
<p>- Use an up-to-date compiler</p>
<p>- Use package distributions like vcpkg or conda-forge that
already brings all the dependencies "for free"<br>
</p>
<p>- It seems you mix builds of different compilers (VS vs mingw).
That's a bit asking for troubles ;-)<br>
</p>
<div class="moz-cite-prefix">Le 12/03/2024 à 17:48, Fengting Chen
via gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:PH0PR10MB706167D0079742C47DF64085932B2@PH0PR10MB7061.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}@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;}@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Aptos",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">Resend with
more information:
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">I am trying
to build GDAL 3.8.4 on windows under VS2015. The build
failed at linking stage that a bunch of external symbols not
found, specifically the symbols in libproj, libcurl. I
checked the dll library stub .lib for libproj and libcurl
using “dumpbin” and found the symbols in the library a
little different, for example the linker error shows “</span><span
style="font-family:"Aptos",sans-serif">__imp__curl_slist_append”
not found, the symbol output from the “dumpbin” is </span><span
style="font-family:"Aptos",sans-serif"> </span><span
style="font-family:"Aptos",sans-serif">“__imp_curl_slist_append”
.
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">Any idea
how to fix this?
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">From:
</span></b><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">gdal-dev
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev-bounces@lists.osgeo.org"><gdal-dev-bounces@lists.osgeo.org></a> on behalf of
Fengting Chen via gdal-dev
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org"><gdal-dev@lists.osgeo.org></a><br>
<b>Date: </b>Monday, March 11, 2024 at 4:50</span><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span
style="font-size:12.0pt;font-family:"Aptos",sans-serif;color:black">PM<br>
<b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org"><gdal-dev@lists.osgeo.org></a><br>
<b>Subject: </b>[External] : [gdal-dev] GDAL 3.8.4
build on windows failed at linking<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">GDAL
3.8.4 build on Windows from VS2015 x64 command prompt:
“cmake –build .” throws the following error (there are
more similar errors):
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">cpl_vsil_az.obj
: error LNK2001: unresolved external symbol
__imp__curl_slist_append
[E:\gdal-3.8.4\build\GDAL.vcxproj]</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">cmake
options has:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">set
(GDAL_USE_CURL ON CACHE BOOL ""
FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">set
(CURL_INCLUDE_DIR
"E:/SDK/curl-8.6.0_1-win64-mingw/include" CACHE PATH
"" FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">set
(CURL_LIBRARY_RELEASE
"E:/SDK/curl-8.6.0_1-win64-mingw/bin/libcurl-x64.lib"
CACHE FILEPATH "" FORCE)</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">libcurl-x64.lib
is the DLL stub. Using dumpbin on libcurl-x64.lib
shows that “__imp_curl_slist_append” is available. But
the linker error is “__imp__curl_slist_append” not
found. There is an extra “_” in it. </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">Any
idea why this error occurred?
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif">Thanks!</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Aptos",sans-serif"> </span><o:p></o:p></p>
</div>
</div>
</div>
</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>