转载:【caffe编译】 fatal error: hdf5.h: 没有那个文件或目录
问题如下:src/caffe/layers/hdf5_output_layer.cpp:3:18: fatal error: hdf5.h: 没有那个文件或目录
image修改Makefile.config文件:
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
--->
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
清理编译:
make clean
重新编译,八个线程:
make -j8
网友评论