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

compilation notes on a linux system #20

Open
rgknox opened this issue Jan 25, 2025 · 0 comments
Open

compilation notes on a linux system #20

rgknox opened this issue Jan 25, 2025 · 0 comments

Comments

@rgknox
Copy link
Contributor

rgknox commented Jan 25, 2025

For some reason cprnc did not readily build on my system. Also, I could not figure out how to pass either the correct flags to define netcdf, or the environment variables to define netcdf.

Ultimately, I just hacked into the file cmake/FindNetCDF.cmake and hard-coded in the lines for execute process that calls the nc-config and the nf-config where I have netcdf installed.

For instance to force it to define the netcdf fortran include dirs, I just added the path to my nf-config, like so:

 execute_process(COMMAND /home/rgknox/local/netcdf-4.9.0/bin/nf-config --includedir
                    OUTPUT_VARIABLE DEFAULT_Fortran_INCLUDE_DIR
                    OUTPUT_STRIP_TRAILING_WHITESPACE)

This is probably a really silly way to get it to find the netcdf includes and libs, but I tried many environment variable combinations and just couldn't find anything that worked.

Also, like other issue creators have mentioned, yes, you do have to run "make" after you run "cmake".

@rgknox rgknox changed the title compilation notes on a random linux system compilation notes on a linux system Jan 27, 2025
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

1 participant