[gdal-dev] Error in GDAL compiling with HDF4

Frank Warmerdam warmerdam at pobox.com
Wed Jul 29 16:40:40 EDT 2009


Limei Ran wrote:
...
> checking for FMEObjects... no
> checking for SDreaddata in -lmfhdf... no
> checking for SDreaddata in -lhdf4... no
> checking for SDreaddata in -lmfhdf... no
> checking for SDreaddata in -lmfhdf... no
> configure: error: HDF4 support requested with arg 
> "/nas/uncch/depts/cep/emc/lran/mims/sa_06_2009/src/libs/HDF4.2r4/local", 
> but neither hdf4 nor mfhdf lib found
> ===========================
> 
> I compiled HDF4 with: --disable-netcdf --disable-fortran and I did not 
> compile GDAL with netcdf.  When I got rid of HDF4 in gdal configure, the 
> configuration went through.
> 
> The config.log has a lot of errors related to conftest.c like:
...
> Could you tell me what went wrong in this gdal compiling with hdf4 ?

Limei,

I think you need to find the part of the config.log that relates to hdf to
find out what went wrong.  I think one common problem is building the HDF
library without -fPIC.

You might also check:
  http://trac.osgeo.org/gdal/wiki/HDF

and consider updating it if you learn something likely to be of broader use.

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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list