[gdal-dev] Problem building GDAL 3.8.3 with MrSID SDK on SLES 15 SP6

Fernando Quadro fsquadro at gmail.com
Thu Sep 25 07:55:21 PDT 2025


Hi all,

I am trying to build *GDAL 3.8.3* on *SUSE Linux Enterprise Server 15 SP6*
with support for the *MrSID DSDK 9.5.5.5244 (RHEL9 x86-64, gcc1131)*.

My steps so far:

   1.

   Installed the SDK under /opt/MrSID/current/Raster_DSDK.
   -

      Includes: /opt/MrSID/current/Raster_DSDK/include
      -

      Libs: /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (with libtbb.so
      included).
      2.

   Configured CMake with:

   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

   The configure step detects MrSID correctly:

   -- Found MRSID: /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so
(found version "9.5.5")
   -- Enabled driver: gdal_MRSID

   3.

   Built and installed GDAL (libgdal.so shows MrSID symbols when inspected
   with strings).
   Example:

   strings /usr/local/lib64/libgdal.so | grep -i mrsid
   GDALRegister_MrSID
   MrSID driver
   ...

   4.

   Verified dependencies:

   ldd /usr/local/lib64/libgdal.so | grep ltidsdk
   /opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so (0x00007f9829a00000)


*Problem:*
Even after build and install, gdalinfo --formats does *not list the MrSID
driver*.
Therefore, GeoServer (which loads GDAL via JNI) also does not detect MrSID.
------------------------------

*Question:*

   -

   Did I miss an additional CMake flag (e.g., to force building the driver
   as a plugin instead of static)?
   -

   Should the gdal_MrSID driver be compiled as a .so plugin under
   /usr/local/lib64/gdalplugins/, or linked directly into libgdal.so?
   -

   Any known issues when building the MrSID driver against GCC 7 (default
   on SLES 15 SP6) or should I rebuild with a newer GCC?

Thanks a lot for any hints,
Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250925/bbdfd7e1/attachment-0001.htm>


More information about the gdal-dev mailing list