[GRASSLIST:1593] Re: hdf4 & gdal

Andrey Kiselev dron at ak4719.spb.edu
Wed Oct 29 04:54:09 EST 2003


On Wed, Oct 29, 2003 at 10:21:36AM +0100, Ivan Marchesini wrote:
> I have installed hdf 4.1r5 by rpm.
> now I would want to reconfigure gdal to support hdf format, I tried
> ./configure --with-hdf4=/usr/include , where the rpm package putted
> tha hdf files, but it doesn't work..., I think, because after the make
> I obtain:
> 
> _____________________________________________________________
> ..............
> ..............
> make[2]: Entering directory `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts/hdf4'
> g++ -c -I../.. -I../../port -I../../gcore -I../../ogr  -Wall -fPIC -O2   
> hdf4dataset.cpp -o hdf4dataset.o
> In file included from hdf4dataset.cpp:109:
> /usr/include/mfhdf.h:25:20: netcdf.h: No such file or directory
> make[2]: *** [hdf4dataset.o] Error 1
> make[2]: Leaving directory `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts/hdf4'
> make[1]: *** [sub-libs] Error 1
> make[1]: Leaving directory `/home/ivan/Documents/GRASS/gdal-1.1.9/frmts'
> make: *** [frmts-target] Error 2
> _________________________________________________________________
> 
> 
> instead, if I use ./configure without option I don't obtain errors...
> so I think that the problem is in the option.....

It should work automatically without any options. Try 'gdalinfo
--formats' after building and search for the HDF4 one.

--with-hdf4 should point to the HDF source tree if it is located in
the unusual place.

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517




More information about the grass-user mailing list