1. 程式人生 > >caffe的matlab介面配置

caffe的matlab介面配置

第一次配置matlab介面遇到的錯誤,記錄一下:

[email protected]:~/Downloads/caffe-master$ make matcaffe -j32
make: /usr/local/MATLAB/R2014a/bin/mexext: Command not found
MEX matlab/+caffe/private/caffe_.cpp
/bin/sh: 1: /usr/local/MATLAB/R2014a/bin/mex: not found
make: *** [matlab/+caffe/private/caffe_.] Error 127

解決方法:

1:在Makefile中的CXXFLAGS += -MMD -MP後面新增
CXXFLAGS += -std=c++11,但是始終無法解決

2:gcc降版本至gcc4.7,再make clean,make all -j16即可