
PX4仿真gazebo报错 make px4_sitl_default gazebo,有佬可以解决吗?

中午好🌞🌞🌞
本答案参考ChatGPT-3.5
根据你的描述,你在运行PX4仿真gazebo时遇到了报错,具体报错信息如下:
FAILED: CMakeFiles/sensor_msgs.dir/Airspeed.pb.cc.o
ST TEST DYN LINK -DBOOST THREAD DYN LINK-DLIBBULLET VERSION=2.88 -DLIBBULLET VERSION GT 282 -Dsensor msgs EXPORTS -I/home/ling/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl gazebo-classic/include -I. -I/usr/include/eig en3/eigen3 -I/usr/include/gazebo-117gazebo/m -I/home/ling/PX4-Autopilot/build/px4_sitl_default/mavlink-I/home/ling/PX4-Autopilot/build/px4_sitl_default/mavlink/mavlink/v2.0-I/usr/include/Paging-I/home/ling/PX4-Autopilo /gazebo sic/externe -I/usr/incl 71ib/x86_64-1i isystem /usr/inc sr/incl llet system /usr/ncL ude/simbody -isystem /usr/include/se ormat-9.10-isyster -isystem /usr/inc ude/OCR e/0GRE/Terrain isystem /usr/include/OCRE/Paging-isyste stem /usr/include/uuid -02 -g -DNDEBUG -fPIC -Wno-deprecated-declarations -Wno-address-of-packed-member -I/usr/include/uuid -std=gnu++17 -MD -MT CMakeFiles/sensor_msgs.dir/Airspeed.pb.cc.o -MF CMakeFiles/sensor_msgs.dir/Ai rspeed.pb.cc.o.d -o CMakeFiles/sensor_msgs.dir/Airspeed.pb.cc.o-c Airspeed.pb.cc
In file included from Airspeed.pb.cc:4: Airspeed.pb.h:12:2:error:#error This file was generated by a newer version of protoc which is 12 #error This file was generated by a newer version of protoc which is ed.pb.h:13:2:error:#error incompatible with your Protocol Buffer headers.Please update rror incompatible with your Protocol Buffer headers.Please update Airspeed.pb.h:14:2:error:#error your headers. 14 #error your headers.
In file included from Airspeed.pb.h:27, from Airspeed.pb.cc:4:
/usr/include/google/protobuf/inlined_string_field.h:56:22:error:expected ';at end of member declaration 561 InlinedstringField() tobuf/inlin error:'COOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE'does not name a type;did you mean 'GOOGLE_ATTRIBUTE_ALWAYS_INLINE'? GOOGLE ATTRIBUTE ALWAYS_INLINE
根据错误信息,出现了与Protocol Buffer头文件不兼容的问题。为了解决这个问题,你可以按照以下步骤进行操作:
**注意:**如果你修改了Airspeed.proto文件,请确保你的修改符合Protocol Buffer的规范,并遵循正确的语法和命名约定。
希望这些解决方案对你有帮助。如果你需要更多帮助,请提供更多信息,例如你的操作系统、PX4版本和相关代码片段。这样可以更好地帮助我们理解问题并提供更准确的解决方案。