After I did above, I try to cmake .. and make at the path of "~/monodepth-cpp/build$".
Then, there are too many make errors as follow:
-----------------------------------------------------error description------------------------------------------------------
In file included from /usr/include/google/protobuf/generated_message_table_driven.h:55:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:26,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/include/google/protobuf/port_def.inc:74:2: error: #error PROTOBUF_DEPRECATED was previously defined
error PROTOBUF_DEPRECATED was previously defined
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:276:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:297:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:297:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:301:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:301:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:322:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type
template friend class ::google::protobuf::Arena::InternalHelper;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:332:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type
mutable ::google::protobuf::internal::CachedSize _cachedsize;
^~~~~~
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:151:10: error: ‘size_t tensorflow::OpDef_ArgDef::ByteSizeLong() const’ marked ‘final’, but is not virtual
size_t ByteSizeLong() const final;
^~~~
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:161:30: error: ‘google::protobuf::uint8 tensorflow::OpDef_ArgDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual
::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
^~~~~~~~~~~
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_ArgDef tensorflow::OpDef_ArgDef::New() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:138:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(nullptr);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:138:43: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_ArgDef tensorflow::OpDef_ArgDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:142:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:142:43: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(arena);
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef_ArgDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:163:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:459:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:459:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:463:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:463:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:482:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:482:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:486:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:486:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:505:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:505:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:509:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:509:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:554:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type
template friend class ::google::protobuf::Arena::InternalHelper;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:564:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type
mutable ::google::protobuf::internal::CachedSize _cachedsize;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:405:10: error: ‘size_t tensorflow::OpDef_AttrDef::ByteSizeLong() const’ marked ‘final’, but is not virtual
size_t ByteSizeLong() const final;
^~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:415:30: error: ‘google::protobuf::uint8 tensorflow::OpDef_AttrDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual
::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
^~~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_AttrDef tensorflow::OpDef_AttrDef::New() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:392:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(nullptr);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:392:44: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_AttrDef tensorflow::OpDef_AttrDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:396:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:396:44: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef_AttrDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:417:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:752:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:752:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:756:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:756:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:775:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:775:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:779:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:779:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:798:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:798:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:802:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:802:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:847:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type
template friend class ::google::protobuf::Arena::InternalHelper;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:862:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type
mutable ::google::protobuf::internal::CachedSize _cachedsize;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:637:10: error: ‘size_t tensorflow::OpDef::ByteSizeLong() const’ marked ‘final’, but is not virtual
size_t ByteSizeLong() const final;
^~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:647:30: error: ‘google::protobuf::uint8 tensorflow::OpDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual
::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
^~~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef tensorflow::OpDef::New() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:624:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(nullptr);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:624:36: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef tensorflow::OpDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:628:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:628:36: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:649:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:989:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:989:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:38: error: expected identifier before string constant
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:38: error: expected ‘,’ or ‘...’ before string constant
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:993:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive]
" future release.")
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:993:24: error: expected ‘;’ at end of member declaration
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:3: error: ‘int tensorflow::OpDeprecation::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:3: error: with ‘int tensorflow::OpDeprecation::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’
GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for"
^~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1008:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type
template friend class ::google::protobuf::Arena::InternalHelper;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1013:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type
mutable ::google::protobuf::internal::CachedSize _cachedsize;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:935:10: error: ‘size_t tensorflow::OpDeprecation::ByteSizeLong() const’ marked ‘final’, but is not virtual
size_t ByteSizeLong() const final;
^~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:945:30: error: ‘google::protobuf::uint8 tensorflow::OpDeprecation::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual
::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
^~~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDeprecation tensorflow::OpDeprecation::New() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:922:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(nullptr);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:922:44: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDeprecation tensorflow::OpDeprecation::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:926:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:926:44: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDeprecation::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:947:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1142:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type
template friend class ::google::protobuf::Arena::InternalHelper;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1146:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type
mutable ::google::protobuf::internal::CachedSize _cachedsize;
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1086:10: error: ‘size_t tensorflow::OpList::ByteSizeLong() const’ marked ‘final’, but is not virtual
size_t ByteSizeLong() const final;
^~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1096:30: error: ‘google::protobuf::uint8 tensorflow::OpList::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual
::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray(
^~~~~~~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpList tensorflow::OpList::New() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1073:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(nullptr);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1073:37: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpList tensorflow::OpList::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1077:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^~~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1077:37: error: expected primary-expression before ‘>’ token
return CreateMaybeMessage(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpList::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1098:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^~~~~
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::name() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/opdef.pb.h:1166:20: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’
return name.Get();
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const
inline const ::std::string& Get(const ::std::string / default_value /) const {
^~~
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::description() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/opdef.pb.h:1241:27: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’
return description.Get();
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const
inline const ::std::string& Get(const ::std::string / default_value /) const {
^~~
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::type_attr() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1330:25: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’
return typeattr.Get();
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const
inline const ::std::string& Get(const ::std::string / default_value /) const {
^~~
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::number_attr() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1405:27: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’
return numberattr.Get();
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const
inline const ::std::string& Get(const ::std::string / default_value /) const {
^~~
/usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::type_list_attr() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1480:30: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’
return type_listattr.Get();
--------------------------------------------------------------end-------------------------------------------------------------
The error is too long to descripe here.
Can you help me?
Thank you very much :)
Hi yan99033: When I try to compile the demo of monodepth-cpp, many errors appear :( I will introduce my operation for you.
error PROTOBUF_DEPRECATED was previously defined
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:276:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^ friend class ::google::protobuf::Arena::InternalHelper;
^(nullptr);
^(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_ArgDef tensorflow::OpDef_ArgDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:142:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^(arena);
^
In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0,
from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23,
from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44,
from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23,
from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8,
from /home/liu/monodepth-cpp/src/monodepth.cpp:30:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef_ArgDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:163:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^ friend class ::google::protobuf::Arena::InternalHelper;
^(nullptr);
^(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_AttrDef tensorflow::OpDef_AttrDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:396:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef_AttrDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:417:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^ friend class ::google::protobuf::Arena::InternalHelper;
^(nullptr);
^(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef tensorflow::OpDef::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:628:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDef::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:649:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^ friend class ::google::protobuf::Arena::InternalHelper;
^(nullptr);
^(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDeprecation tensorflow::OpDeprecation::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:926:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpDeprecation::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:947:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^ friend class ::google::protobuf::Arena::InternalHelper;
^(nullptr);
^(nullptr);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpList tensorflow::OpList::New(google::protobuf::Arena) const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1077:12: error: ‘CreateMaybeMessage’ was not declared in this scope
return CreateMaybeMessage(arena);
^(arena);
^
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual int tensorflow::OpList::GetCachedSize() const’:
/usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1098:44: error: ‘_cachedsize’ was not declared in this scope
int GetCachedSize() const final { return _cachedsize.Get(); }
^
~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:297:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:297:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:295:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:301:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:301:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:299:3: error: ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:203:3: error: with ‘int tensorflow::OpDef_ArgDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:322:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type template~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:332:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type mutable ::google::protobuf::internal::CachedSize _cachedsize; ^~~~~~ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:151:10: error: ‘size_t tensorflow::OpDef_ArgDef::ByteSizeLong() const’ marked ‘final’, but is not virtual size_t ByteSizeLong() const final; ^~~~ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:161:30: error: ‘google::protobuf::uint8 tensorflow::OpDef_ArgDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_ArgDef tensorflow::OpDef_ArgDef::New() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:138:12: error: ‘CreateMaybeMessage’ was not declared in this scope return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:138:43: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:142:43: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:459:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:459:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:463:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:463:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:461:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:482:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:482:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:480:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:486:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:486:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:484:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:505:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:505:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:503:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:509:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:509:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:507:3: error: ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:457:3: error: with ‘int tensorflow::OpDef_AttrDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:554:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type template~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:564:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type mutable ::google::protobuf::internal::CachedSize _cachedsize; ^~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:405:10: error: ‘size_t tensorflow::OpDef_AttrDef::ByteSizeLong() const’ marked ‘final’, but is not virtual size_t ByteSizeLong() const final; ^~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:415:30: error: ‘google::protobuf::uint8 tensorflow::OpDef_AttrDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef_AttrDef tensorflow::OpDef_AttrDef::New() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:392:12: error: ‘CreateMaybeMessage’ was not declared in this scope return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:392:44: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:396:44: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:752:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:752:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:756:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:756:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:754:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:775:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:775:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:773:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:779:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:779:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:777:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:798:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:798:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:796:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:802:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:802:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:800:3: error: ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:750:3: error: with ‘int tensorflow::OpDef::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:847:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type template~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:862:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type mutable ::google::protobuf::internal::CachedSize _cachedsize; ^~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:637:10: error: ‘size_t tensorflow::OpDef::ByteSizeLong() const’ marked ‘final’, but is not virtual size_t ByteSizeLong() const final; ^~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:647:30: error: ‘google::protobuf::uint8 tensorflow::OpDef::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDef tensorflow::OpDef::New() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:624:12: error: ‘CreateMaybeMessage’ was not declared in this scope return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:624:36: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:628:36: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:989:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:989:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:38: error: expected identifier before string constant GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:38: error: expected ‘,’ or ‘...’ before string constant /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:993:24: error: ISO C++ forbids declaration of ‘GOOGLE_PROTOBUF_RUNTIME_DEPRECATED’ with no type [-fpermissive] " future release.") ^ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:993:24: error: expected ‘;’ at end of member declaration /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:991:3: error: ‘int tensorflow::OpDeprecation::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ cannot be overloaded GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:987:3: error: with ‘int tensorflow::OpDeprecation::GOOGLE_PROTOBUF_RUNTIME_DEPRECATED(int)’ GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafearena accessors for" ^~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1008:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type template~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1013:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type mutable ::google::protobuf::internal::CachedSize _cachedsize; ^~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:935:10: error: ‘size_t tensorflow::OpDeprecation::ByteSizeLong() const’ marked ‘final’, but is not virtual size_t ByteSizeLong() const final; ^~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:945:30: error: ‘google::protobuf::uint8 tensorflow::OpDeprecation::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpDeprecation tensorflow::OpDeprecation::New() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:922:12: error: ‘CreateMaybeMessage’ was not declared in this scope return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:922:44: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:926:44: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: At global scope: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1142:65: error: ‘InternalHelper’ in ‘class google::protobuf::Arena’ does not name a type template~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1146:41: error: ‘CachedSize’ in namespace ‘google::protobuf::internal’ does not name a type mutable ::google::protobuf::internal::CachedSize _cachedsize; ^~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1086:10: error: ‘size_t tensorflow::OpList::ByteSizeLong() const’ marked ‘final’, but is not virtual size_t ByteSizeLong() const final; ^~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1096:30: error: ‘google::protobuf::uint8 tensorflow::OpList::InternalSerializeWithCachedSizesToArray(google::protobuf::uint8) const’ marked ‘final’, but is not virtual ::google::protobuf::uint8 InternalSerializeWithCachedSizesToArray( ^~~~~~~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘virtual tensorflow::OpList tensorflow::OpList::New() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1073:12: error: ‘CreateMaybeMessage’ was not declared in this scope return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1073:37: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1077:37: error: expected primary-expression before ‘>’ token return CreateMaybeMessage~~~~ /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::name() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/opdef.pb.h:1166:20: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’ return name.Get(); ^ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const inline const ::std::string& Get(const ::std::string / default_value /) const { ^~~ /usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::description() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/opdef.pb.h:1241:27: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’ return description.Get(); ^ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const inline const ::std::string& Get(const ::std::string / default_value /) const { ^~~ /usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::type_attr() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1330:25: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’ return typeattr.Get(); ^ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const inline const ::std::string& Get(const ::std::string / default_value /) const { ^~~ /usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::number_attr() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1405:27: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’ return numberattr.Get(); ^ In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/types.pb.h:25:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor_shape.h:22, from /usr/local/include/google/tensorflow/tensorflow/core/framework/tensor.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:21, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/include/google/protobuf/arenastring.h:67:31: note: candidate: const string& google::protobuf::internal::ArenaStringPtr::Get(const string) const inline const ::std::string& Get(const ::std::string / default_value /) const { ^~~ /usr/include/google/protobuf/arenastring.h:67:31: note: candidate expects 1 argument, 0 provided In file included from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.pb.h:39:0, from /usr/local/include/google/tensorflow/tensorflow/core/framework/function.h:23, from /usr/local/include/google/tensorflow/tensorflow/core/graph/graph.h:44, from /usr/local/include/google/tensorflow/tensorflow/cc/framework/ops.h:23, from /usr/local/include/google/tensorflow/tensorflow/cc/ops/array_ops.h:8, from /home/liu/monodepth-cpp/src/monodepth.cpp:30: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h: In member function ‘const string& tensorflow::OpDef_ArgDef::type_list_attr() const’: /usr/local/include/google/tensorflow/tensorflow/core/framework/op_def.pb.h:1480:30: error: no matching function for call to ‘google::protobuf::internal::ArenaStringPtr::Get() const’ return type_listattr.Get(); --------------------------------------------------------------end------------------------------------------------------------- The error is too long to descripe here. Can you help me? Thank you very much :)