我在/ usr / local / hdf5中安装了hdf5。但是,当我尝试安装另一个库,caffe时,make文件似乎无法找到hdf5。我该怎么解决这个问题?我正在使用mac。
(Zahraa1)mass-MacBook-Pro:caffe mas$ make pycaffe -j8
CXX src/caffe/layers/hdf5_data_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
CXX src/caffe/layers/spp_layer.cpp
CXX src/caffe/layers/tanh_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/tile_layer.cpp
CXX src/caffe/layers/window_data_layer.cpp
CXX src/caffe/net.cpp
src/caffe/layers/hdf5_output_layer.cpp:3:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
^
1 error generated.
make: *** [.build_release/src/caffe/layers/hdf5_output_layer.o] Error 1
make: *** Waiting for unfinished jobs....
src/caffe/layers/hdf5_data_layer.cpp:13:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
^
1 error generated.
make: *** [.build_release/src/caffe/layers/hdf5_data_layer.o] Error 1
src/caffe/net.cpp:8:10: fatal error: 'hdf5.h' file not found
#include "hdf5.h"
^
1 error generated.
make: *** [.build_release/src/caffe/net.o] Error 1
答案 0 :(得分:1)
您应该在include路径中添加带hdfs5.h的目录。根据你的Makefile(INCLUDEPATH,CXXFLAGS等),有不同的方法可以做到这一点。