Memo‎ > ‎

Build NetCDF with the support of NetCDF4 format

posted Nov 9, 2012, 4:47 AM by Teng-Yok Lee   [ updated Jan 31, 2013, 5:03 AM ]
As the configure of netcdf has no option to specify the path of HDF5, this is the command line suggested by the doc INSTALL in netcdf4:

CPPFLAGS=-I<include_path_of_hdf5> LDFLAGS=-L<lib_path_of_hdf5> ./configure

If HDF5 is built as static linking library, the configure of NetCDF cannot find the library of HDF5. This should be not an issue in most cases. Nevertheless, supercomputers (e.g  SURVEYOR in ANL and HOPPER in NERSC) do not support shared lib, and I am not sure how to build a static version of NetCDF yet.

For Windows, the built installers can be downloaded from here: (For Visual Studio 2010 x64 version, please follow my instructions here: