I turned off NETCDF4 support and it compiles ok
It seems that cmake unable to find netcdf4 libraries
Thanks for the quick reply! Where can I set the flag to disable netcdf?
I solved the above issue by compiling and installing a current version of
netCDF and setting the cmake build parameters accordingly. Now I get the
following error during the build process:
...
Scanning dependencies of target incompress
[ 65%] Building CXX object apps/CMakeFiles/incompress.dir/incompress.cpp.o
Linking CXX executable incompress
../ocustorage/libocustorage.a(gridnetcdf.cpp.o): In function
`ocu::NetCDFGrid3DWriter::define_variable(char const*, int,
ocu::GridStaggering, float, float, float)':
gridnetcdf.cpp:(.text+0x14cb): undefined reference to `nc_def_var_deflate'
../ocustorage/libocustorage.a(gridnetcdf.cpp.o): In function
`ocu::NetCDFGrid3DReader::open(char const*)':
gridnetcdf.cpp:(.text+0x23b3): undefined reference to `nc_inq_varids'
gridnetcdf.cpp:(.text+0x2416): undefined reference to `nc_inq_varids'
collect2: ld returned 1 exit status
You can set the variable
OCU_NETCDF4_SUPPORT_ENABLED
to
FALSE
and it will disable all NetCDF support.
There is something messed up with the apt-get version of netcdf4. As far
as I can tell, it is not actually the version 4 api, which is what causes
this issue.
The solution is to replace netcdf support with something like HDF5, but I
haven't had time to do that yet.
-Jon
All right, just found the option in System.cmake. The build process now
finished successfully.
Thanks
Marcel
Sorry, I meant to say that setting
OCU_NETCDF_ENABLED
to
FALSE
disables all netcdf support.
You can also tell OpenCurrent to use the version 3.6 API, which should
work, via the variable I (incorrectly) provided above:
OCU_NETCDF4_SUPPORT_ENABLED
to
FALSE
-Jon
Comment #7 on issue 11 by jcohen.p...@gmail.com: 31% make error
http://code.google.com/p/opencurrent/issues/detail?id=11
(No comment was entered for this change.)