~/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
Hdf5 files were first installed from repo with apt-get. I also build hdf5 from source with ./confifure make make install.hdf5.h itself can be found:$ locate hdf5.h
/home/jeanpat/App/OPENCVsource/opencv/modules/flann/include/opencv2/flann/hdf5.h
/usr/include/hdf5/serial/hdf5.h
/usr/include/opencv2/flann/hdf5.h
/usr/include/vtk-6.1/vtk_hdf5.h
/usr/local/include/opencv2/flann/hdf5.h
#include "/usr/include/hdf5/serial/hdf5.h"
//"hdf5.h"
//"/usr/include/hdf5"
pip install -r /path/to/caffe/python/requirements.txt
glog, gflags, protobuf, leveldb, snappy, hdf5, lmdb
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev
and:
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
I have rechecked according to your advice:
sudo pip install -r /path/to/caffe/python/requirements.txt
all was installed
Regarding Makefile.config, I have:
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (comment to build without cuDNN).
#USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# CUSTOM_CXX := g++
# CUDA directory contains bin/ and lib/ directories that we need.
#CUDA_DIR := /usr/local/cuda
# On Ubuntu 14.04, if cuda tools are installed via
# "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
CUDA_DIR := /usr
# CUDA architecture setting: going with all of them.
# For CUDA < 6.0, comment the *_50 lines for compatibility.
CUDA_ARCH := -gencode arch=compute_20,code=sm_20 \
-gencode arch=compute_20,code=sm_21 \
-gencode arch=compute_30,code=sm_30 \
-gencode arch=compute_35,code=sm_35 \
-gencode arch=compute_50,code=sm_50 \
-gencode arch=compute_50,code=compute_50
# BLAS choice:
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
BLAS := atlas
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
# BLAS_INCLUDE := /path/to/your/blas
# BLAS_LIB := /path/to/your/blas
# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
# MATLAB_DIR := /usr/local
# MATLAB_DIR := /Applications/MATLAB_R2012b.app
# NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/lib/python2.7/dist-packages/numpy/core/include \
/usr/local/lib/python2.7/dist-packages/numpy/core/include
$ make all
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:11: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
/usr/bin/ld: ne peut trouver -lhdf5_hl
/usr/bin/ld: ne peut trouver -lhdf5
collect2: error: ld returned 1 exit status
Makefile:506: recipe for target '.build_release/lib/libcaffe-nv.so.0.11.0' failed
make: *** [.build_release/lib/libcaffe-nv.so.0.11.0] Error 1
:/usr/lib/x86_64-linux-gnu/hdf5/serial$ ls -la
total 8
drwxr-xr-x 2 root root 4096 mai 30 15:40 .
drwxr-xr-x 5 root root 4096 mai 30 16:02 ..
lrwxrwxrwx 1 root root 31 nov. 3 2014 include -> ../../../../include/hdf5/serial
lrwxrwxrwx 1 root root 1 nov. 3 2014 lib -> .
lrwxrwxrwx 1 root root 22 nov. 3 2014 libhdf5.a -> ../../libhdf5_serial.a
lrwxrwxrwx 1 root root 19 nov. 3 2014 libhdf5_cpp.a -> ../../libhdf5_cpp.a
lrwxrwxrwx 1 root root 20 nov. 3 2014 libhdf5_cpp.so -> ../../libhdf5_cpp.so
lrwxrwxrwx 1 root root 30 nov. 3 2014 libhdf5_fortran.a -> ../../libhdf5_serial_fortran.a
lrwxrwxrwx 1 root root 31 nov. 3 2014 libhdf5_fortran.so -> ../../libhdf5_serial_fortran.so
lrwxrwxrwx 1 root root 25 nov. 3 2014 libhdf5_hl.a -> ../../libhdf5_serial_hl.a
lrwxrwxrwx 1 root root 22 nov. 3 2014 libhdf5_hl_cpp.a -> ../../libhdf5_hl_cpp.a
lrwxrwxrwx 1 root root 23 nov. 3 2014 libhdf5_hl_cpp.so -> ../../libhdf5_hl_cpp.so
lrwxrwxrwx 1 root root 32 nov. 3 2014 libhdf5hl_fortran.a -> ../../libhdf5_serialhl_fortran.a
lrwxrwxrwx 1 root root 33 nov. 3 2014 libhdf5hl_fortran.so -> ../../libhdf5_serialhl_fortran.so
lrwxrwxrwx 1 root root 26 nov. 3 2014 libhdf5_hl.so -> ../../libhdf5_serial_hl.so
lrwxrwxrwx 1 root root 29 nov. 3 2014 libhdf5.settings -> ../../libhdf5_serial.settings
lrwxrwxrwx 1 root root 23 nov. 3 2014 libhdf5.so -> ../../libhdf5_serial.so
jeanpat@jeanpat-WA50SHQ:/usr/lib/x86_64-linux-gnu/hdf5$ ls -la
total 288
drwxr-xr-x 5 root root 4096 mai 30 16:02 .
drwxr-xr-x 145 root root 274432 mai 28 22:16 ..
lrwxrwxrwx 1 root root 44 mai 30 16:02 hdf5.a -> /usr/lib/x86_64-linux-gnu/hdf5/serial/hdf5.a
lrwxrwxrwx 1 root root 47 mai 30 16:00 hdf5_hl.a -> /usr/lib/x86_64-linux-gnu/hdf5/serial/hdf5_hl.a
lrwxrwxrwx 1 root root 48 mai 30 16:01 hdf5_hl.so -> /usr/lib/x86_64-linux-gnu/hdf5/serial/hdf5_hl.so
lrwxrwxrwx 1 root root 19 mai 30 15:53 hdf5.so -> ./serial/libhdf5.so
drwxr-xr-x 2 root root 4096 mai 28 10:37 mpich
drwxr-xr-x 2 root root 4096 mai 28 10:37 openmpi
drwxr-xr-x 2 root root 4096 mai 30 15:40 serial
...