Installing GDAL with ECW Support

Most (all?) Of the information on the Internet is outdated as ECW (Hexagon Geospatial / Intergraph) recently released new versions with violations (5.0, 5.1 and 5.2).

Most of the instructions lead to errors like:

checking libNCSEcw.so or libecwj2 ... configure: error: not found in / usr / local / lib or / usr / local / bin

+3


source to share


3 answers


This works for GDAL 1.11.2, but it should fall back to 1.10.0.

Download the latest ECW library from here (currently 5.2.1): http://download.intergraph.com/download-portal

$ unzip erdas-ecwjp2sdk-v5.2.1-linux.zip
$ chmod +x ERDAS_ECWJP2_SDK-5.2.1.bin
$ ./ERDAS_ECWJP2_SDK-5.2.1.bin

      

Select "Read Only" and accept the license. Highlighted directory named hexagon

. Copy it to /usr/local

.

$ sudo cp -r hexagon/ERDAS-ECW_JPEG_2000_SDK-5.2.1/Desktop_Read-Only /usr/local/hexagon

      



Link the library .so

for the correct architecture:

$ sudo ln -s /usr/local/hexagon/lib/(x64|x86)/release/libNCSEcw.so /usr/local/lib/libNCSEcw.so

      

Then configure GDAL with this command:

$ ./configure --with-ecw=/usr/local/hexagon

      

+4


source


Before I could see ECW support in gdalinfo --formats | grep -i ecw

I also had to run sudo ldconfig

.
This was on Ubuntu 14.04 Linux.



0


source


I am reviving this thread because I am facing a similar problem. The versions have changed since then, I am using Ubuntu 16.04 LTS ERDAS ECW JPEG2000 SDK 5.3.0 GDAL 2.2

I have succeeded until I get to install Gdal. The config command says I'm ready for ECW support. I am getting multiple errors in make

../../GDALmake.opt:646: recipe for target '../o/netcdfdataset.lo' failed
make[2]: *** [../o/netcdfdataset.lo] Error 1
make[2]: Leaving directory '/home/julien/Software/gdal-2.2.2/frmts/netcdf'
GNUmakefile:15: recipe for target 'netcdf-install-obj' failed
make[1]: *** [netcdf-install-obj] Error 2
make[1]: Leaving directory '/home/julien/Software/gdal-2.2.2/frmts'
GNUmakefile:87: recipe for target 'frmts-target' failed
make: *** [frmts-target] Error 2

      

but for me it doesn't concern ECW but netcdf (haven't found a solution to get it in order yet)

gdalinfo --formats|grep ECW

      

and

gdal-config --formats|grep ecw

      

Return nothing

ld config 

      

brought nothing.

I've read a lot of docs but couldn't find any fixes. Thanks to

0


source







All Articles