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

在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


你可能感兴趣的:(深度学习)