编译caffe的MATLAB接口出问题

MEX matlab/+caffe/private/caffe_.cpp
使用 'g++' 编译。
/tmp/mex_6326169047906_4911/caffe_.o:在函数‘net_copy_from(int, mxArray_tag**, int, mxArray_tag const**)’中:
caffe_.cpp:(.text+0x1621):对‘caffe::Net<float>::CopyTrainedLayersFrom(std::string)’未定义的引用
/tmp/mex_6326169047906_4911/caffe_.o:在函数‘get_net(int, mxArray_tag**, int, mxArray_tag const**)’中:
caffe_.cpp:(.text+0x17cf):对‘caffe::Net<float>::Net(std::string const&, caffe::Phase, int, std::vector<std::string, std::allocator<std::string> > const*, caffe::Net<float> const*)’未定义的引用
/tmp/mex_6326169047906_4911/caffe_.o:在函数‘get_solver(int, mxArray_tag**, int, mxArray_tag const**)’中:
caffe_.cpp:(.text+0x336b):对‘caffe::ReadSolverParamsFromTextFileOrDie(std::string const&, caffe::SolverParameter*)’未定义的引用
/tmp/mex_6326169047906_4911/caffe_.o:在函数‘std::string* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)’中:
caffe_.cpp:(.text._ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc]+0x42):对‘google::base::CheckOpMessageBuilder::NewString()’未定义的引用
/tmp/mex_6326169047906_4911/caffe_.o:在函数‘std::string* google::MakeCheckOpString<unsigned long, int>(unsigned long const&, int const&, char const*)’中:
caffe_.cpp:(.text._ZN6google17MakeCheckOpStringImiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringImiEEPSsRKT_RKT0_PKc]+0x42):对‘google::base::CheckOpMessageBuilder::NewString()’未定义的引用
collect2: error: ld returned 1 exit status

Makefile:511: recipe for target 'matlab/+caffe/private/caffe_.mexa64' failed
make: *** [matlab/+caffe/private/caffe_.mexa64] Error 255
已邀请:

要回复问题请先登录注册