[gdal-dev] Problem building GDAL 3.8.3 with MrSID SDK on SLES 15 SP6
Fernando Quadro
fsquadro at gmail.com
Thu Sep 25 08:29:35 PDT 2025
Michael,
Thanks for your help. I'll update to version 3.10 and follow your
instructions to see if it works.
Thank you very much in advance.
Fernando Quadro
http://www.fernandoquadro.com.br
https://www.linkedin.com/in/fernandoquadro/
Em qui., 25 de set. de 2025 às 12:00, Michael Smith <
michael.smith.erdc at gmail.com> escreveu:
> I build it as a plugin and I use
>
>
>
>
>
> cmake -G "Ninja" \
>
> ${CMAKE_ARGS} \
>
> -DCMAKE_BUILD_TYPE=Release \
>
> -DCMAKE_PREFIX_PATH=$PREFIX \
>
> -DCMAKE_INSTALL_PREFIX=$PREFIX \
>
> -DCMAKE_INSTALL_LIBDIR=lib \
>
> -DBUILD_SHARED_LIBS=ON \
>
> -DGDAL_ENABLE_PLUGINS=ON \
>
> -DBUILD_PYTHON_BINDINGS=OFF \
>
> -DGDAL_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \
>
> -DOGR_BUILD_OPTIONAL_DRIVERS:BOOL=OFF \
>
> -DGDAL_USE_GEOTIFF_INTERNAL=OFF \
>
> -DGDAL_HIDE_INTERNAL_SYMBOLS=OFF \
>
> -DGDAL_ENABLE_DRIVER_MRSID_PLUGIN=ON \
>
> -DGDAL_ENABLE_DRIVER_MRSID=ON \
>
> -DGDAL_ENABLE_DRIVER_JP2MRSID=ON \
>
> -DMRSID_LIBRARY=${PREFIX}/lib/libltidsdk.so \
>
> -DMRSID_INCLUDE_DIR=${PREFIX}/include \
>
> ${SRC_DIR}
>
>
>
> cmake --build . -j ${CPU_COUNT} --config Release --target gdal_MrSID
> --verbose
>
>
>
> And then add that plugin to my release version gdal from conda-forge.
>
>
>
> 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.
>
>
>
> Mike
>
>
>
>
>
> --
>
> Michael Smith
>
> RSGIS Center – ERDC CRREL NH
>
> US Army Corps
>
>
>
> *From: *gdal-dev <gdal-dev-bounces at lists.osgeo.org> on behalf of Fernando
> Quadro via gdal-dev <gdal-dev at lists.osgeo.org>
> *Reply-To: *Fernando Quadro <fsquadro at gmail.com>
> *Date: *Thursday, September 25, 2025 at 10:55 AM
> *To: *<gdal-dev at lists.osgeo.org>
> *Subject: *[gdal-dev] Problem building GDAL 3.8.3 with MrSID SDK on SLES
> 15 SP6
>
>
>
> 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:
>
> 3. cmake .. \
>
> 4. -DCMAKE_BUILD_TYPE=Release \
>
> 5. -DCMAKE_INSTALL_PREFIX=/usr/local \
>
> 6. -DGDAL_USE_MRSID=ON \
>
> 7. -DGDAL_ENABLE_DRIVER_MRSID_PLUGIN=ON \
>
> 8. -DMRSID_INCLUDE_DIR=/opt/MrSID/current/Raster_DSDK/include \
>
> 9. -DMRSID_LIBRARY=/opt/MrSID/current/Raster_DSDK/lib/libltidsdk.so \
>
> 10. -DGDAL_BUILD_OPTIONAL_DRIVERS=ON \
>
> 11. -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
>
>
> 12. Built and installed GDAL (libgdal.so shows MrSID symbols when
> inspected with strings).
> Example:
>
> 13.strings /usr/local/lib64/libgdal.so | grep -i mrsid
>
> 14.GDALRegister_MrSID
>
> 15.MrSID driver
>
> 16....
>
>
> 17. Verified dependencies:
>
> 18.ldd /usr/local/lib64/libgdal.so | grep ltidsdk
>
> 19./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/
>
> _______________________________________________ gdal-dev mailing list
> gdal-dev at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250925/31dec082/attachment-0001.htm>
More information about the gdal-dev
mailing list