Ubantu 16.4 caffe编译 遇到的坑整理

来源:互联网 发布:怎样找回以前淘宝店铺 编辑:程序博客网 时间:2024/06/03 14:12

1:error: hdf5.h: No such file or directory

    解决办法

Makefile.config文件添加/usr/include/hdf5/serial/INCLUDE_DIRS,也就是把下面第一行代码改为第二行代码。

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/


Makefile文件把 hdf5_hl 和hdf5修改为hdf5_serial_hlhdf5_serial,也就是把下面第一行代码改为第二行代码。

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial


mac 下编译caffe 要用openblas,config默认的那个apple在最新的系统已经不能用了。

0 0
原创粉丝点击