[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TLH-412965]: Compiling netcdf on windows

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 

where `c:\share` is where I've installed HDF5.  Also, are you specifying 

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,


> Hi,
> I am attempting to compile the latest version of netcdf ( 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

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.