1. 安装所需软件
sudo apt-get install cmake git aptitude screen g++ libboost-all-dev libgflags-dev libgoogle-glog-dev protobuf-compiler libprotobuf-dev bc libblas-dev libatlas-dev libhdf5-dev libleveldb-dev liblmdb-dev libsnappy-dev libatlas-base-dev python-numpy libgflags-dev libgoogle-glog-dev python-skimage python-protobuf python-pandas libopencv4tegra-python
2. 下载caffe
git clone https://github.com/BVLC/caffe.git
3. 修改Makefile.config 文件
4. 编译
make -j4
或者 mkdir build && cd build && cmake .. && make -j4