Install GDAL ECW Support in Archlinux / Manjaro

---- ENGLISH VERSION ----

French version is below


Hi,


A quick note to install ecw support for gdal under Archlinux / Manjaro.
It's very simply to install software under Archlinux base, more than Ubuntu ou Mac Osx.

1) Install ecw :
yaourt -Syua libecwj2
These command install ecw lib revision 3.3. A quick search with find or locate show that  libNCSEcw.so is in /usr/lib/ It's a very important fact to install gdal later.

2) Gdal installation
It's common to install gdal with pacman but you cannot edit the PKGBUILD. So I recommand to use gdal-filegdb in AUR repository. This package does not include only gdb support but also other plugins like openjpeg and others.

 yaourt -Syua gdal-filegdb
During the install, the process requires you to edit PKGBUILD. You have to choose yes and add this option to the build :
--with-ecw=/usr
Validate and let the build ends

3) Verifying :
gdalinfo --formats | grep ECW
ECW -raster- (rw): ERDAS Compressed Wavelets (SDK 3.x)JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 3.x)



------- FRENCH VERSION -----

Bonjour

Vous trouverez dans ce billet une petite note pour l'installation de l'ecw sous Archlinux / Manjaro

C'est pas très compliqué et bien plus simple de mon point de vue que sous Ubuntu ou Mac Osx.

1) Installation de l'ecw :
yaourt -Syua libecwj2
Ceci installera la lib ecw version 3.3. Une petite recherche avec locate ou find montrera que libNCSEcw.so se trouve dans /usr/lib/ Ce paramètre va jouer lors de l'installation de gdal.

2) Installation de gdal
On pourrait installer gdal avec pacman mais on ne peut pas éditer le pkgbuild qui permet d'ajouter des options à l'installation. Pour cela je recommande d'utiliser gdal-filegdb qui inclut plusieurs plugins et non uniquement le support des gdb mais aussi l'openjpeg par exemple.

 yaourt -Syua gdal-filegdb
Lors de l'installation, il va vous être demandé si vous ne l'avez pas désactivé la possibilité d'éditer le PKGBUILB. A cette étape il faut choisir oui et rajouter dans les options de compilations :
--with-ecw=/usr
Valider et laisser la compilation se terminer

3) Vérification :
gdalinfo --formats | grep ECW
ECW -raster- (rw): ERDAS Compressed Wavelets (SDK 3.x)JP2ECW -raster,vector- (rw+v): ERDAS JPEG2000 (SDK 3.x)




Commentaires

Posts les plus consultés de ce blog

Mise à jour Paquet ECW pour Ubuntu

Disposer du support de l'ECW sous Ubuntu