已經安裝好了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 成功。