关于 can not find hdf5.h(hdf5:没有那个文件或目录)的解决方法

来源:互联网 发布:poi设置数据有效性 编辑:程序博客网 时间:2024/06/05 04:46

在caffe根目录下的Makefile.config文件中找到:

      

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
在后面添加
/usr/include/hdf5/serial/
即:(注意空格)
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/




在Makefile文件中找到:

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


阅读全文
0 0