[gdal-dev] build the HDF5 driver as a shared object
Antonio Valentino
antonio.valentino at tiscali.it
Wed May 21 14:13:14 EDT 2008
Hi,
this is the first time I post on this mailing list.
I would like to like to build the HDF5 driver as a shared object on
debian sid.
I run
$ ./configure --prefix=$HOME/gdal --with-libtiff=internal
--with-geotiff=internal --with-python --without-hdf5
--with-grass=/usr/lib/grass
$ make
$ cd frmts/hdf5
and
$ make plugin
after appending
plugin: gdal_HDF5.so
gdal_HDF5.so: $(OBJ)
$(LD_SHARED) $(OBJ) $(GDAL_LIBS) $(LIBS) -o gdal_HDF5.so
to GNUMakefile.
I get the following error message:
hdf5dataset.o hdf5imagedataset.o /home/valentino/gdal/src/gdal/libgdal.a
-L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -lodbc -lodbcinst
-L/usr/lib -lexpat -L/usr/lib -lxerces-c -lpthread -ljasper -L -lmfhdf
-ldf -lgif -ljpeg -lpng -lnetcdf -L/usr/lib/grass/lib -lgrass_vect
-lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient
-lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath
-lgrass_gis -lgrass_datetime -lpq -L/usr/lib -lpq -lz -lm -lrt -ldl
-lcurl -o gdal_HDF5.so
make: hdf5dataset.o: Command not found
make: *** [gdal_HDF5.so] Error 127
It seems that LD_SHARED is not defined.
Which are the correct configuration flags I should use?
Thanks in advance
--
antonio
More information about the gdal-dev
mailing list