<div dir="ltr"><div><p>Hi all,</p>
<p>I am trying to build <strong>GDAL 3.8.3</strong> on <strong>SUSE Linux Enterprise Server 15 SP6</strong> with support for the <strong>MrSID DSDK 9.5.5.5244 (RHEL9 x86-64, gcc1131)</strong>.</p>
<p>My steps so far:</p>
<ol>
<li>
<p>Installed the SDK under <code>/opt/MrSID/current/Raster_DSDK</code>.</p>
<ul>
<li>
<p>Includes: <code>/opt/MrSID/current/Raster_DSDK/include</code></p>
</li>
<li>
<p>Libs: <code>/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so</code> (with <code>libtbb.so</code> included).</p>
</li>
</ul>
</li>
<li>
<p>Configured CMake with:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre! gmail-language-bash">cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DGDAL_USE_MRSID=ON \
-DGDAL_ENABLE_DRIVER_MRSID_PLUGIN=ON \
-DMRSID_INCLUDE_DIR=/opt/MrSID/current/Raster_DSDK/include \
-DMRSID_LIBRARY=/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so \
-DGDAL_BUILD_OPTIONAL_DRIVERS=ON \
-DGDAL_ENABLE_PLUGINS=ON
</code></div></div></pre>
<p>The configure step detects MrSID correctly:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">-- Found MRSID: /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (found version <span class="gmail-hljs-string">"9.5.5"</span>)
-- Enabled driver: gdal_MRSID
</code></div></div></pre>
</li>
<li>
<p>Built and installed GDAL (<code>libgdal.so</code> shows <code>MrSID</code> symbols when inspected with <code>strings</code>).<br>
Example:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">strings /usr/local/lib64/libgdal.so | grep -i mrsid
GDALRegister_MrSID
MrSID driver
...
</code></div></div></pre>
</li>
<li>
<p>Verified dependencies:</p>
<pre class="gmail-overflow-visible!"><div class="gmail-contain-inline-size gmail-rounded-2xl gmail-relative gmail-bg-token-sidebar-surface-primary"><div class="gmail-sticky gmail-top-9"><div class="gmail-absolute end-0 gmail-bottom-0 gmail-flex gmail-h-9 gmail-items-center gmail-pe-2"><div class="gmail-bg-token-bg-elevated-secondary gmail-text-token-text-secondary gmail-flex gmail-items-center gmail-gap-4 gmail-rounded-sm gmail-px-2 gmail-font-sans gmail-text-xs"></div></div></div><div class="gmail-overflow-y-auto gmail-p-4" dir="ltr"><code class="gmail-whitespace-pre!">ldd /usr/local/lib64/libgdal.so | grep ltidsdk
/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (0x00007f9829a00000)
</code></div></div></pre>
</li>
</ol>
<p><strong>Problem:</strong><br>
Even after build and install, <code>gdalinfo --formats</code> does <strong>not list the MrSID driver</strong>.<br>
Therefore, GeoServer (which loads GDAL via JNI) also does not detect MrSID.</p>
<hr>
<p><strong>Question:</strong></p>
<ul>
<li>
<p>Did I miss an additional CMake flag (e.g., to force building the driver as a plugin instead of static)?</p>
</li>
<li>
<p>Should the <code>gdal_MrSID</code> driver be compiled as a <code>.so</code> plugin under <code>/usr/local/lib64/gdalplugins/</code>, or linked directly into <code>libgdal.so</code>?</p>
</li>
<li>
<p>Any known issues when building the MrSID driver against GCC 7 (default on SLES 15 SP6) or should I rebuild with a newer GCC?</p>
</li>
</ul>
<p>Thanks a lot for any hints,<br>Fernando Quadro</p></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><a href="http://www.fernandoquadro.com.br" target="_blank">http://www.fernandoquadro.com.br</a><br><a href="https://www.linkedin.com/in/fernandoquadro/" style="color:rgb(17,85,204);font-size:small" target="_blank">https://www.linkedin.com/in/fernandoquadro/</a><br></div></div></div></div></div></div></div>