ncdump-json icon indicating copy to clipboard operation
ncdump-json copied to clipboard

FreeBSD - cmake, netcdf.h, and libraries

Open Privacywonk opened this issue 6 years ago • 1 comments

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")

Privacywonk avatar Dec 27 '19 01:12 Privacywonk

Thank you for sharing. I added a link to this issue in the readme file to help other FreeBSD users.

jllodra avatar Jan 07 '20 19:01 jllodra