[gdal-dev] GDAL compilation on Centos8 with MrSID

Johannes Paul johannespaul92 at gmail.com
Wed Apr 27 06:19:42 PDT 2022


Hello,
I'm struggling to compile GDAL on Centos8 with MrSID driver.
I got the MrSID SDK from online
(https://www.extensis.com/support/developers), however for
linux only gcc 4.8.2 and gcc 5.3.1 versions of the SDK are available.
I can manage to compile GDAL on Centos7 (gcc 4.8.5) with MrSID SDK (gcc
5.3.1), however when trying to achieve compilation on Centos8 (gcc 8.5.0),
I get the following errors at make stage
```
In file included from
/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_types.h:28,

                 from mrsiddataset_headers_include.h:50,

                 from mrsiddataset.cpp:53:


/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_platform.h:102:5:
error: #error PLATFORM ERROR: unknown compiler

    #error PLATFORM ERROR: unknown compiler


In file included from mrsiddataset_headers_include.h:50,

                 from mrsiddataset.cpp:53:


/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_types.h:72:5:
error: #error NOT YET PORTED TO TARGET COMPILER

    #error NOT YET PORTED TO TARGET COMPILER


/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_types.h:131:5:
error: #error NOT YET PORTED TO TARGET COMPILER

    #error NOT YET PORTED TO TARGET COMPILER
...
```
I suspect this is related to the fact that MrSID SDK is compiled with an
old version of GCC (5.3) whereas GDAL is being compiled with a new one
(8.5).

Unfortunately old versions of GCC are not available on Centos8, and I did
not manage to compile old GCC from source on Centos8.

Any help would be appreciated.
Thanks
Johannes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220427/a6020c25/attachment.html>


More information about the gdal-dev mailing list