acimpoeru / opencurrent

Automatically exported from code.google.com/p/opencurrent
0 stars 0 forks source link

Stuck at the make step.(could not complie the source code.) #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have finish generating the codes using CMake but stuck at using make to
compile the code:
Here is the errors I met.
[cch2000@chimerasub01 ~]$ cd cmake-2.6.4-Linux-i386/bin/
[cch2000@chimerasub01 bin]$ make
[  7%] Built target ocuutil
[ 30%] Built target ocustorage
[ 63%] Built target ocuequation
make[2]: *** No rule to make target `/vnodehomes/cch2000/lib/libnetcdf.so',
needed by `apps/cubicrayleigh'.  Stop.
make[1]: *** [apps/CMakeFiles/cubicrayleigh.dir/all] Error 2
make: *** [all] Error 2
I download the NetCDF library but no "libnetcdf.so" is there. I wonder if
anybody to help me find where the problem is. Thanks and have a good day.

Original issue reported on code.google.com by cch2...@gmail.com on 9 Nov 2009 at 8:38

GoogleCodeExporter commented 8 years ago
Did you hardcode a path to the libnetcdf.so file in the System.cmake file?

e.g., something like:
SET(NetCDF_LIBRARY "/usr/local/lib/libnetcdf.so")

Otherwise, CMake should have reported an error that it could not find this 
library.

In any case, you need to build the netcfd library and then install it in a 
location
so that CMake can find it (or hardcode a pointer to the .so directory and 
header files).

Original comment by jcohen.p...@gmail.com on 9 Nov 2009 at 8:54

GoogleCodeExporter commented 8 years ago
I do hardcode the directory. I use netcdf4.0.1.I found no libnetcdf.so there. 
That is
my problem. Many thanks for the quick reply.

Original comment by cch2...@gmail.com on 9 Nov 2009 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by jcohen.p...@gmail.com on 15 Dec 2009 at 6:04