首先你要安装
caffe
https://mp.csdn.net/mdeditor/87885956#
matlab2017b
https://blog.csdn.net/qq_32892383/article/details/79670871
1.修改 Makefile.config 文件内容
打开文件
sudo gedit Makefile.config
将
# MATLAB_DIR := /usr/local
修改为(路径为你安装的matlab路径,默认如下)
MATLAB_DIR := /usr/local/MATLAB/R2017b
2.编译接口
make matcaffe
3.测试接口
make mattest
4.运行matlab代码时可能出现的报错:
Missing symbol '_ZNSt7__cxx1112basic_stringIwSt11char_traitsIwESaIwEE9_M_createERmm' required by
'/usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0->/datadrive/caffe/matlab/+caffe/private/