Allenhe123 / cyberRT-x86

将Apollo cyberRT移植到docker外面
Apache License 2.0
11 stars 9 forks source link

按照ubuntu18.04_cyber_compile编译安装依赖项,然后cmake 编译不过 #1

Open Yoke365 opened 3 years ago

Yoke365 commented 3 years ago

zero@zero:~/ cyberRT-x86 $ mkdir build ; cd build ; cmake .. ; make -j12 [ 0%] Built target gtest [ 0%] Building CXX object cyber/proto/CMakeFiles/cyber_proto.dir/choreography_conf.pb.cc.o In file included from /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.cc:4:0: /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is

error This file was generated by a newer version of protoc which is

^~~~~ /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update

error incompatible with your Protocol Buffer headers. Please update

^~~~~ /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.h:14:2: error: #error your headers.

error your headers.

^~~~~ In file included from /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.h:27:0, from /home/zero/work/cyber-rt/cyberRT-x86/build/cyber/proto/choreography_conf.pb.cc:4: /usr/local/include/google/protobuf/inlined_string_field.h:56:22: error: expected ‘;’ at end of member declaration InlinedStringField() ^ /usr/local/include/google/protobuf/inlined_string_field.h:57:5: error: ‘GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE’ does not name a type; did you mean ‘GOOGLE_ATTRIBUTE_ALWAYS_INLINE’? GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE; ^~~~~~~~~~~ GOOGLE_ATTRIBUTE_ALWAYS_INLINE /usr/local/include/google/protobuf/inlined_string_field.h:61:56: error: expected ‘;’ at end of member declaration const InlinedStringField& from) ^ /usr/local/include/google/protobuf/inlined_string_field.h:62:5: error: ‘GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE’ does not name a type; did you mean ‘GOOGLE_ATTRIBUTE_ALWAYS_INLINE’? GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE; ^~~~~~~~~~~ GOOGLE_ATTRIBUTE_ALWAYS_INLINE /usr/local/include/google/protobuf/inlined_string_field.h:64:69: error: expected ‘;’ at end of member declaration void ClearToEmpty(const ::std::string default_value, Arena arena) ^ /usr/local/include/google/protobuf/inlined_string_field.h:65:7: error: ‘GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE’ does not name a type; did you mean ‘GOOGLE_ATTRIBUTE_ALWAYS_INLINE’? GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE { ^~~~~~~~~~~ GOOGLE_ATTRIBUTE_ALWAYS_INLINE /usr/local/include/google/protobuf/inlined_string_field.h:68:31: error: expected ‘;’ at end of member declaration void ClearNonDefaultToEmpty() GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE { ^ /usr/local/include/google/protobuf/inlined_string_field.h:68:33: error: ‘GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE’ does not name a type; did you mean ‘GOOGLE_ATTRIBUTE_ALWAYS_INLINE’? void ClearNonDefaultToEmpty() GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE { ^~~~~~~~~~~ GOOGLE_ATTRIBUTE_ALWAYS_INLINE /usr/local/include/google/protobuf/inlined_string_field.h:71:62: error: expected ‘;’ at end of member declaration void ClearToEmptyNoArena(const ::std::string* default_value)

Allenhe123 commented 2 years ago

依赖的protobuf版本不对或者没有正确安装