Accueil / Blog / Métier / Archive du blog de l'année 2013 / Howto install QGis with ECW Support on Linux

Howto install QGis with ECW Support on Linux

Par Gaël Pegliasco 22/10/2013
Recently I needed to install QGis using ECW support. This seems to never have been trivial due to ECW licence that is not free and not available on Linux distributions by default.

First, installing QGis
I have followed QGis developement version using QGis documentation for ubuntu via ubuntugis:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install qgis python-qgis qgis-plugin-grass

Then download ECW
Go to http://download.intergraph.com/ and search for "ERDAS ECW/JP2 SDK Version 5.0 (Linux)"
Or directly download http://downloada.erdas.com/software/2013/ECWJP2SDK/erdas-ecwjp2sdk-v5.0-linux.zip but this link seems needing that you answer the form above with your contact data before being used.

Then install ECW support on Linux:

unzip erdas-ecwjp2sdk-v5.0-linux.zip
chmod +x ERDAS_ECWJP2_SDK-5.0.bin
./ERDAS_ECWJP2_SDK-5.0.bin # Select option desktop read only
sudo cp -r ecwjp2_sdk /usr/local/
sudo ln -s /usr/local/ecwjp2_sdk/lib/x64/release/libNCSEcw.so /usr/local/lib/libNCSEcw.so
sudo ldconfig
sudo apt-get install libgdal-ecw-src
sudo gdal-ecw-build /usr/local/ecwjp2_sdk
gdalinfo --formats | grep -i ecw


And run QGis (I had errors messages that I ignore), then, I was able to import ecw file using raster layer

Derniers articles
Butinage n°56Butinage n°56 02/03/2015 Huitième exemplaire 2015 de la veille régulière réalisée par Makina Corpus sur l'actualité web. Simon Georges
Geotrek, trois volets pour gérer, valoriser et préparer ses activités touristiques 02/03/2015 Geotrek c'est trois parties dépendantes les unes des autres, mais chacune son propre public ! Thomas Blandin
Everything is relative, but mostly performanceEverything is relative, but mostly performance 27/02/2015 Thoughs about Atom moving away from React. Eric Brehault
Formation Drupal 7 Theming à NantesFormation Drupal 7 Theming à Nantes 26/02/2015 Familiarisez-vous avec le theming sous Drupal du 11 au 12 mai à Nantes ! Anael Boulier