xbpeng / DeepTerrainRL

terrain-adaptive locomotion skills using deep reinforcement learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build with caffe in library.zip failed

MiaoDragon opened this issue · comments

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?