[Gdal-dev] gdal --with-netcdf troubles

Frank Warmerdam fwarmerdam at gmail.com
Fri Feb 18 10:42:30 EST 2005


On Fri, 18 Feb 2005 16:32:47 +0100, Maciek Sieczka <werchowyna at pf.pl> wrote:
> And both "--with-hdf4=/usr/local" and "--with-hdf4=/usr/local/lib" work. So
> I can build --with-hdf4, no problem here.
> 
> What I mean is that anytime I demand "--with-netcdf=anything_or_whatever"
> (not having it installed!) the hdf4 support fails to build - although the
> hdf4 libs ARE THERE in /usr/local/lib (as shown above):

Maciek,

Ah, I see.  Some configure targets, when given an explicit path, just
"trust" that the libraries are there and add them to the library list.
 I suspect
what is happening is that the --with-netcdf code isn't checking that 
/usr/local is ok, and instead the libraries are added to the lib list.  Then
when it tries to link with the hdf libraries the link fails because the netcdf
libs aren't found. 

I can see that this is a confusing effect, but I am not inclined to do anything
about it.   Was there a particular reason you were telling configure to 
use netcdf from /usr/local when you knew it wasn't there? 

> > If you want netcdf, then include it and not HDF.  If you want HDF
> > include HDF and not netcdf.  If you really want both there is some
> > messy hacking you will have to do rebuilding the HDF library to not
> > include the fake netcdf API.   I managed to accomplish this on windows
> > and unix here but it is a mess.
>
> And it is implemented in your FWTools 0.9.6 right?

Yes. 

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