[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #XZO-926332]: (No Subject)
- Subject: [netCDF #XZO-926332]: (No Subject)
- Date: Wed, 23 Jul 2008 06:58:10 -0600
> Hi Russ
>
> Thanks for checking.
>
> So far I have not been successful.
>
> 1. Configure without options:
> -----------------------------
>
> configure --prefix=/home/dixon/opt
Howdy Mike!
You need HDF5 1.8.1 and zlib to be installed first, and then you need to use
the --enable-netcdf-4 and --with-hdf5= options to netCDF configure. See the
instructions here:
http://www.unidata.ucar.edu/software/netcdf/netcdf-4/newdocs/netcdf-install/Quick-Instructions.html
Otherwise you get the netCDF library without HDF5 support - essentially the
same as the 3.6.3 release.
>
> I get a link-time problem with my app, related to unresolved externals
> for nc_inq_var_deflate and nc_def_var_deflate.
>
> g++ -g -o Mdv2NetCDF \
> Params.o Args.o Main.o Mdv2NetCDF.o
> -L/home/dixon/cvs/lib -L/home/dixon/cvs/lib -L/home/dixon/opt/lib
> -L/usr/local/netcdf4/lib -ldsdata -lMdv -leuclid -lSpdb -ldsserver
> -ldidss -lrapformats -ltoolsa -ldataport -lNcfMdv -leuclid -ltdrp -lm
> -lnetcdf_c++ -lnetcdf -lhdf5_hl -lhdf5 -lz
>
> /home/dixon/cvs/lib/libNcfMdv.a(FieldData.o): In function
> `FieldData::_setCompression(NcFile*, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&)':
>
> FieldData.cc:421: undefined reference to `nc_inq_var_deflate'
> FieldData.cc:426: undefined reference to `nc_def_var_deflate'
I surmise you are using the C API from some C++ code? This will work once you
rebuild netCDF with --enable-netcdf-4.
>
> 2. Configure with --enable-netcdf-4
> ------------------------------------
>
> configure --prefix=/home/dixon/opt --enable-netcdf-4
>
> I get a compile-time problem with the library:
>
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../fortran -I./include
> -g -O2 -MT v2i.lo -MD -MP -MF .deps/v2i.Tpo -c v2i.c -o v2i.o
> /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -L./lib -o
> libnetcdf2.la v2i.lo
>
> ../libtool: line 4419: cd: ./lib: No such file or directory
> libtool: link: cannot determine absolute directory name of `./lib'
You also need the --with-hdf5= option to tell the configure script (and the
makefiles) where to find the HDF5 library.
>
> 3. Configure with --enable-cxx-4
> ---------------------------------
>
> configure --prefix=/home/dixon/opt --enable-cxx-4
>
> I get the same compile-time problem:
>
> /bin/sh ../libtool --tag=CXX --mode=link c++ -g -O2 -L./lib
> -version-info 1:0:0 -o libnetcdf_c++4.la -rpath /home/dixon/opt/lib
> ncatt.lo ncdim.lo ncexception.lo ncfile.lo ncgroup.lo ncvar.lo ncvalues.lo
> ../libtool: line 4419: cd: ./lib: No such file or directory
> libtool: link: cannot determine absolute directory name of `./lib'
>
>
Same answer.
But the cxx4 API is very incomplete and untested. It is experimental. If you
want to use it, count on having to debug and improve it yourself. We hope to
get the cxx4 API ready for the 4.2 release.
> So, I am not sure how to proceed.
>
> What I am looking for is full netCDF4 support, along with HDF5
> compression. If you could let me know which configure options to try, I
> would be grateful.
>
> Thanks for your help
>
> Mike
>
>
Let me know if the documentation link above doesn't help.
Thanks,
Ed
Ticket Details
===================
Ticket ID: XZO-926332
Department: Support netCDF
Priority: Normal
Status: Closed