Hello,
I've been building netCDF with HDF5 (v1.10.6) for a while but decided to upgrade to v1.12.0 for no particular reason other than simply having a more recent version. The compilations of HDF5 for both versions are with autotools and include the flag --with-zlib. However, the new compilation (from source) of netCDF (with cmake) returns the error:
...
-- Found HDF5: /opt/hdf5/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.12.0") found components: C HL
-- Found HDF5 libraries version 1.12.0
-- Using HDF5 include dir: /opt/hdf5/include
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for H5Pget_fapl_mpio in hdf5
-- Looking for H5Pget_fapl_mpio in hdf5 - not found
-- Looking for H5Pset_all_coll_metadata_ops in hdf5
-- Looking for H5Pset_all_coll_metadata_ops in hdf5 - not found
-- Looking for H5Z_SZIP in hdf5
-- Looking for H5Z_SZIP in hdf5 - not found
-- Looking for H5Pset_libver_bounds in hdf5
-- Looking for H5Pset_libver_bounds in hdf5 - not found
-- Looking for H5free_memory in hdf5
-- Looking for H5free_memory in hdf5 - not found
-- Looking for H5allocate_memory in hdf5
-- Looking for H5allocate_memory in hdf5 - not found
-- Looking for H5resize_memory in hdf5
-- Looking for H5resize_memory in hdf5 - not found
-- Looking for H5Dread_chunk in hdf5
-- Looking for H5Dread_chunk in hdf5 - not found
-- Performing Test HAVE_HDF5_ZLIB
-- Performing Test HAVE_HDF5_ZLIB - Failed
CMake Error at CMakeLists.txt:778 (MESSAGE):
HDF5 was built without zlib. Rebuild HDF5 with zlib.
I have cleaned up and recompiled, but it always spits out the same error. Other than the HDF5 libraries having different numbers, I haven't noticed any outstanding difference. Thanks.
Hello,
I've been building netCDF with HDF5 (v1.10.6) for a while but decided to upgrade to v1.12.0 for no particular reason other than simply having a more recent version. The compilations of HDF5 for both versions are with autotools and include the flag --with-zlib. However, the new compilation (from source) of netCDF (with cmake) returns the error:
I have cleaned up and recompiled, but it always spits out the same error. Other than the HDF5 libraries having different numbers, I haven't noticed any outstanding difference. Thanks.