src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory

编译caffe的时候遇见了这个问题:

CXX src/caffe/layers/power_layer.cpp
CXX src/caffe/layers/spp_layer.cpp
CXX src/caffe/layers/hdf5_data_layer.cpp
src/caffe/layers/hdf5_data_layer.cpp:13:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
Makefile:582: recipe for target '.build_release/src/caffe/layers/hdf5_data_layer.o' failed
make: *** [.build_release/src/caffe/layers/hdf5_data_layer.o] Error 1
make: *** Waiting for unfinished jobs....

解决也很简单,缺什么补什么:

sudo apt-get install libhdf5-serial-dev

参考文献

[1].install HDF5 and pytables in ubuntu.https://stackoverflow.com/questions/31719451/install-hdf5-and-pytables-in-ubuntu

你可能感兴趣的:(caffe)