[GRASS-windows] Large file support?

Frank Warmerdam warmerdam at pobox.com
Tue Jul 29 13:07:40 EDT 2008


Marco Pasetti wrote:
> Hi Jonathan,
> 
>> I remember having problems with LFS and GDAL when we were compiling 
>> starspan for windows use (starspan.casil.ucdavis.edu) -- I'll ask our 
>> lead programmer about that.  We used to have to use:
>>
>>    export CPPFLAGS=-D_FILE_OFFSET_BITS=64
>>    export CXXFLAGS=-D_FILE_OFFSET_BITS=64
>>    export CFLAGS=-D_FILE_OFFSET_BITS=64
>>
>> to get GDAL to compile with LFS correctly, although we haven't used 
>> that for a long time.
> 
> yes, after reading some things more, I suppose that this is the problem
> I suppose that we could fix it adding to the GDAL configure the option: 
> --with-unix-stdio-64=yes
> but I cannot test it right now... I added it to my to-do list

Marco,

Particular configuration options may be necessary to get large file support
on a given system.  I presume you are building with the unsupported MingW
configuration for win32?  The --with-unix-stdio-64 option would be one
to try out, or the suggested file offset macros described above.

BTW, to create a large file with GDAL you should be able to do something
like:

   gdal_translate utm.tif -outsize 70000 70000 big.tif

Of course if large file access isn't working this is likely to fail, but
then that's a clue.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the grass-windows mailing list