Created
January 9, 2019 15:40
-
-
Save emxsys/da6fbb84225d71f3c88aef70768cc1b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=============================================================================== | |
Building libecwj 3.3 library on Unix to /usr/local/libecwj2-3.3 | |
=============================================================================== | |
See: https://trac.osgeo.org/gdal/wiki/ECW | |
Download locations: | |
- ftp://ftp.ii.net/pub/gentoo/distfiles/libecwj2-3.3-2006-09-06.zip | |
$ unzip libecwj2-3.3-2006-09-06.zip | |
Download cumulative patch from GDAL wiki: https://trac.osgeo.org/gdal/wiki/ECW | |
(Look for the link to download the attachment zip at the bottom of the page) | |
Apply the patch (set -p[n] as needed) | |
$ patch -b -p1 < path/to/libecwj2-3.3.patch | |
The include folder must preexist in the target folder (e.g. /usr/local/libecwj2-3.3) | |
$ sudo mkdir -p /usr/local/libecwj2-3.3/include | |
Build the library and install in specified folder (e.g. /usr/local/libecwj2-3.3) | |
$ cd /path/to/libecwj2-3.3 | |
$ ./configure --prefix=/usr/local/libecwj2-3.3 | |
$ make | |
$ sudo make install | |
=============================================================================== | |
GDAL 2.2.2 build instructions with ECW on Ubuntu | |
=============================================================================== | |
Downloads: http://download.osgeo.org/gdal | |
$ wget http://download.osgeo.org/gdal/2.2.2/gdal-2.2.2.tar.gz | |
$ tar -xzvf gdal-2.2.2.tar.gz | |
$ sudo apt-get install libgdal-dev | |
$ sudo apt-get install libgdal1-dev | |
#$ sudo apt-get install libsqlite3-dev | |
#$ sudo apt-get install libopenjpeg-dev openjpeg-tools | |
Assuming you've installed libecwj library under /usr/local/libecwj2-3.3, the | |
procedure of adding ECW support to GDAL is simple and you only need to provide | |
GDAL configure with path to the ECW SDK installation prefix: | |
$ cd /path/to/gdal | |
$ ./configure --with-ecw=/usr/local/libecwj2-3.3 -- | |
$ make | |
$ sudo make install | |
------------------------------------------------------------------------------- | |
Notes/snippets | |
------------------------------------------------------------------------------- | |
Uninstall old GDAL | |
$sudo apt-get remove gdal-bin | |
Building libecwj 3.3 library on Unix default instructions | |
$ cd /path/to/libecwj2-3.3 | |
$ ./configure | |
$ make | |
$ sudo make install | |
GDAL 2.2.2 build instructions with ECW default instructions | |
$ cd /path/to/gdal | |
$ ./configure --with-ecw=/usr/local | |
$ make | |
$ sudo make install | |
sudo apt-get build-dep gdal | |
cd /tmp | |
wget http://download.osgeo.org/gdal/2.2.2/gdal-2.0.0.tar.gz | |
tar -xzvf gdal-2.2.2.tar.gz | |
cd gdal-2.2.2 | |
./configure | |
make | |
ftp://ftp.ii.net/pub/gentoo/distfiles/libecwj2-3.3-2006-09-06.zip | |
ftp://iso.linux.hr/gentoo/distfiles/distfiles/libecwj2-3.3-2006-09-06.zip | |
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable # unstable packages | |
sudo apt-get install build-essential gdal-bin gdal-config libgdal-ecw-src | |
wget http://meuk.technokrat.nl/libecwj2-3.3-2006-09-06.zip | |
unzip ~/Downloads/libecwj2-3.3.2006-09-06.zip | |
cd ~/Downloadslibecwj2-3.3.2006-09-06 | |
./configure | |
make # wait | |
make install # or sudo make install | |
sudo gdal-ecw-build /usr/local | |
sudo ldconfig | |
gdalinfo --formats | grep -i ecw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment