<div><div>Thank you Markus for the explanation, you were right, I had conflicting libraries. I "located" every "gdal" files, deleted them all, started over from scratch and...<br></div><div> <br></div><div> "(Sun Feb  7 22:51:56 2021)<br></div><div> r.in.gdal -f<br></div><div> <br></div><div> ECW (rw+): ERDAS Compressed Wavelets (SDK 5.5)<br></div><div> JP2ECW (rw+): ERDAS JPEG2000 (SDK 5.5)"<br></div><div> <br></div><div> However:<br></div><div> <br></div><div> "(Sun Feb  7 22:52:28 2021)<br></div><div> r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012 -o<br></div><div> No projection information available<br></div><div> Over-riding projection check<br></div><div> Importing 3 raster bands...<br></div><div> Importing raster map <SCAN50_2012.1>...<br></div></div><div>Importing raster map <SCAN50_2012.2>...<br></div><div>Importing raster map <SCAN50_2012.3>...<br></div><div><div>(Sun Feb  7 23:51:01 2021) Command finished (58 min 33 sec)<br></div><div> Traceback (most recent call last):<br></div><div> File "/usr/local/grass79/gui/wxpython/core/gconsole.py",<br></div><div> line 691, in OnCmdDone<br></div><div> <br></div><div> event.onDone(event)<br></div><div> File<br></div><div> "/usr/local/grass79/gui/wxpython/modules/import_export.py",<br></div><div> line 518, in OnCmdDone<br></div><div> <br></div><div> self.AddLayers(event.returncode, event.cmd, event.userData)<br></div><div> File<br></div><div> "/usr/local/grass79/gui/wxpython/modules/import_export.py",<br></div><div> line 276, in AddLayers<br></div><div> <br></div><div> if not self.add.IsChecked() or returncode != 0:<br></div><div> RuntimeError<br></div><div> :<br></div><div> wrapped C/C++ object of type CheckBox has been deleted"<br></div><div> <br></div><div> I do not have the slightest idea  what could have caused that. FYI I did not encounter any issue during the compilation and installation processes. <br></div><div><br></div><div>I've never been closer to importing my .ecw into GRASS GIS, could you nudge me in the right direction one last time? <br></div><div><br></div><div>Best, <br></div><div>Kevin <br></div><div> <br></div><div> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> On Saturday, February 6, 2021 8:58 AM, Markus Neteler <a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a> wrote:<br></div><div><br></div></div><blockquote><div><div>On Sat, Feb 6, 2021 at 2:38 AM Pteroglossus via gdal-dev<br></div><div> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a> wrote:<br></div></div><blockquote><div>Regarding the compilation of GRASS: pointing to my existing install of GDAL prior the compiling process did not work.<br></div></blockquote><div><div>That's unexpected. Perhaps the resulting binary still picks the wrong<br></div><div> GDAL library?<br></div><div> Please check if you still have multiple GDAL versions installed in<br></div><div> parallel (I'd avoid that).<br></div></div><blockquote><div><div>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!<br></div><div> I mean I was able to start GRASS GIS, but it won't import my .ecw:<br></div><div> "r.import input=/media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw output=SCAN50_2012<br></div><div> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw><br></div><div> ERROR: Unable to open datasource </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw><br></div><div> ERROR: Unable to read GDAL dataset </media/k/Data/Data/Perso/Carto/SCAN50_2012.ecw>"<br></div></div></blockquote><div>Is ECW reported?<br></div><div><div><a href="https://grass.osgeo.org/grass-stable/manuals/r.in.gdal.html">https://grass.osgeo.org/grass-stable/manuals/r.in.gdal.html</a><br></div><div> --> flag: -f List supported formats and exit<br></div></div><blockquote><ul><li>an additional Dialog Box :"Unable to determine number of raster bands"<br></li></ul></blockquote><div>GRASS GIS simply uses GDAL, so perhaps it still uses the wrong GDAL library?<br></div><blockquote><div>Gdalinfo is however able to get info from the file and gdal_translate to convert it, which necessarily means my installation has worked!<br></div></blockquote><div><div>You need to be sure that the installed GRASS GIS binaries use the same<br></div><div> GDAL library as e.g. gdalinfo.<br></div></div><div><div>Best<br></div><div> Markus<br></div></div></blockquote><div><br></div>