[gdal-dev] Fw: Building GDAL with ECW support

Markus Neteler neteler at osgeo.org
Sat Feb 6 03:58:31 PST 2021


On Sat, Feb 6, 2021 at 2:38 AM Pteroglossus via gdal-dev
<gdal-dev at lists.osgeo.org> wrote:
>
> Regarding the compilation of GRASS: pointing to my existing install of GDAL prior the compiling process did not work.

That's unexpected. Perhaps the resulting binary still picks the wrong
GDAL library?
Please check if you still have multiple GDAL versions installed in
parallel (I'd avoid that).

> So I followed Richard's advice and restarted the whole process of compiling GDAL, without the --prefix, then configured and compiled GRASS, and it worked!
>
> I mean I was able to start GRASS GIS, but it won't import my .ecw:
>
> "r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012
> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>
> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>
> ERROR: Unable to read GDAL dataset </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>"

Is ECW reported?

https://grass.osgeo.org/grass-stable/manuals/r.in.gdal.html
--> flag: -f   List supported formats and exit

> + an additional Dialog Box :"Unable to determine number of raster bands"

GRASS GIS simply uses GDAL, so perhaps it still uses the wrong GDAL library?

> Gdalinfo is however able to get info from the file and gdal_translate to convert it, which necessarily means my installation has worked!

You need to be sure that the installed GRASS GIS binaries use the same
GDAL library as e.g. gdalinfo.

Best
Markus


More information about the gdal-dev mailing list