<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">When you install gdal[tools], the apps
      are installed to `<install_root>/tools/gdal`.</div>
    <div class="moz-cite-prefix">(The vcpkg focus is on providing libs
      build from source.)</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">To explore port features, you can look
      at the port's vcpkg.json (aka manifest), or start from</div>
    <div class="moz-cite-prefix"><a class="moz-txt-link-freetext" href="https://vcpkg.link/ports/gdal">https://vcpkg.link/ports/gdal</a> <br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards,<br>
      Kai<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Am 20.02.24 um 12:22 schrieb Michael
      Otto via gdal-dev:<br>
    </div>
    <blockquote type="cite"
cite="mid:OF1DE3314E.328DD35B-ONC1258AC9.003E3151-C1258AC9.003E71EB@data-experts.de"><span>Hi
        Robert,</span><br>
      <br>
      <span>because I'm not
        getting anywhere with the "standard" CMake solution, I've now
        used the vcpkg you mentioned and am using it in a Virtualbox VM
        with Linux
        Mint.</span><br>
      <br>
      <span>I got the installation
        instructions from here: </span><a
href="https://github.com/microsoft/vcpkg?tab=readme-ov-file#quick-start-unix"
        moz-do-not-send="true"><span>https://github.com/microsoft/vcpkg?tab=readme-ov-file#quick-start-unix</span></a><span>.
        I have installed the Linux developer tools (see instructions).</span><br>
      <br>
      <span>I have installed
        vcpkg under 'root@vmuser-VirtualBox:/home/vmuser/Git/vcpkg'.</span><br>
      <br>
      <span>When installing
        the libraries, it seems that a lot of dependencies are also
        loaded, compiled
        and installed in the now large set of directories.</span><br>
      <br>
      <span>The directory
        './vcpkg/packages/<packageName>_x64-linux' now contains
        the compiled
        static versions of the libraries. But where can I find the GDAL
        apps? These
        are not contained in this directory. </span><br>
      <br>
      <span>I am still new
        to the topic of "self-compiling".</span><br>
      <span>Do you have any
        tips on what else I need to do?</span><br>
      <br>
      <span>Michael<br>
      </span><br>
      <br>
      <br>
      <br>
      <span>Von:
               </span><span>"Robert
        Coup" <a class="moz-txt-link-rfc2396E" href="mailto:robert.coup@koordinates.com"><robert.coup@koordinates.com></a></span><br>
      <span>An:
               </span><span>"Michael
        Otto" <a class="moz-txt-link-rfc2396E" href="mailto:michael.otto@data-experts.de"><michael.otto@data-experts.de></a></span><br>
      <span>Kopie:
               </span><span><a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></span><br>
      <span>Datum:
               </span><span>12.02.2024
        15:43</span><br>
      <span>Betreff:
               </span><span>Re:
        [gdal-dev] Build static GDAL-Lib and static GDAL-Apps</span><br>
      <hr><br>
      <br>
      <br>
      <span>Hi Michael,</span><br>
      <br>
      <span>On Mon, 12 Feb 2024 at 12:02, Michael
        Otto via gdal-dev <</span><a
        href="mailto:gdal-dev@lists.osgeo.org" moz-do-not-send="true"><span><u>gdal-dev@lists.osgeo.org</u></span></a><span>>
        wrote:</span><br>
      <span><br>
        The goal is to cast GDAL and all its dependencies (PROJ / GEOS /
        all dependencies
        to system libraries / ...) into a static library and to create
        the GDAL
        apps as static executable programs. </span><br>
      <br>
      <span>Which platform are you working on?
        If you need a fully static compilation of everything <i>all</i>
        the way
        down including openssl + zlib + zstd + libtiff + all the other
        libraries,
        using vcpkg[1] might be a reasonable approach. By default it
        does static
        compilation on macOS & Linux, and it has a static
        compilation
        option on Windows (the default on Windows is dynamic). It
        doesn't support
        every compile option though, but it's customisable and if you're
        after
        a reasonably vanilla GDAL it should work ok.</span><br>
      <span> </span><br>
      <span><br>
        There should be no dynamic dependencies.</span><br>
      <br>
      <span>Note that GDAL + Proj (maybe others),
        have data files they rely on, so while you may be able to get a
        single
        executable, you'll still need to distribute these files. I can
        imagine
        ways around that, but they're getting fairly complex.</span><br>
      <span> </span><br>
      <span>Unfortunately,
        I have not had any success so far. The library is created
        statically but
        the apps are not yet.<br>
        Does anyone have experience with this topic or possibly a
        procedure that
        leads to success?</span><br>
      <br>
      <span>Can you share the process you've currently
        got to?</span><br>
      <br>
      <span>Rob :) </span><br>
      <br>
      <span>[1] </span><a href="https://github.com/microsoft/vcpkg"
        moz-do-not-send="true"><span><u>https://github.com/microsoft/vcpkg</u></span></a><br>
      <br>
      <br>
      <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>
    <p><br>
    </p>
  </body>
</html>