Skip to content

compilation notes on a linux system #20

@rgknox

Description

@rgknox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions