Hi netCDF team
actually this is more a question for the HDF team
I am trying to build netCDF 4.3.1 RC2/RC3 with HDF4, following the instructions here
http://www.unidata.ucar.edu/software/netcdf/docs/build_hdf4.html
"For this to work, you must build the HDF4 library with the configure option "
--disable-netcdffor RC2I build HDF4 with
./configure --prefix=/home/pvicente/install/hdf-4.2.9 --disable-netcdf
and the ouput had this last line
Support for netCDF API 2.3.2: no
Build netCDF
defined
H4DIR=/home/pvicente/install/hdf-4.2.9
CPPFLAGS="-I${H4DIR}/include"
LDFLAGS="-L${H4DIR}/lib"
./configure --prefix=/home/pvicente/install/netcdf-c-4.3.1-rc2 --enable-hdf4
output
checking for mfhdf.h... yes
checking for Hclose in -ldf... no
checking for SDcreate in -lmfhdf... no
checking value of LIBS... -lhdf5_hl -lhdf5 -lm -lz -lcurl
and this linking error
../liblib/.libs/libnetcdf.so: undefined reference to `SDstart'
for RC3
./configure --prefix=/home/pvicente/install/netcdf-c-4.3.1-rc3 --enable-hdf4
checking mfhdf.h usability... yes
checking mfhdf.h presence... yes
checking for mfhdf.h... yes
checking for Hclose in -ldf... no
configure: error: Can't find or link to the hdf4 df library. See config.log for errors.
config.log
configure:16643: gcc -o conftest -g -O4 -Wall -Wunused -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-prototypes -fno-common -I/home/pvice$
/home/pvicente/install/hdf-4.2.9/lib/libdf.a(dfjpeg.o): In function `DFCIjpeg':
dfjpeg.c:(.text+0x306): undefined reference to `jpeg_std_error'
hhmm, HDF4 is missing jpeg
it's been a while since I built HDF4 , how can I disable jpeg from the HDF4 configure ?
--help says
--with-jpeg=DIR Use jpeg library [default=yes]
maybe configure of netCDF should allow for the non-presence of jpeg ?
thanks
Pedro
···
------------
pvicente@uci.edu
Department of Earth System Science
3200 Croul Hall
University of California, Irvine
Irvine, CA 92697-3100