Skip to content

Instantly share code, notes, and snippets.

@oeon
Last active November 8, 2018 20:29
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oeon/6527004 to your computer and use it in GitHub Desktop.
Save oeon/6527004 to your computer and use it in GitHub Desktop.
build GDAL from source with MrSID support

get source code http://trac.osgeo.org/gdal/wiki/DownloadSource let's use GDAL 1.10.1 for this example.

here's the page on BuildingOnUnix http://trac.osgeo.org/gdal/wiki/BuildingOnUnix

here's the page for MrSID / GDAL http://trac.osgeo.org/gdal/wiki/MrSID

get the DSDK from LizardTech https://www.lizardtech.com/developer/ - version I used was MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44 I made a folder /home/oeon/local/src and put it there. I also extracted my GDAL src code there.

i made a folder /home/oeon/local/gdal1101

configure GDAL ./configure --prefix=/home/oeon/local/gdal1101 --with-mrsid=/home/oeon/local/src/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK make sure you see MrSID support: yes in the config list.

make -j8

make install

sudo ldconfig

export LD_LIBRARY_PATH=/home/oeon/local/src/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/lib:$LD_LIBRARY_PATH

cd into /home/oeon/local/gdal1101/bin test with ./gdalinfo --formats | grep MrSID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment