[winGRASS] GRASS6beta1 on WINDOWS/MINGW / raster read error
Glynn Clements
glynn at gclements.plus.com
Fri Apr 8 23:19:27 EDT 2005
Javier A. Yebrin wrote:
> Finally I've got most of grass modules compiled under Mingw/Msys. Then
> started to test them (first the raster modules, of course), and found some
> strange behaviour depending on the studied raster. I've used the Spearfish
> database and ran r.sum for all the present rasters (using spot.image to
> define the current region).
> These are the results(first line the raster name, then the stdout or
> stderr):
> aspect
> WARNING: Fail of initial read of compressed file [aspect in PERMANENT]
> You may see that the response changes from one type of raster to another,
> whether it is compresed or not.
> I'm trying to debug this module at the moment...
>
> In the meanwhile, do you have any ideas?
The usual reason for that error message on Windows is that something
is performing CRLF->LF conversion, which is inappropriate for a binary
file.
ISTR that the MinGW runtime includes a function to enable/disable the
conversions. You need to ensure that all I/O is done without
conversions.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-windows
mailing list