<span style=" font-size:10pt;font-family:sans-serif">Hi Robert,</span><br><br><span style=" font-size:10pt;font-family:sans-serif">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 style=" font-size:10pt;font-family:sans-serif">I got the installation
instructions from here: </span><a href="https://github.com/microsoft/vcpkg?tab=readme-ov-file#quick-start-unix"><span style=" font-size:10pt;color:blue;font-family:sans-serif">https://github.com/microsoft/vcpkg?tab=readme-ov-file#quick-start-unix</span></a><span style=" font-size:10pt;font-family:sans-serif">.
I have installed the Linux developer tools (see instructions).</span><br><br><span style=" font-size:10pt;font-family:sans-serif">I have installed
vcpkg under 'root@vmuser-VirtualBox:/home/vmuser/Git/vcpkg'.</span><br><br><span style=" font-size:10pt;font-family:sans-serif">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 style=" font-size:10pt;font-family:sans-serif">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 style=" font-size:10pt;font-family:sans-serif">I am still new
to the topic of "self-compiling".</span><br><span style=" font-size:10pt;font-family:sans-serif">Do you have any
tips on what else I need to do?</span><br><br><span style=" font-size:10pt;font-family:sans-serif">Michael<br></span><br><br><br><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Von:
</span><span style=" font-size:9pt;font-family:sans-serif">"Robert
Coup" <robert.coup@koordinates.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">An:
</span><span style=" font-size:9pt;font-family:sans-serif">"Michael
Otto" <michael.otto@data-experts.de></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Kopie:
</span><span style=" font-size:9pt;font-family:sans-serif">gdal-dev@lists.osgeo.org</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Datum:
</span><span style=" font-size:9pt;font-family:sans-serif">12.02.2024
15:43</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Betreff:
</span><span style=" font-size:9pt;font-family:sans-serif">Re:
[gdal-dev] Build static GDAL-Lib and static GDAL-Apps</span><br><hr noshade><br><br><br><span style=" font-size:12pt">Hi Michael,</span><br><br><span style=" font-size:12pt">On Mon, 12 Feb 2024 at 12:02, Michael
Otto via gdal-dev <</span><a href="mailto:gdal-dev@lists.osgeo.org"><span style=" font-size:12pt;color:blue"><u>gdal-dev@lists.osgeo.org</u></span></a><span style=" font-size:12pt">>
wrote:</span><br><span style=" font-size:10pt;font-family:sans-serif"><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 style=" font-size:12pt">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 style=" font-size:12pt"> </span><br><span style=" font-size:10pt;font-family:sans-serif"><br>There should be no dynamic dependencies.</span><br><br><span style=" font-size:12pt">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 style=" font-size:12pt"> </span><br><span style=" font-size:10pt;font-family:sans-serif">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 style=" font-size:12pt">Can you share the process you've currently
got to?</span><br><br><span style=" font-size:12pt">Rob :) </span><br><br><span style=" font-size:12pt">[1] </span><a href=https://github.com/microsoft/vcpkg><span style=" font-size:12pt;color:blue"><u>https://github.com/microsoft/vcpkg</u></span></a><br><br><br><font face="sans-serif"></font>