本人编译如下版本caffe后,记录下需要注意(修改)Makefile.config的选项
系统:ubuntu 14.04
CUDA:CUDA7.5
Python:Python2.7
仅支持CPU
cat Makefile.config
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# 是否使用cudnn,默认不使用
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
# 是否仅支持cup,注释后会编译gpu部分,因人而异,我自己学习支持cpu就好
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
# 选择支持库,可以先按默认都不选,包括下面对opencv,leveldb,lmdb库的选项都可以注释
# USE_OPENCV := 0
# USE_LEVELDB := 0
# USE_LMDB := 0
# uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
# You should not set this flag if you will be reading LMDBs with any
# possibility of simultaneous read and write
# ALLOW_LMDB_NOLOCK := 1
# Uncomment if you're using OpenCV 3
# OPENCV_VERSION := 3
# 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++
# 可选g++版本,如果编译报错因g++库问题,可以尝试换个g++版本,比如曾经报错然后试过g++-5.x,g++-4.x等
CUSTOM_CXX := g++
# CUDA directory contains bin/ and lib/ directories that we need.
# cuda安装命令,其实使用NVADIA gpu才会用到cuda,但是可以使用sudo apt-get install nvidia-cuda-toolkit
# 安装后,which cuda,添加路径编译
CUDA