This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hello Ryan, NetCDF-C requires hdf5 1.8.10 or later; the version you're building with should be fine. What version of cmake are you using? Also, how are you invoking it? For example, when I build with cmake on Windows, I'll invoke it as follows: cmake <path to netcdf-c source> -DCMAKE_PREFIX_PATH=c:\share -DHDF5_DIR=c:\share\cmake\hdf5 where `c:\share` is where I've installed HDF5. Also, are you specifying HDF5_DIR? If you can tell me how you're invoking CMake, I will do my best to help you get it working; the versions you're using should not be the problem. Thanks, have a great day, -Ward > Hi, > > I am attempting to compile the latest version of netcdf (4.3.3.1) on > windows. I am compiling against the latest version hdf5. I have the > latest version of hdf5 1.8.15-patch1. > > I am using cmake for the compile, and netcdf is complaining that the > version of hdf5 I have was "not accepted". > > CMake Error at CMakeLists.txt:448 (FIND_PACKAGE): > Could not find a configuration file for package "HDF5" that is compatible > with requested version "". > > The following configuration files were considered but not accepted: > > C:/xxxx/stage/Library/cmake/hdf5-config.cmake, version: 1.8.15 (64bit) > C:/xxxx/stage/Library/cmake/hdf5-config.cmake, version: 1.8.15 (64bit) > > -- Configuring incomplete, errors occurred! > > With what version of hdf5 does netcdf work? > > Please help. > > - Ryan > > Ticket Details =================== Ticket ID: TLH-412965 Department: Support netCDF Priority: Normal Status: Closed