编译NetCDF
2020-03-28
The following packages are required to build netCDF-C using CMake.
-
netCDF-C Source Code
-
CMake version 2.8.12 or greater.
-
Optional Requirements:
- HDF5 Libraries for netCDF4/HDF5 support.
- libcurl for DAP support.
- PnetCDF libraries for parallel I/O support to classic netCDF files
If you have libraries installed in a custom directory, you may need to specify the CMAKE_PREFIX_PATH variable to tell cmake where the libraries are installed. For example:
$ cmake [Source Directory] -DCMAKE_PREFIX_PATH=~/
Building
The compiler can be executed directly with ‘make’ or the appropriate command for the configurator which was used.
$ make
Building can also be executed indirectly via cmake:
$ cmake –build [Build Directory]