xbpeng / DeepTerrainRL

terrain-adaptive locomotion skills using deep reinforcement learning
GNU Lesser General Public License v3.0
432 stars 129 forks source link

build with caffe in library.zip failed #39

Closed MiaoDragon closed 6 years ago

MiaoDragon commented 6 years ago

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?

xbpeng commented 6 years ago

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?