编译caffe出现 hdf5.h:没有那个文件或目录

ubuntu16.04
抛出如下错误
root@dinx-MS-7817:/home/dinx/caffe# make all
CXX src/caffe/layers/hdf5_output_layer.cpp
src/caffe/layers/hdf5_output_layer.cpp:3:18: fatal error: hdf5.h: 没有那个文件或目录
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/layers/hdf5_output_layer.o' failed
make: *** [.build_release/src/caffe/layers/hdf5_output_layer.o] Error 1






 
已邀请:

HmyBmny - 深度学习 小学生

赞同来自: Care_Shaw goodpp

1. 安装hdf5:sudo apt install libhdf5-serial-dev
2. 更改Makefile:INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial

joshua_1988 - https://joshua19881228.github.io/

赞同来自:

不知道楼主有没有装libhdf5-serial-dev这个包

smu_wangbo - 误入人工智能进行深度学习的电气小硕

赞同来自:

安装hdf5

要回复问题请先登录注册