src/caffe/layers/hdf5_output_layer.cpp:3:18: fatal error: hdf5.h: 沒有那個文件或目錄

查找文件
locate hdf5.h

修改Makefile.config文件,在下面的語句后面增加紅色部分
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/
Makefile中修改為
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial
清理編譯
make clean
重新編譯,八個線程
make -j8
