1. 出現(xiàn)需要C++11
報(bào)錯(cuò):c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.
可以在Makefile文件中 添加-std=c++11解決
CXXFLAGS += -MMD -MP -std=c++11
2.? caffe 編譯中出現(xiàn)的錯(cuò)誤——fatal error: hdf5.h: 沒有那個(gè)文件或目錄
參考
https://blog.csdn.net/hongye000000/article/details/51043913
Step 1
在Makefile.config文件的第85行,添加/usr/include/hdf5/serial/?到?INCLUDE_DIRS,也就是把下面第一行代碼改為第二行代碼练般。
INCLUDE_DIRS:=$(PYTHON_INCLUDE) /usr/local/include
INCLUDE_DIRS:=$(PYTHON_INCLUDE) /usr/local/include/usr/include/hdf5/serial/
在Makefile文件的第173行座掘,把?hdf5_hl 和hdf5修改為hdf5_serial_hl?和?hdf5_serial专执,也就是把下面第一行代碼改為第二行代碼途事。
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial