You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the following, I can build the main exe, but I cannot build the shared lib, these are the steps:
export OpenMP_ROOT=$(brew --prefix)/opt/libomp
export NetCDF_ROOT=$(brew --prefix)/opt/netcdf
mkdir build && cd build
cmake ..
make wgrib2_exe
This compiles and wgrib2/wgrib2 exists
Then I try the following:
make wgrib2_lib
snip
[ 29%] Building C object wgrib2/CMakeFiles/wgrib2_lib.dir/Config.c.o
/wgrib2/wgrib2/Config.c:14:10: fatal error: 'netcdf.h' file not found
#include <netcdf.h>
^~~~~~~~~~
1 error generated.
Hello....
With the following, I can build the main exe, but I cannot build the shared lib, these are the steps:
This compiles and
wgrib2/wgrib2
existsThen I try the following:
Only change to my main
CMakeLists.txt
is:How can I resolve this?
Thanks in advance for any help.
The text was updated successfully, but these errors were encountered: