Hi Antonio,

I have been reported that this problem should be solved with the latest GDAL 
version in the development 
branch. 

Corado, another one using ECW, told me an alternative solution:

---8<---------------------------------------

Hi Oliver,
I have found a solution. I was still using version 3.3 of the ECW 
library since it is the last release for which source files are 
available: it compiles, it links,... but it doesn't work. 
Thus, I have downloaded the latest version of the ECW library (Release 
5.0.1). Unfortunately, only binaries are available and the installer 
only extracts the files (it does not install them). Thus, I have 
manually installed the library according to the following procedure

$ cd /usr/local
$ sudo cp -r /(path to ecwjp2_sdk)/etc/ ./
$ sudo cp -r /(path to ecwjp2_sdk)/include/ ./
$ sudo cp -r /(path to ecwjp2_sdk)/lib/ ./
$ cd ./lib

$ sudo ln -s ./x64/release/libNCSEcw.so.5.0.1 libNCSEcw.so
or, depending on your architecture,
$ sudo ln -s ./x86/release/libNCSEcw.so.5.0.1 libNCSEcw.so

$ sudo ldconfig

Then, I downloaded and compiled gdal-1.10.0 by following the usual procedure

cd /(path to gdal)
./configure --with-ecw=/usr/local
make
sudo make install (or checkinstall)

Finally, I compiled QLGT and... I'm newly able to open ECW files!!

I hope it can be useful for someone else.

Corrado
--->8---------------------------------------

HTH

Oliver

> Hi,
> I've compiled GDAL 1.9.2 with ecw support on ubuntu 12.04.
> 
> $ gdalinfo --formats|grep ECW
>    ECW (rw): ERMapper Compressed Wavelets
>    JP2ECW (rw+): ERMapper JPEG2000
> 
> 
> 
> Then I've compiled QLGT 1.7.1, but when I try to open an ecw map, it
> crashes:
> 
> "Warning: Qt has caught an exception thrown from an event handler. Throwing
> exceptions from an event handler is not supported in Qt. You must
> reimplement QApplication::notify() and catch all exceptions there.
> 
> terminate called after throwing an instance of 'std::length_error'
>    what():  basic_string::_S_create
> Annullato (core dump creato)"
> 
> 
> What can I do?
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to