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 > Hi Corrado, > > I see. Looks like I have to find the time to compile a GDAL version with ECW > support. Do you have a small ECW example file for me? > > Oliver > >> Hi Oliver, >> yes, it crashes even without any initial config file, but only when I >> try to open an ECW map (no problem with other kinds of maps). In the >> past I was able to open ECW maps without any problem. >> >> Corrado >> >> > Hi Corrado, >> > >> > thus even a plain installation of QLGT (no initial config file) crashes? >> > I tried it myself by moving the QLGT config folder out of scope and QLGT >> > started without a problem with it's initial state. >> > >> > Oliver >> > >> >> Hi Oliver, >> >> >> >>> Hi Corrado, >> >>> >> >>> > I have verified that SQLite3 is installed. I have also found an >> >>>> >> >>>> installed package that is named libqt4-sql-sqlite (SQLite3 database >> >>>> drive for QT4): is it the plugin you were talking about? >> >>>> The "pathGeoDB" is pointing to my home directory, while it should point >> >>>> to...? >> >>> >> >>> Any valid path should do. In the path you will find a file named >> >>> qlgt.db. This should have the correct access rights. Maybe the file is >> >>> corrupted. In this case it's a good idea to move it. QLGT will create a >> >>> new one. >> >> >> >> something has changed (now QLGT reads the database), but the program >> >> still crashes with this message >> >> >> >> use config file: "" >> >> 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 >> >> >> >> In order to be sure that old configurations are not the reason of the >> >> crashes, I have also removed the $HOME/.config/QLandkarteGT directory, >> >> but the result is still the same. >> >> >> >> Cordially, >> >> Corrado >> >> >> >>> Oliver >> >>> >> >>>> I have forgotten to mention that I have no problems with vector maps. >> >>>> Many thanks, >> >>>> >> >>>> Corrado >> >>>> >> >>>>> Hi Corrado, >> >>>>> >> >>>>> are SQLite3 and the Qt plugins for database support installed. On some >> >>>>> distributions the plugins are a standalone packet. >> >>>>> >> >>>>> Another problem might be a bad database path configured in QLGT. Watch >> >>>>> out for the [environment] section in the configuration file. The path >> >>>>> is >> >>>>> stored in "pathGeoDB". >> >>>>> >> >>>>> Anyway I do not think it's a problem related to ECW. The exception is >> >>>>> thrown in QSqlQuery and that is used in the QLGT's database. >> >>>>> >> >>>>> HTH >> >>>>> >> >>>>> Oliver >> >>>>> >> >>>>>> Hi Oliver, >> >>>>>> yesterday I tried to open an ECW file... and I discovered that I'm no >> >>>>>> more able to open it. Not only, QLGT crashes if I try. >> >>>>>> I have recompiled GDAL 1.8.1 and GDAL 1.10.0 by enabling the ecw >> >>>>>> option, >> >>>>>> but it has not solved the problem. >> >>>>>> I also recompiled QLGT by starting from the repository version... >> >>>>>> same >> >>>>>> result. >> >>>>>> This is the message I get when QLGT crashes >> >>>>>> >> >>>>>> Warning: QSqlQuery::exec: database not open >> >>>>>> 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 >> >>>>>> >> >>>>>> Can you please help me? >> >>>>>> >> >>>>>> Corrado >> >>>> >> >>>> ----------------------------------------------------------------------- >> >>>> ------- This SF.net email is sponsored by Windows: >> >>>> >> >>>> Build for Windows Store. >> >>>> >> >>>> http://p.sf.net/sfu/windows-dev2dev >> >>>> _______________________________________________ >> >>>> Qlandkartegt-users mailing list >> >>>> Qlandkartegt-users <at> ... >> >>>> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users >> >>> >> >>> ------------------------------------------------------------------------ >> >>> ------ This SF.net email is sponsored by Windows: >> >>> >> >>> Build for Windows Store. >> >>> >> >>> http://p.sf.net/sfu/windows-dev2dev >> >> >> >> ------------------------------------------------------------------------- >> >> ----- This SF.net email is sponsored by Windows: >> >> >> >> Build for Windows Store. >> >> >> >> http://p.sf.net/sfu/windows-dev2dev >> >> _______________________________________________ >> >> Qlandkartegt-users mailing list >> >> Qlandkartegt-users <at> ... >> >> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users >> > >> > -------------------------------------------------------------------------- >> > ---- This SF.net email is sponsored by Windows: >> > >> > Build for Windows Store. >> > >> > http://p.sf.net/sfu/windows-dev2dev >> >> ---------------------------------------------------------------------------- >> -- This SF.net email is sponsored by Windows: >> >> Build for Windows Store. >> >> http://p.sf.net/sfu/windows-dev2dev >> _______________________________________________ >> Qlandkartegt-users mailing list >> Qlandkartegt-users@... >> https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev ------------------------------------------------------------------------------ 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 Qlandkartegt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users