Closed mahalel closed 3 years ago
Try not including -DUSE_NETCDF4
, make clean
, make
.
Just a first idea, but as stated throughout the project here, we're unable to provide support.
Please check whether the LIBS
entry in your Makefile.inc
includes -lnetcdf
. You need to list all the external libraries that LPJmL should be linked to. If you want to activate JSON support as well, you also need to add -ljson-c
to the LIBS
entry.
Thank you, looks like adding the -lnetcdf to the LIBS entry did the trick and package compiled successfully. Appreciate it!
Hi, I am trying to compile LPJmL with netCDF support as per the INSTALL document.
I have set the following flags in my Makefile.inc
LPJFLAGS= -DUSE_NETCDF -DUSE_NETCDF4 -DSAFE -DUSE_RAND48 -DWITH_FPE # -DDAILY_ESTABLISHMENT
then I run
make all
and I get a bunch of errors:This is on Ubuntu 18.04, I am have also installed the libnetcdf-dev and libnetcdff-dev libraries but I have no luck. Hoping you can point me in the right direction, I seem to be missing a step in the install.
Thank you