ncdump-json
ncdump-json copied to clipboard
FreeBSD - cmake, netcdf.h, and libraries
The current release (r14) will not build on FreeBSD 12.1.
The first error is that make cannot find netcdf.h. Once that issue was solved for, make was unable to link libraries.
After some experimenting...I found the following to work for me:
Modified the CMakeFileLists.txt to include: include_directories(/usr/local/include) FILE(GLOB Netcdf_LIBRARIES "/usr/local/lib/libnetcdf.so")
Thank you for sharing. I added a link to this issue in the readme file to help other FreeBSD users.