facebookarchive / C3D

C3D is a modified version of BVLC caffe to support 3D ConvNets.
Other
1.17k stars 508 forks source link

recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed,...Error while make in both C3D1.0 and 1.1 #447

Open Aithu-Snehith opened 5 years ago

Aithu-Snehith commented 5 years ago

I am getting this error while running "make" in C3D-v1.1, and got the similar error even in 1.0. Please let me know if anyone have encountered the same and ways to fix it.

Full Error from here:

CXX .build_release/src/caffe/proto/caffe.pb.cc In file included from /usr/include/c++/5/mutex:35:0, from /usr/local/include/google/protobuf/stubs/mutex.h:33, from /usr/local/include/google/protobuf/stubs/common.h:52, from .build_release/src/caffe/proto/caffe.pb.h:9, from .build_release/src/caffe/proto/caffe.pb.cc:4: /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 \

^ In file included from /usr/local/include/google/protobuf/stubs/common.h:52:0, from .build_release/src/caffe/proto/caffe.pb.h:9, from .buildrelease/src/caffe/proto/caffe.pb.cc:4: /usr/local/include/google/protobuf/stubs/mutex.h:58:8: error: ‘mutex’ in namespace ‘std’ does not name a type std::mutex mu; ^ /usr/local/include/google/protobuf/stubs/mutex.h: In member function ‘void google::protobuf::internal::WrappedMutex::Lock()’: /usr/local/include/google/protobuf/stubs/mutex.h:51:17: error: ‘mu’ was not declared in this scope void Lock() { mu.lock(); } ^ /usr/local/include/google/protobuf/stubs/mutex.h: In member function ‘void google::protobuf::internal::WrappedMutex::Unlock()’: /usr/local/include/google/protobuf/stubs/mutex.h:52:19: error: ‘mu’ was not declared in this scope void Unlock() { mu.unlock(); } ^ /usr/local/include/google/protobuf/stubs/mutex.h: At global scope: /usr/local/include/google/protobuf/stubs/mutex.h:61:7: error: expected nested-name-specifier before ‘Mutex’ using Mutex = WrappedMutex; ^ /usr/local/include/google/protobuf/stubs/mutex.h:66:28: error: expected ‘)’ before ‘’ token explicit MutexLock(Mutex mu) : mu(mu) { this->mu->Lock(); } ^ /usr/local/include/google/protobuf/stubs/mutex.h:69:3: error: ‘Mutex’ does not name a type Mutex const mu; ^ /usr/local/include/google/protobuf/stubs/mutex.h: In destructor ‘google::protobuf::internal::MutexLock::~MutexLock()’: /usr/local/include/google/protobuf/stubs/mutex.h:67:24: error: ‘class google::protobuf::internal::MutexLock’ has no member named ‘mu’ ~MutexLock() { this->mu_->Unlock(); } ^ /usr/local/include/google/protobuf/stubs/mutex.h: At global scope: /usr/local/include/google/protobuf/stubs/mutex.h:80:33: error: expected ‘)’ before ‘’ token explicit MutexLockMaybe(Mutex *mu) : ^ In file included from /usr/local/include/google/protobuf/arena.h:48:0, from .build_release/src/caffe/proto/caffe.pb.h:23, from .build_release/src/caffe/proto/caffe.pb.cc:4: /usr/include/c++/5/typeinfo:39:37: error: expected ‘}’ before end of line /usr/include/c++/5/typeinfo:39:37: error: expected unqualified-id before end of line /usr/include/c++/5/typeinfo:39:37: error: expected ‘}’ before end of line /usr/include/c++/5/typeinfo:39:37: error: expected ‘}’ before end of line /usr/include/c++/5/typeinfo:39:37: error: expected ‘}’ before end of line /usr/include/c++/5/typeinfo:39:37: error: expected declaration before end of line Makefile:588: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1