[gdal-dev] Re: Cannot build on linux
Andrew Brooks
arb at sat.dundee.ac.uk
Fri May 30 08:52:29 EDT 2008
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
Now I get this error compiling gdal/hdf5dataset.cpp:
/usr/local/fwtools/include/H5Gpublic.h: In static member function `static GDALDataset* HDF5Dataset::Open(GDALOpenInfo*)':
/usr/local/fwtools/include/H5Gpublic.h:77: error: too few arguments to function `hid_t H5Gopen2(hid_t, const char*, hid_t)'
hdf5dataset.cpp:243: error: at this point in file
/usr/local/fwtools/include/H5Gpublic.h: In function `herr_t HDF5CreateGroupObjs(hid_t, const char*, void*)':
/usr/local/fwtools/include/H5Gpublic.h:77: error: too few arguments to function `hid_t H5Gopen2(hid_t, const char*, hid_t)'
As I said before, I cannot configure gdal without any hdf or netcdf because it still tries to link to them anyway.
And others have pointed out that using your own path for them still tries to link with the system libraries!!!
How is everyone else building this thing successfully?
Andrew
More information about the gdal-dev
mailing list