[Qgis-user] building gdal for mrsid

Even Rouault even.rouault at spatialys.com
Sun Jan 21 07:30:04 PST 2024


No, this won't be a .deb, and using the past .deb for mrsid won't work 
since the switch to CMake

General instructions to build GDAL from source are at 
https://gdal.org/development/building_from_source.html

To install it in a location where it won't mess with with your packaged 
GDAL, do for example

cmake .. -DCMAKE_INSTALL_PREFIX=/opt/gdal-3.8.3 (others options here 
such as -DMRSID_ROOT=... -DECW_ROOT=... )

(or any other installation directory of your choice)

Even

Le 21/01/2024 à 16:08, Don Harter a écrit :
>
> OK. Thanks. Those scripts don't use .deb packages so nothing would be 
> registered with dpkg.  I have had problems before with unregistered 
> packages lying around.  I just fixed such an issue with GCC.  I don't 
> even see a package that is available for libecwj2. In what  directory 
> is the build script run in?  I already have gdal installed. Will it 
> overwrite the existing ubuntu locations for the gdal packages? If I 
> were to purge those packages then other packages that rely on them 
> would have unfulfilled dependencies. I see that script is for an 
> earlier version of ubuntu.  I am running : Ubuntu 22.04.3 LTS. And my 
> gcc (gcc (GCC) 12.3.1 20230626) is newer so I have  downloaded  the 
> other/newer mrsid file.
>
> So if I download the source for the .deb packages and replace the 
> scripts in them with those 2 that you located for me, will that work?
>
> On 1/21/24 8:51 AM, Even Rouault wrote:
>>
>> Hi,
>>
>> cf 
>> https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/Dockerfile.ci#L144 
>> and 
>> https://github.com/OSGeo/gdal/blob/master/.github/workflows/ubuntu_20.04/build.sh#L15 
>> for a build recipee to build GDAL >= 3.5 with MrSID support
>>
>> Even
>>
>> Le 21/01/2024 à 03:10, Don Harter via QGIS-User a écrit :
>>>
>>> I have been following this procedure to build gdal with mrsid 
>>> capabilities.  I had done this a while back previously but the 
>>> different dependencies between packages cause a mess.
>>>
>>> https://trac.osgeo.org/ubuntugis/wiki/TutorialMrSid
>>>
>>> I tried to run this command:
>>>
>>> sudo apt-get install libgdal-mrsid-src
>>>
>>> But that package is not available in the unbuntugis repository.
>>>
>>> _______________________________________________
>>> QGIS-User mailing list
>>> QGIS-User at lists.osgeo.org
>>> List info:https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-user
>> -- 
>> http://www.spatialys.com
>> My software is free, but my time generally not.

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20240121/9973981f/attachment.htm>


More information about the QGIS-User mailing list