Caffe installation on Ubuntu 16.10

141 views
Skip to first unread message

Taha Alhersh

unread,
Mar 29, 2017, 12:34:52 PM3/29/17
to Caffe Users
Hello,

I am trying to install caffe on Ubuntu 16.10, I have installed all the prerequisites and modified Makefile.config accordingly. I am downloading in to work only CPU since I don't have a GPU card on my laptop. I am getting the following message:

CXX src/caffe/solvers/adadelta_solver.cpp
CXX src/caffe/net.cpp
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc5
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc5' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc5] Error 1


=======================

The Makefile.config updates are as follow:

# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1

# Uncomment if you're using OpenCV 3
OPENCV_VERSION := 3

# 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

# We need to be able to find libpythonX.X.so or .dylib.
PYTHON_LIB := /usr/lib/python2.7/config-x86_64-linux-gnu

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /home/taha/opencv/build/lib /usr/lib/atlas-base /usr/lib/x86_64-linux-gnu


Anyone can suggest a solution for this issue.

Thanks

Reply all
Reply to author
Forward
0 new messages