lundi 15 octobre 2018

Compiling caffe with make distribute - error not using C++ 11

I am following the caffe compilation instructions here. I can successfully compile caffe with make all. However, when I run make distribute it gives the error below. It won't use C++11 to build google protobuf. Does anybody know a solution?

In file included from /usr/include/c++/5/atomic:38:0,
                 from /usr/local/include/google/protobuf/io/coded_stream.h:113,
                 from .build_release/src/caffe/proto/caffe.pb.h:23,
                 from ./include/caffe/blob.hpp:9,
                 from ./include/caffe/caffe.hpp:7,
                 from python/caffe/_caffe.cpp:17:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \

Aucun commentaire:

Enregistrer un commentaire