<div dir="ltr"><div>For the record, I finally managed to build GDAL with MrSID on Centos8 (gcc 8.5). Basically t<span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">he MrSID SDK is overcautiously restricting itself to the gcc version that was current at the time it was released (gcc5), and</span><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px"> the build can be </span><span style="color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:14px">fixed by patching the lt_platform.h header manually, as detailed here </span><a href="https://github.com/OSGeo/gdal/issues/2797">https://github.com/OSGeo/gdal/issues/2797</a>.</div><div>Thanks,</div><div>Johannes</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 27 Apr 2022 at 15:19, Johannes Paul <<a href="mailto:johannespaul92@gmail.com">johannespaul92@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I'm struggling to compile GDAL on Centos8 with MrSID driver.</div><div>I got the MrSID SDK from online (<a href="https://www.extensis.com/support/developers" target="_blank">https://www.extensis.com/support/developers</a>), however for linux only gcc 4.8.2 and gcc 5.3.1 versions of the SDK are available.</div><div>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</div><div>```<br>In file included from /MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_types.h:28,                                                      <br>                 from mrsiddataset_headers_include.h:50,                                                         <br>                 from mrsiddataset.cpp:53:                                                                                                                                                                                      <br>/MrSID_DSDK-9.5.4.4709-rhel6.x86-64.gcc531/Raster_DSDK/include/lt_platform.h:102:5: error: #error PLATFORM ERROR: unknown compiler                                                                       <br>    #error PLATFORM ERROR: unknown compiler                                                                                                                             <br>In file included from mrsiddataset_headers_include.h:50,                                           <br>                 from mrsiddataset.cpp:53:                                                                                                                                                                                      <br>/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                                      <br>    #error NOT YET PORTED TO TARGET COMPILER                                                                                                                      <br>/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                                              <br>    #error NOT YET PORTED TO TARGET COMPILER<br></div><div>...</div><div>```</div><div>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).</div><div><br></div><div>Unfortunately old versions of GCC are not available on Centos8, and I did not manage to compile old GCC from source on Centos8.</div><div><br></div><div>Any help would be appreciated.</div><div>Thanks</div><div>Johannes </div></div>
</blockquote></div></div>