[Gdal-dev] Trouble to compile GDAL-cvs with HDF4 in OS X
Andrey Kiselev
dron at ak4719.spb.edu
Wed Nov 19 14:12:04 EST 2003
On Wed, Nov 19, 2003 at 07:13:21PM +0100, Lorenzo Moretti wrote:
> > > -lm -ldl >&5
> >> ld: can't locate file for: -lhdf4
> >> configure:20574: $? = 1
> >> configure: failed program was:
> >> #line 20545 "configure"
> >> #include "confdefs.h"
> >> ....
> >
> >Is it the end of the HDF-related log? I think it should be more
> >information after these two tests (in case you are using recent
> >snapshot).
>
> It's not complete !!!
> from config.log
>
> ........
> configure:20604: checking for SDreaddata in -lmfhdf
> configure:20637: gcc -o conftest -g -O2 -DCPL_MULTIPROC_PTHREAD
> -DCPL_MULTIPROC_PTHREAD conftest.c -lmfhdf -ldf -ljpeg -lz -L/sw/lib
> -lz -lpthread -lm -ldl >&5
> configure:20640: $? = 0
> configure:20643: test -s conftest
> configure:20646: $? = 0
> configure:20657: result: yes
Result looks nice!
> > > Is this an error ?
> >Yes, both tests are failed.
> Arghh !!!!
...but the third one succeeds.
> At the beginning of ./configure I see 3 lines of SDreaddata:
> .......
> checking for FMEObjects... disabled by user
> checking for SDreaddata in -lmfhdf... no
> checking for SDreaddata in -lhdf4... no
> checking for SDreaddata in -lmfhdf... yes
> jpeg2000 support disabled.
> .......
> It'strange
It is normal behaviour. Configure performs several tests, because HDF
binaries can be compiled with different optional libraries, so we check
all possibilities.
> >Are you sure GRASS using recently compiled GDAL? Is it possible you have
> >outdated GDAL binaries somewhere in the system?
> I have built Grass binaries from grass53cvs source with this gdal
> binaries (--with-gdal=/usr/local/bin/gdal-config). I have new gdal
> binaries.
> Grass import my SPOT files, QuickBird files but not Aster file (hdf). I
> read:
> ... not recognised as a supported file format
> Is it an error in gdal or grass?
> Have I to recompile grass?
I have no idea with except of wrong GDAL binaries used by the GRASS.
Try to ensure again you are using the right ones.
> Which tool can I use for converting this file from gdal?
gdal_translate helps you to convert that ASTERs in any GDAL supported
format. GeoTIFF will be used by default (so all georeferencing will be
preserved). Don't forget that you should run gdalinfo on your file the
first and select one of the subdatasets for further processing.
Andrey
--
Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517
More information about the Gdal-dev
mailing list