[Gdal-dev] error creating gtiff

Ken Boss Ken.Boss at dnr.state.mn.us
Thu Sep 1 18:39:10 EDT 2005


>>> "Chris Garrard" <chrisg at biology.usu.edu> 9/1/2005 4:31 PM >>>
Hi,

I just compiled GDAL 1.3.0 on a Solaris 10 (sparc) box.  I used the
internal versions of libtiff, geotiff, etc, because it forced me to
(couldn't find the headers for external versions, even though they were
there).  Now I'm trying to use gdal_translate to create some geotiffs,
and it's failing.  I've tested a few other output types, and they work
fine.  Here's the message I'm getting:

earth2#  gdal_translate -of gtiff test.img test.tif
Input file size is 1599, 1817
0...10...20...30...40...50...60...70...80...90...100 - done.
ERROR 4: `test.tif' not recognised as a supported file format.

ERROR 4: `test.tif' not recognised as a supported file format.

It actually creates a file of about the right size, but nothing will
open it.  Anyone have any ideas?

Thanks,
Chris

*---------------------------------------------------------------------------------------

Chris--

I recently battled the exact same problem on a Solaris 8 sparc box, though I was intentionally trying to use the internal versions of libtiff/libgeotiff.  I ripped some hair out trying to find potentially conflicting tiff libs on the system, but to no avail.  

In the end I built and installed libtiff-3.7.3, then ran the GDAL configure script setting the --with-libtiff option to the location of the libtiff-3.7.3 install.  I had to manually add -I/path/to/libtiff/include to the CPPFLAGS line in GDALmake.opt before I could finally get it to build. That did the trick, though I'm still mystified as to what was going on in the first place.

HTH,

--Ken







More information about the Gdal-dev mailing list