caffe make 出错 boost重装了也没有用 求高手!支付宝发红包

sun@sunwin:/RMPE$ cp Makefile.config.example Makefile.config
sun@sunwin:/RMPE$ sudo make all -j4
[sudo] sun 的密码:
PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/blob.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/common.cpp
CXX src/caffe/solvers/nesterov_solver.cpp
In file included from /usr/local/include/boost/config.hpp:61:0,
from /usr/local/include/boost/thread/detail/platform.hpp:14,
from /usr/local/include/boost/thread/thread_only.hpp:12,
from /usr/local/include/boost/thread/thread.hpp:12,
from /usr/local/include/boost/thread.hpp:13,
from src/caffe/common.cpp:1:
/usr/local/include/boost/core/ignore_unused.hpp:17:19: error: ‘constexpr’ does not name a type
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused(Ts const& ...)
^
/usr/local/include/boost/core/ignore_unused.hpp:17:19: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/usr/local/include/boost/core/ignore_unused.hpp:21:19: error: ‘constexpr’ does not name a type
BOOST_FORCEINLINE BOOST_CXX14_CONSTEXPR void ignore_unused()
^
/usr/local/include/boost/core/ignore_unused.hpp:21:19: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
In file included from /usr/local/include/boost/thread/mutex.hpp:16:0,
from /usr/local/include/boost/thread/pthread/thread_data.hpp:13,

from src/caffe/common.cpp:1:

/usr/include/c++/5/bits/stl_pair.h:214:5: note: template argument deduction/substitution failed:
In file included from /usr/local/include/boost/type_index/stl_type_index.hpp:22:0,
from /usr/local/include/boost/type_index.hpp:29,
from /usr/local/include/boost/function/function_base.hpp:21,
from /usr/local/include/boost/function/detail/prologue.hpp:17,
from /usr/local/include/boost/function/function_template.hpp:13,
from /usr/local/include/boost/function/detail/maybe_include.hpp:13,
from /usr/local/include/boost/function/function0.hpp:11,
from /usr/local/include/boost/python/errors.hpp:13,
from /usr/local/include/boost/python/handle.hpp:11,
from /usr/local/include/boost/python/args_fwd.hpp:10,
from /usr/local/include/boost/python/args.hpp:10,
from /usr/local/include/boost/python.hpp:11,
from src/caffe/layer_factory.cpp:4:
/usr/local/include/boost/type_index/type_index_facade.hpp:191:25: note: ‘boost::typeindex::stl_type_index’ is not derived from ‘const std::pair<_T1, _T2>’
return Derived(lhs) == rhs;
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:237:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetTanHLayer(const caffe::LayerParameter&) [with Dtype = float]’:

src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = double]’:
src/caffe/layer_factory.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
src/caffe/layer_factory.cpp: In function ‘boost::shared_ptrcaffe::Layer caffe::GetConvolutionLayer(const caffe::LayerParameter&) [with Dtype = float]’:
src/caffe/layer_factory.cpp:71:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Makefile:575: recipe for target '.build_release/src/caffe/layer_factory.o' failed
make: *** [.build_release/src/caffe/layer_factory.o] Error 1
Steps to reproduce

If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
MY system configuration

Operating system: ubuntu16.04
CUDA version (if applicable):CUDA 8.0
CUDNN version (if applicable): CUDnn5.0
Python or MATLAB version (for pycaffe and matcaffe respectively):Python 2.7 MATLAB2014a

急求高手解决 ! 解决了支付宝直接发红包!

1个回答

可能你的Makefile文件需要改一下,我最近也出现过caffe中make出现boost相关的问题,然后我在Makefile文件中改了两处地方就解决了

u013455291
Mix Studio 可以详细说说怎么修改的吗?
11 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!