<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Maybe another library that GDAL is depending on is linked against
      the system sqlite3 and not your custom build ? That could be PROJ
      typically<br>
    </p>
    <div class="moz-cite-prefix">Le 14/05/2025 à 22:58, Fengting Chen
      via gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:PH0PR10MB70619ED0A7A9E69272C6C9739391A@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: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:12.0pt;
        font-family:"Aptos",sans-serif;
        mso-ligatures:standardcontextual;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Aptos",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;}div.WordSection1
        {page:WordSection1;}</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">Hi, I am
            trying to build GDAL 3.10.3 with sqlite 3.49.2. The build
            was successful on linux. But there are two entries of
            reference to sqlite3, and one of it has the absolution path.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">> ldd
            libgdal.so.36 | grep sqlite<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">ldd:
            warning: you do not have execution permission for
            `./libgdal.so.36'<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">        <span
              style="color:red">
              /scratch/gdal_dir/SDK/sqlite/3.49.2/dist/lib/libsqlite3.so
              (0x00007f7e08168000</span>)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">       
            libsqlite3.so => /
            scratch/gdal_dir/SDK/sqlite/3.49.2/dist/lib/libsqlite3.so
            (0x00007f7dfb00e000)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><b><span style="font-size:11.0pt">Why is
              above listing having a full path of libsqlite3.so built in
              the libgdal.so.36?
              <o:p></o:p></span></b></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">The
            configuration for the cmake for GDAL is:
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">set
            (SQLite3_INCLUDE_DIR          "$(SQLITE3_DIST_DIR)/        
            include" CACHE PATH "" FORCE)
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">set
            (SQLite3_LIBRARY              "$(SQLITE3_DIST_DIR)/lib/    
            $(LIBSQLITE3)" CACHE PATH "" FORCE)
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">At the
            sqlite lib directory, it has:
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">libsqlite3.a   
            libsqlite3.so.0@       pkgconfig/<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">libsqlite3.so@ 
            libsqlite3.so.3.49.2*<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Is this
            sqlite3 build issue or GDAL build issue?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Thanks. <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><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>