[gdal-dev] error adding ecw on Ubuntu 10.4 (lucid)

Matt Wilkie maphew at gmail.com
Sat Feb 5 02:46:52 EST 2011


Hi Folks,

I'm trying to add ECW read support to gdal in Ubuntu 10.4 (Lucid)
amd64 and not having much luck. The end goal is simply to be able to
view ecw images in QGIS.

What I've tried to date follows.  Edited for space, things were not
actually installed all at the same time or in the order as written;
many false starts in the middle. I keep getting an error from
`gdal-ecw-build`: "checking for libNCSEcw.so or libecwj2... configure:
error: not found". The only reference I could find to this error was
on Mac OS-X from 3 years, with a note that a fix was committed to
source (http://trac.osgeo.org/gdal/ticket/2032). What am I doing
wrong/missing? thanks.

{{{
uname -a
#Linux ubuntu-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16
08:09:38 UTC 2010 x86_64 GNU/Linux

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install qgis gdal-bin libgdal-ecw-src

# download libecwj2-3.3 and unpack to ~/src
cd ~/src
wget http://gentoo.cs.utah.edu/distfiles/libecwj2-3.3-2006-09-06.zip
unzip libecwj2-3.3-2006-09-06.zip

# build the SDK
cd libecwj2-3.3/Source
./configure
make
sudo make install

# build gdal with ecw plugin
sudo gdal-ecw-build ~/src/libecwj2-3.3/Source/

Extracting GDAL/ECW tarball
Building GDAL/ECW plugin
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for g++ -shared ... yes
checking for gdal-config... /usr/local/bin/gdal-config
using /usr/lib/gdal17plugins as GDAL shared library autoload directory
checking for libNCSEcw.so or libecwj2... configure: error: not found
in /home/matt/src/libecwj2-3.3/Source//lib or
/home/matt/src/libecwj2-3.3/Source//bin.
}}}


-- 
-matt


More information about the gdal-dev mailing list