[gdal-dev] Compiling GDAL with HDF4 support

Andrew C Aitchison andrew at aitchison.me.uk
Mon Feb 8 01:09:17 PST 2021


On Mon, 8 Feb 2021, Hernán De Angelis wrote:

> Hi everyone
>
> I am trying to compile GDAL 3.2.1 with HDF4 4.2.15. HDF4 is in /usr/local and 
> subdirectories, but GDAL configure (--with-hdf4) complains:
>
> checking for SDreaddata in -lmfhdfalt... 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 "yes", but neither hdf4 nor 
> mfhdf lib found
>
>
> Yet, in /usr/local/lib64 I find:
>
> /usr/local/lib64/libhdf4.settings
> /usr/local/lib64/libmfhdf.a
> /usr/local/lib64/libmfhdf.la
>
>
> Am I missing something? Working in openSUSE Tumbleweed.

Possibly something like
 	configure --with-hdf4=/usr/local/lib64
rather than
 	configure --with-hdf4
?

-- 
Andrew C. Aitchison					Kendal, UK
 			andrew at aitchison.me.uk


More information about the gdal-dev mailing list