Caffe 구축: hdf5.h를 확인하지 못했습니다.

Caffe 구축: hdf5.h를 확인하지 못했습니다.

헬로카페는 딥러닝을 위한 라이브러리입니다. Ubuntu 15.04에서 해당 라이브러리를 빌드하려고 하면 다음 메시지와 함께 컴파일이 실패합니다.

:~/App/caffe$ make all

PROTOC src/caffe/proto/caffe.proto
CXX .build_release/src/caffe/proto/caffe.pb.cc
CXX src/caffe/layer_factory.cpp
In file included from ./include/caffe/common_layers.hpp:10:0,
                 from ./include/caffe/vision_layers.hpp:10,
                 from src/caffe/layer_factory.cpp:6:
./include/caffe/data_layers.hpp:9:18: fatal error: hdf5.h: Aucun fichier ou dossier de ce type
 #include "hdf5.h"
                  ^
compilation terminated.
Makefile:512: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1

건물 실패는 우분투에만 국한된 것 같습니다. 다양한 종속성을 확인했습니다. 다른 해결 방법을 시도했습니다. Makefile.config에 직접 hdf5.h의 경로를 작성하고 소스에서 hdf5를 빌드하는 것입니다.

조언을 주셔서 감사합니다

답변1

설치하다libhdf5-dev

libhdf5에 패치를 추가하세요 Makefile.config.

예:INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/

관련 정보