Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have followed various online help guides on how to make ecw for QGIS 1.8 work in Ubuntu 12.04. I had it all working in Ubuntu 10.04 but since migration to 12.04 no such luck.

Is there a guide that works for Ubuntu 12.04?

At the moment it seems easier to install the windows version where ecw support is included in the install, but I would like to stay with Ubuntu.

cheers and thanks for any advice.

jurgena

share|improve this question
    
[Installing (lib)gdal-ecw][1] doesn't do the trick? [1]: gis.stackexchange.com/questions/1892/quantum-gis-and-ecw-images –  lynxlynxlynx Jun 12 '12 at 8:31
    
Well done Luke, it works perfect on my x64 Ubuntu 13.04 Raring on QGIS 1.80! ;-) –  Nebojša Tanasković Aug 13 '13 at 16:45
    
I get gdal-ecw-build: command not found –  jurgena Apr 5 at 22:50
add comment

2 Answers

ECW libraries are not open source software and cannot be freely distributed. You need to add manually the ecw support in your local copy of gdal. On ubuntu do this:

wget http://de-mirror.org/distro/gentoo/distfiles/libecwj2-3.3-2006-09-06.zip
unzip libecwj2-3.3-2006-09-06.zip
cd libecwj2-3.3
./configure
make
sudo make install
sudo gdal-ecw-build /usr/local/ 
sudo ldconfig
share|improve this answer
    
Many thanks Giovanni. I just precise that the libgdal-ecw-src package from ubunutugis ppa have to be installed to make it work –  simo Jun 13 '12 at 15:59
    
It should be available now –  Giovanni Manghi Jun 30 '12 at 15:09
add comment

The Intergraph ECW JPEG2000 SDK v5.0 has been released and includes linux support. The ubuntugis-unstable ppa has been updated to include SDK v5.0 support in libgdal-ecw-src.

Notes:

  • As at 27 July 2013 build fails on 32bit Ubuntu
  • ECW/JP2ECW drivers fail using Python bindings, gdal executables work fine.
  • This SDK is licensed for Desktop use only and has been reported to fail if attempting to use it in a Server application.

To get the ECW JPEG2000 SDK v5.0 working in ubuntu 12.04 - 13.04 64bit:

  • update (or install) libgdal-ecw-src from the UbuntuGIS Unstable PPA
  • download the SDK installer (ERDAS_ECWJP2_SDK-5.0.bin)
  • make it executable (chmod +x ERDAS_ECWJP2_SDK-5.0.bin)
  • run it (./ERDAS_ECWJP2_SDK-5.0.bin)
  • copy the SDK directory to /usr/local (sudo cp -r ecwjp2_sdk /usr/local/)
  • symlink libNCSEcw.so to /usr/local/lib (sudo ln -s /usr/local/ecwjp2_sdk/lib/x64/release/libNCSEcw.so /usr/local/lib/libNCSEcw.so)
  • update ldconfig (sudo ldconfig)
  • run the gdal-ecw-build script (sudo gdal-ecw-build /usr/local/ecwjp2_sdk)
  • test it works:

    gdalinfo --formats | grep -i ecw

    ECW (rw+): ERDAS Compressed Wavelets (SDK 5.0)

    JP2ECW (rw+v): ERDAS JPEG2000 (SDK 5.0)

share|improve this answer
add comment

protected by Community Aug 13 '13 at 17:27

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.