我一直在尝试在Ubuntu 18.04上为单发物体检测器SSD SSD ob github构建代码。 我签出了代码,并尝试根据链接(Ubuntu installation)中的建议安装依赖项。
其中包括:
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
当我尝试按照说明构建代码时,出现此错误:
user:~/project/SSD/caffe$ make -j8
CXX src/caffe/layer_factory.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/parallel.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/layer.cpp
CXX src/caffe/net.cpp
CXX src/caffe/data_reader.cpp
src/caffe/net.cpp:8:10: fatal error: hdf5.h: No such file or directory
#include "hdf5.h"
^~~~~~~~
compilation terminated.
Makefile:575: recipe for target '.build_release/src/caffe/net.o' failed
make: *** [.build_release/src/caffe/net.o] Error 1
make: *** Waiting for unfinished jobs....
我认为通过安装libhdf5-serial-dev hdf5依赖关系已完成,但似乎出于某种原因还不够?
有什么帮助吗?
谢谢
阿明