Hi! I'm building this project on my Mac OS X system. I downloaded "library.zip" file and got the caffe built successfully. However, when I make the project, some linking issues occurred:
"
==== Building TerrainRL (debug64) ====
Linking TerrainRL
Undefined symbols for architecture x86_64:
"caffe::Net::Net(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, caffe::Phase, caffe::Net const)", referenced from:
cNeuralNet::cCaffeNetWrapper::cCaffeNetWrapper(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&, caffe::Phase) in NeuralNet.o
"caffe::Solver::Solver(caffe::SolverParameter const&, caffe::Solver const)", referenced from:
caffe::SGDSolver::SGDSolver(caffe::SolverParameter const&) in NNSolver.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: [TerrainRL] Error 1
make: [TerrainRL] Error 2
"
However, in the makefile, I have correctly set the path. To add: the "make test" of caffe also failed because of linking issues like this.
Could you help me with this problem?
it looks like it's having trouble finding the definition for caffe::Phase. Maybe take a look at the caffe source and see if it is properly defined somewhere?
Hi! I'm building this project on my Mac OS X system. I downloaded "library.zip" file and got the caffe built successfully. However, when I make the project, some linking issues occurred:
" ==== Building TerrainRL (debug64) ==== Linking TerrainRL Undefined symbols for architecture x86_64: "caffe::Net::Net(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, caffe::Phase, caffe::Net const)", referenced from:
cNeuralNet::cCaffeNetWrapper::cCaffeNetWrapper(std::1::basic_string<char, std::__1::char_traits, std:: 1::allocator > const&, caffe::Phase) in NeuralNet.o
"caffe::Solver::Solver(caffe::SolverParameter const&, caffe::Solver const )", referenced from:
caffe::SGDSolver::SGDSolver(caffe::SolverParameter const&) in NNSolver.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: [TerrainRL] Error 1
make: [TerrainRL] Error 2
"
However, in the makefile, I have correctly set the path. To add: the "make test" of caffe also failed because of linking issues like this. Could you help me with this problem?