[gdal-dev] Re: Cannot build on linux

jluis at ualg.pt jluis at ualg.pt
Fri May 30 10:56:05 EDT 2008


Quoting Andrew Brooks <arb at sat.dundee.ac.uk>:

> On Fri, 30 May 2008 01:06:14 +0100, Lucena, Ivan  
> <ivan.lucena at pmldnet.com> wrote:
>
>> I am not an specialist on that topic but I believe that you need to  
>> recompile the HDF libraries wihout NetCDF support in order to use  
>> the NetCDF driver. Maybe that is what "multiple definition" is about.
>
> OK, I've built HDF4, hdf5, netcdf myself (without netcdf inside HDF4).
>
> Then configured using:
>   ./configure --prefix=/usr/local/fwtools  
> --with-netcdf=/usr/local/fwtools --with-hdf4=/usr/local/fwtools  
> --with-hdf5=/usr/local/fwtools  
> --with-curl=/usr/local/fwtools/bin/curl-config
>

>
> How is everyone else building this thing successfully?

Andrew,
You went even further than me. I'm trying to the same on OSX but I am  
not even able to convince it that I have hdf on board. I built HDF4  
and installed it at /usr/local. That resulted in two static libs  
libdf.a and libmfhdf.a (strange, on windows there are a couple more of  
dlls).

Now
./configure --with-netcdf --with-hdf4=/usr/local

results in:

configure: error: HDF4 support requested with arg /usr/local, but  
neither hdf4 nor mfhdf lib found

but libmfhdf.a as well as the netcdf libraries are there.

Not requesting a build with HDF works ok.

Joaquim Luis

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the gdal-dev mailing list