今天编译deeplabv2相关代码时,发现它用到了matdio,如下是matdio编译过程。
- 下载matio (http://sourceforge.net/projects/matio/)
由于下载的是.7z压缩格式,所以下载7z解压工具:
sudo apt install p7zip-full
- 解压matio
7z x 'xxx1/matio-1.5.16.7z' -r -o'xxx2/桌面/'
xxx1和xxx2根据你自己的路径设置,前面是matio的路径,后面的是解压后的路径,这里注意-o后面没有空格。 - 编译
cd matio-1.5.16./configure
make
make check
make install
如果提醒./configure没有权限,记得给它重新设置权限:
chmod +x configure
- 在caffe的makefile中加上
LIBRARIES += glog gflags protobuf boost_system m hdf5_hl hdf5
LIBRARIES += matio