<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.gmail-hljs-string
{mso-style-name:gmail-hljs-string;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:179666683;
mso-list-template-ids:-1901432012;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:Wingdings;}
@list l1
{mso-list-id:460927558;
mso-list-template-ids:-1135076136;}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;
mso-ansi-font-size:10.0pt;
font-family:"Courier New";
mso-bidi-font-family:"Times New Roman";}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>I build it as a plugin and I use<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>cmake -G "Ninja" \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> ${CMAKE_ARGS} \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DCMAKE_BUILD_TYPE=Release \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DCMAKE_PREFIX_PATH=$PREFIX \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DCMAKE_INSTALL_PREFIX=$PREFIX \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DCMAKE_INSTALL_LIBDIR=lib \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DBUILD_SHARED_LIBS=ON \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_ENABLE_PLUGINS=ON \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DBUILD_PYTHON_BINDINGS=OFF \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DOGR_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_USE_GEOTIFF_INTERNAL=OFF \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_HIDE_INTERNAL_SYMBOLS=OFF \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_ENABLE_DRIVER_MRSID_PLUGIN=ON \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_ENABLE_DRIVER_MRSID=ON \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DGDAL_ENABLE_DRIVER_JP2MRSID=ON \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DMRSID_LIBRARY=${PREFIX}/lib/libltidsdk.so \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> -DMRSID_INCLUDE_DIR=${PREFIX}/include \<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'> ${SRC_DIR}<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>cmake --build . -j ${CPU_COUNT} --config Release --target gdal_MrSID --verbose <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>And then add that plugin to my release version gdal from conda-forge. <o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>GDAL 3.8.3 is rather old though so you might want to try with a currently supported GDAL. I know changes had been made in the 3.10 timeframe for plugin builds.<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'>Mike<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><div><div><p class=MsoNormal>-- <o:p></o:p></p></div><div><p class=MsoNormal>Michael Smith<o:p></o:p></p><p class=MsoNormal>RSGIS Center – ERDC CRREL NH<o:p></o:p></p></div></div><p class=MsoNormal>US Army Corps<span style='font-family:"Calibri",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Calibri",sans-serif'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-family:"Calibri",sans-serif;color:black'>From: </span></b><span style='font-family:"Calibri",sans-serif;color:black'>gdal-dev <gdal-dev-bounces@lists.osgeo.org> on behalf of Fernando Quadro via gdal-dev <gdal-dev@lists.osgeo.org><br><b>Reply-To: </b>Fernando Quadro <fsquadro@gmail.com><br><b>Date: </b>Thursday, September 25, 2025 at 10:55 AM<br><b>To: </b><gdal-dev@lists.osgeo.org><br><b>Subject: </b>[gdal-dev] Problem building GDAL 3.8.3 with MrSID SDK on SLES 15 SP6<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p>Hi all,<o:p></o:p></p><p>I am trying to build <strong><span style='font-family:"Aptos",sans-serif'>GDAL 3.8.3</span></strong> on <strong><span style='font-family:"Aptos",sans-serif'>SUSE Linux Enterprise Server 15 SP6</span></strong> with support for the <strong><span style='font-family:"Aptos",sans-serif'>MrSID DSDK 9.5.5.5244 (RHEL9 x86-64, gcc1131)</span></strong>.<o:p></o:p></p><p>My steps so far:<o:p></o:p></p><ol start=1 type=1><li style='mso-list:l1 level1 lfo1'>Installed the SDK under <code><span style='font-size:10.0pt'>/opt/MrSID/current/Raster_DSDK</span></code>.<o:p></o:p></li></ol><ol start=1 type=1><ul type=circle><li style='mso-list:l1 level2 lfo1'>Includes: <code><span style='font-size:10.0pt'>/opt/MrSID/current/Raster_DSDK/include</span></code><o:p></o:p></li><li style='mso-list:l1 level2 lfo1'>Libs: <code><span style='font-size:10.0pt'>/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so</span></code> (with <code><span style='font-size:10.0pt'>libtbb.so</span></code> included).<o:p></o:p></li></ul></ol><ol start=2 type=1><li style='mso-list:l1 level1 lfo1'>Configured CMake with:<o:p></o:p></li></ol><div><div><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code>cmake .. \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DCMAKE_BUILD_TYPE=Release \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DCMAKE_INSTALL_PREFIX=/usr/local \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>6.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DGDAL_USE_MRSID=ON \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>7.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DGDAL_ENABLE_DRIVER_MRSID_PLUGIN=ON \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>8.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DMRSID_INCLUDE_DIR=/opt/MrSID/current/Raster_DSDK/include \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>9.<span style='font:7.0pt "Times New Roman"'> </span></span></code><![endif]><code> -DMRSID_LIBRARY=/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>10.</span></code><![endif]><code> -DGDAL_BUILD_OPTIONAL_DRIVERS=ON \<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>11.</span></code><![endif]><code> -DGDAL_ENABLE_PLUGINS=ON<o:p></o:p></code></pre></div></div><p style='margin-left:.5in'>The configure step detects MrSID correctly:<o:p></o:p></p><div><div><pre style='margin-left:.5in'><code>-- Found MRSID: /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (found version </code><span class=gmail-hljs-string>"9.5.5"</span><code>)<o:p></o:p></code></pre><pre style='margin-left:.5in'><code>-- Enabled driver: gdal_MRSID<o:p></o:p></code></pre></div></div><ol start=12 type=1><li style='mso-list:l1 level1 lfo1'>Built and installed GDAL (<code><span style='font-size:10.0pt'>libgdal.so</span></code> shows <code><span style='font-size:10.0pt'>MrSID</span></code> symbols when inspected with <code><span style='font-size:10.0pt'>strings</span></code>).<br>Example:<o:p></o:p></li></ol><div><div><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>13.</span></code><![endif]><code>strings /usr/local/lib64/libgdal.so | grep -i mrsid<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>14.</span></code><![endif]><code>GDALRegister_MrSID<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>15.</span></code><![endif]><code>MrSID driver<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>16.</span></code><![endif]><code>...<o:p></o:p></code></pre></div></div><ol start=17 type=1><li style='mso-list:l1 level1 lfo1'>Verified dependencies:<o:p></o:p></li></ol><div><div><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>18.</span></code><![endif]><code>ldd /usr/local/lib64/libgdal.so | grep ltidsdk<o:p></o:p></code></pre><pre style='margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo1'><![if !supportLists]><code><span style='mso-list:Ignore'>19.</span></code><![endif]><code>/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (0x00007f9829a00000)<o:p></o:p></code></pre></div></div><p><strong><span style='font-family:"Aptos",sans-serif'>Problem:</span></strong><br>Even after build and install, <code><span style='font-size:10.0pt'>gdalinfo --formats</span></code> does <strong><span style='font-family:"Aptos",sans-serif'>not list the MrSID driver</span></strong>.<br>Therefore, GeoServer (which loads GDAL via JNI) also does not detect MrSID.<o:p></o:p></p><div class=MsoNormal align=center style='text-align:center'><hr size=0 width="100%" align=center></div><p><strong><span style='font-family:"Aptos",sans-serif'>Question:</span></strong><o:p></o:p></p><ul type=disc><li style='mso-list:l0 level1 lfo2'>Did I miss an additional CMake flag (e.g., to force building the driver as a plugin instead of static)?<o:p></o:p></li><li style='mso-list:l0 level1 lfo2'>Should the <code><span style='font-size:10.0pt'>gdal_MrSID</span></code> driver be compiled as a <code><span style='font-size:10.0pt'>.so</span></code> plugin under <code><span style='font-size:10.0pt'>/usr/local/lib64/gdalplugins/</span></code>, or linked directly into <code><span style='font-size:10.0pt'>libgdal.so</span></code>?<o:p></o:p></li><li style='mso-list:l0 level1 lfo2'>Any known issues when building the MrSID driver against GCC 7 (default on SLES 15 SP6) or should I rebuild with a newer GCC?<o:p></o:p></li></ul><p>Thanks a lot for any hints,<br>Fernando Quadro<o:p></o:p></p></div><div><div><div><div><div><div><p class=MsoNormal><a href="http://www.fernandoquadro.com.br" target="_blank">http://www.fernandoquadro.com.br</a><br><a href="https://www.linkedin.com/in/fernandoquadro/" target="_blank"><span style='color:#1155CC'>https://www.linkedin.com/in/fernandoquadro/</span></a><o:p></o:p></p></div></div></div></div></div></div></div><p class=MsoNormal>_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev <o:p></o:p></p></div></body></html>