Arch linux build caffe错误

时间:2018-01-17 18:20:58

标签: linux makefile caffe archlinux

我正在尝试用这个回购来构建caffe:caffe-textmaps

但是在我休息完每一步并安装了我需要的所有内容后,我会收到以下错误消息:

    CXX/LD -o .build_release/tools/caffe.bin
.build_release/tools/caffe.o: In function `test()':
caffe.cpp:(.text+0x3bc): undefined reference to `caffe::Caffe::singleton_'
caffe.cpp:(.text+0x3ee): undefined reference to `caffe::Net<float>::Net(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, caffe::Phase)'
caffe.cpp:(.text+0x150b): undefined reference to `caffe::Caffe::singleton_'
.build_release/tools/caffe.o: In function `train()':
caffe.cpp:(.text+0x218a): undefined reference to `caffe::Caffe::singleton_'
caffe.cpp:(.text+0x231e): undefined reference to `caffe::Caffe::singleton_'
.build_release/tools/caffe.o: In function `time()':
caffe.cpp:(.text+0x2871): undefined reference to `caffe::Caffe::singleton_'
caffe.cpp:(.text+0x28a4): undefined reference to `caffe::Net<float>::Net(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, caffe::Phase)'
caffe.cpp:(.text+0x2cfd): undefined reference to `void caffe::caffe_gpu_dot<float>(int, float const*, float const*, float*)'
caffe.cpp:(.text+0x3cdf): undefined reference to `caffe::Caffe::singleton_'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe9SGDSolverIfEE[_ZTVN5caffe9SGDSolverIfEE]+0x30): undefined reference to `caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe9SGDSolverIfEE[_ZTVN5caffe9SGDSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe14NesterovSolverIfEE[_ZTVN5caffe14NesterovSolverIfEE]+0x30): undefined reference to `caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe14NesterovSolverIfEE[_ZTVN5caffe14NesterovSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe13AdaGradSolverIfEE[_ZTVN5caffe13AdaGradSolverIfEE]+0x30): undefined reference to `caffe::SGDSolver<float>::SnapshotSolverState(caffe::SolverState*)'
.build_release/tools/caffe.o:(.data.rel.ro._ZTVN5caffe13AdaGradSolverIfEE[_ZTVN5caffe13AdaGradSolverIfEE]+0x38): undefined reference to `caffe::SGDSolver<float>::RestoreSolverState(caffe::SolverState const&)'
collect2: error: ld returned 1 exit status
make: *** [Makefile:562: .build_release/tools/caffe.bin] Error 1

你们有人可以给我一些建议我该如何解决这个问题?

0 个答案:

没有答案