[gdal-dev] ECW support on Fedora Linux - error

Zoltan Szecsei zoltans at geograph.co.za
Fri Jul 27 09:59:35 PDT 2012


On 2012/07/27 16:33, jkadlec wrote:
> Hi, I have a problem making GDAL work with ECW files on Fedora Linux 17.
> Here are the steps I did following the instructions on:
> http://trac.osgeo.org/gdal/wiki/ECW
> 1. I downloaded, installed and compiled libecwj 3.3 library
> 2. I downloaded the source of gdal 1.9.1
> 3. I ran ./configure --with-ecw, make and make install
> 4. gdalinfo --formats now includes ECW
> 5. However, I have a problem opening any ECW file with GDAL. For example, I
> downloaded the sample ECW files from
> http://www.terracolor.net/sample_imagery.htmlhttp://
> http://www.terracolor.net/sample_imagery.html . One of the files is called
> Terracolor_SanFrancisco_US_15m.ecw
> When I run gdalinfo Terracolor_SanFrancisco_US_15m.ecw I get a weird error:
>
> terminate called after throwing an instance of 'std::length_error' what():
> basic_string::_S_create Aborted (core dumped)
>
> Other file types such as tiff or asc open with GDAL correctly.
> Was anybody able to get GDAL running with ECW support on Linux?
> Should I try to use the KAKADU library with GDAL instead of libecwj?
>
> Any suggestions are welcome.
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.n6.nabble.com/ECW-support-on-Fedora-Linux-error-tp4991388.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
Hi,
I went exactly your route with recompiling gdal on Ubuntu 12.04 - no 
problems whatsoever and I converted my ECW images to tiff using gdalwarp.
I suggest you download the (free?) Erdas viewer for ecw files and check 
the integrity of your ecw image - maybe it got corrupt on your download.

HTH,
Zoltan


More information about the gdal-dev mailing list