<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 02/03/2024 à 19:36, Fengting Chen a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:SN7PR10MB7046A3E43BE2D91B3BB49736935D2@SN7PR10MB7046.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:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}@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:Consolas;
        panose-1:2 11 6 9 2 2 4 3 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;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}span.EmailStyle21
        {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;}ol
        {margin-bottom:0in;}ul
        {margin-bottom:0in;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span
            style="font-family:"Aptos",sans-serif">That is
            what I guessed. But the documentation says:
            <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">CURL_LIBRARY_RELEASE<a
href="https://gdal.org/development/building_from_source.html#cmdoption-arg-CURL_LIBRARY_RELEASE"
            title="Permalink to this definition" moz-do-not-send="true"><span
              style="font-family:Symbol">Á</span></a><o:p></o:p></p>
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in">
          Path to a shared or static library file, such as <span
            style="font-size:10.0pt;font-family:"Courier New"">
            libcurl.dll</span>, <span
            style="font-size:10.0pt;font-family:"Courier New"">libcurl.so</span>,
          <span
            style="font-size:10.0pt;font-family:"Courier New"">libcurl.lib</span>,
          or other name.</p>
      </div>
    </blockquote>
    <p>Ah that was misleading indeed. Correction queued in
      <a class="moz-txt-link-freetext" href="https://github.com/OSGeo/gdal/pull/9371">https://github.com/OSGeo/gdal/pull/9371</a><br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:SN7PR10MB7046A3E43BE2D91B3BB49736935D2@SN7PR10MB7046.namprd10.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:.5in"><o:p></o:p></p>
        <p class="MsoNormal"><span
            style="font-family:"Aptos",sans-serif">If I use
            .lib here, will GDAL link with the dynamic library by
            default <br>
          </span></p>
      </div>
    </blockquote>
    <p>You need to point to the appropriate .lib: a static .lib if you
      want static linking, or an import .lib for dynamic linking. Cf
<a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/8019464/a-static-library-vs-an-import-library-on-the-windows-platform">https://stackoverflow.com/questions/8019464/a-static-library-vs-an-import-library-on-the-windows-platform</a>
      for example</p>
    <p><span style="font-family:"Aptos",sans-serif">| or I
        need to set CURL_USE_STATIC_LIBS=OFF explicitly? <br>
      </span></p>
    <p><span style="font-family:"Aptos",sans-serif">No, this
        setting is only effective when set to ON (it adds a
        -DCURL_STATICLIB define when including curl, and links to a few
        system Windows .lib).  You need to point CURL_LIBRARY_RELEASE to
        the appropriate kind of .lib given the type of linking you wish.
        The exact naming will depend on how curl has been built.<br>
      </span></p>
    <br>
    <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>