jllodra / ncdump-json

Modified ncdump to output data in json format
85 stars 28 forks source link

FreeBSD - cmake, netcdf.h, and libraries #17

Open Privacywonk opened 4 years ago

Privacywonk commented 4 years ago

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

jllodra commented 4 years ago

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