[gdal-dev] GDAL compilation on Centos8 with MrSID
Johannes Paul
johannespaul92 at gmail.com
Fri Apr 29 01:35:46 PDT 2022
For the record, I finally managed to build GDAL with MrSID on Centos8 (gcc
8.5). Basically the MrSID SDK is overcautiously restricting itself to the
gcc version that was current at the time it was released (gcc5), and the
build can be fixed by patching the lt_platform.h header manually, as
detailed here https://github.com/OSGeo/gdal/issues/2797.
Thanks,
Johannes
On Wed, 27 Apr 2022 at 15:19, Johannes Paul <johannespaul92 at gmail.com>
wrote:
> 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/20220429/ba62a5c2/attachment.html>
More information about the gdal-dev
mailing list