<div dir="ltr"><div dir="ltr">Hi Michael,<div><br></div><div>On Mon, 12 Feb 2024 at 12:02, Michael Otto via gdal-dev <<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><span style="font-size:10pt;font-family:sans-serif">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></blockquote><div><br></div><div>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.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><span style="font-size:10pt;font-family:sans-serif">There should be
no dynamic dependencies.</span></blockquote><div><div><br></div><div>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.</div></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><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.</span><br><span style="font-size:10pt;font-family:sans-serif">Does anyone have
experience with this topic or possibly a procedure that leads to success?</span></blockquote><div><br></div><div>Can you share the process you've currently got to?</div><div><br></div><div>Rob :) </div><div><br></div><div>[1] <a href="https://github.com/microsoft/vcpkg">https://github.com/microsoft/vcpkg</a></div><div><br></div></div></div>