You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building netcdf-fortran (version 4.6.2-rc1) without enabling szip for hdf5 (version 1.14.5) and netcdf-c (version 4.9.3-rc1), but nc_def_var_szip is still searched for and when it is not found, the error here is thrown:
"If netCDF-C 4.7.4 is present but is built statically, you *must* specify all dependencies"
"by setting the LDFLAGS environmental variable.\n"
"Example:\n"
" $ export LDFLAGS=$(nc-config --libs)"
Do this line: CHECK_LIBRARY_EXISTS(${NETCDF_C_LIBRARY} nc_def_var_szip "" HAVE_DEF_VAR_SZIP)
and the block of code after need to be guarded with an if statement on whether szip is enabled? The trick of adding set(HAVE_DEF_VAR_SZIP TRUE) before if (NOT HAVE_DEF_VAR_SZIP) makes the installation work.
I am building netcdf-fortran (version 4.6.2-rc1) without enabling
szip
for hdf5 (version 1.14.5) and netcdf-c (version 4.9.3-rc1), butnc_def_var_szip
is still searched for and when it is not found, the error here is thrown:Do this line:
CHECK_LIBRARY_EXISTS(${NETCDF_C_LIBRARY} nc_def_var_szip "" HAVE_DEF_VAR_SZIP)
and the block of code after need to be guarded with an if statement on whether szip is enabled? The trick of adding
set(HAVE_DEF_VAR_SZIP TRUE)
beforeif (NOT HAVE_DEF_VAR_SZIP)
makes the installation work.To reproduce, this is how I am building HDF5:
This is how I am building NETCDF-C:
This is how I am building NETCDF-Fortran:
The text was updated successfully, but these errors were encountered: