There may be an issue with your gdal-ecw-build script.
My system:
- LinuxMint 12 (based on Ubuntu 11 oneiric)
- package source: standard deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse . On this installed using ubuntu package manager:
- qgis 1.8.0.1~oneiric1
- libgdal-ecw-src 1.9.1-2~oneiric3
ERmapper libecwj2-3.3 compiled and installed fine as per above instructions, but the GDAL-ECW-BUILD script crashes because it expects (at least on my system) the libgdal-ecw-src tarball to be in the *gz*ip format, whereas it actually is a plain tar. If running the script on your system crashes with a message like:
Extracting GDAL/ECW tarball
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Building GDAL/ECW plugin
cd: 70: can't cd to /tmp/gdal-ecw-build.fCIAbO/libgdal-ecw-1.9.1
then open the /usr/bin/gdal-ecw-build script in your text editor (as root), scroll down to around line 59 where you may see:
echo "Extracting GDAL/ECW tarball"
tar xzf $TARBALL -C $BUILDDIR
Change the second line to read:
echo "Extracting GDAL/ECW tarball"
tar xf $TARBALL -C $BUILDDIR
Save, rerun the script and you should be fine.