Installing caffe in Ubuntu

sudo apt-get install -y --no-install-recommends libboost-all-dev

 

sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev \

libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler

 

git clone https://github.com/BVLC/caffe

cd caffe

cp Makefile.config.example  Makefile.config

 

sudo pip install scikit-image protobuf

cd python

for req in $(cat requirements.txt); do sudo pip install $req; done

 

modify the Makefile.config. Uncomment the line CPU_ONLY := 1, and the line OPENCV_VERSION := 3.

 

make all

 

problem:

In file included from src/caffe/solvers/sgd_solver.cpp:5:0:
./include/caffe/util/hdf5.hpp:7:18: fatal error: hdf5.h: No such file or directory


In Makefile.config file:

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

 

In Makefile:

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值