参考,https://github.com/bearpaw/Install-OpenCV/blob/master/Ubuntu/2.4/opencv2_4_9.sh,傻瓜式安装opencv2版本
使用命令:sudo apt-get install libsnappy-dev,安装该库
安装好该库后,回到caffe根目录下,make clean,后再次进行make(一定进行make clean)
又报了新的错误,继续补坑
参考https://blog.csdn.net/isuccess88/article/details/70165726
参考https://github.com/BVLC/caffe/issues/2348#issuecomment-95156848,make clean,然后创建build文件夹,使用cmake ..
最终我参考了caffe官网 ,跑通了caffe(最终没有在caffe目录下直接make 因为总是报错)
mkdir build
cd build
cmake ..
make all
make install
make runtest
下一步进行编译pycaffe,在当前caffe根目录的python环境,导入import caffe出错
raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: No module named _tkinter, please install the python-tk package
采用命令:sudo apt-get install python-tk