已经安装好了hdf5包,原因是编译时找不到库所在的路径。
解决:
找到系统中libhdf5和libhdf5_hl文件所在的路径,为/usr/lib/aarch64-linux-gnu/hdf5/serial,
修改caffe下Makefile.config文件如下:
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
修改为
# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/aarch64-linux-gnu/hdf5/serial
然后make 成功。