Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Privacywonk opened this issue Dec 27, 2019 · 1 comment
Open

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

Privacywonk opened this issue Dec 27, 2019 · 1 comment

Comments

@Privacywonk
Copy link

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
Copy link
Owner

jllodra commented Jan 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants