I’ve been trying to build a simulation environment using these instructions
on Ubuntu 24.04.2 LTS
That seems to work but when I try:
make px4_sitl gz_x500
It fails and it seems to be from:
PX4-Autopilot/build/px4_sitl_default/src/modules/simulation/gz_msgs/opticalflow.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
compilation terminated due to -Wfatal-errors.
[452/738] Building CXX object src/modu…mulation__gz_bridge.dir/GZGimbal.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:232: px4_sitl] Error 1
I found some suggestions in other threads, to install an earlier version of protobuf but there doesn’t seem to be a release 17 of protobuf.
I’m also looking into rebuilding opticalflow with a more recent version of protoc but I haven’t figured that out either.