[Gdal-dev] gdal install gdaladdo IReadBlock failed

Ryan Ollerenshaw ollerery at engr.orst.edu
Mon Jan 22 19:32:41 EST 2007


Frank Warmerdam wrote:
> Ryan Ollerenshaw wrote:
>> I am trying to install gdal-1.4.0 on FC5 and i keep getting the 
>> following errors during the make process:
>>
>> geotiff.cpp:102:21: error: xtiffio.h: No such file or directory
>> geotiff.cpp:103:21: error: geotiff.h: No such file or directory
>> geotiff.cpp:104:27: error: geo_normalize.h: No such file or directory
>> geotiff.cpp:105:23: error: geovalues.h: No such file or directory
>> geotiff.cpp:114: error: 'GTIF' was not declared in this scope
>> geotiff.cpp:114: error: expected primary-expression before ',' token
>> geotiff.cpp:114: error: 'GTIFDefn' was not declared in this scope
>> geotiff.cpp:114: error: expected primary-expression before ')' token
>> geotiff.cpp:114: error: initializer expression list treated as 
>> compound expression
>> geotiff.cpp:115: error: 'GTIF' was not declared in this scope
>> ......
>>
>>
>> Here is the configure command that i am using:
>> ./configure --with-png --with-libtiff  --with-jpeg --with-gif  
>> --with-pg=/usr/local/pgsql/bin/pg_config --with-geos 
>> --with-local=/usr/local
>
> Ryan,
>
> Do you have /usr/local/include/xtiffio.h or /usr/include/xtiffio.h?
>
no
> Possibly you have the libgeotiff shared library installed, but not
> the include files (as can occur when installing from packages).  That
> would give this behavior.
>
> You might try adding --with-geotiff=internal
>

So i was able to get gdal installed with the following configure command:
 ./configure --with-png --with-libtiff  --with-jpeg --with-gif  
--with-pg=/usr/local/pgsql/bin/pg_config --with-geos 
--with-local=/usr/local --with-geotiff=internal   --with-ecw=no 
--with-ogdi=no  --with-grass=no --with-libgrass=no

But when running gdaladdo i still get the following error:

...
ERROR 1: IReadBlock failed at X offset 0, Y offset 29
ERROR 1: GetBlockRef failed at X block offset 0, Y block offset 29
ERROR 1: test.tif:DumpModeDecode: Not enough data for scanline 0
ERROR 1: TIFFReadEncodedTile() failed.
...

any ideas on what could be going wrong.  I thought a reinstall of a 
newer version of gdal would fix this, but that does not seem to be the case.





More information about the Gdal-dev mailing list