"This file was generated by an older version of protoc" on Windows installation

Hello everyone, im running into this error after following this official guide when running “make px4_sitl”, i’ve unregistered and reinstalled ubuntu 6+ times, i tried clean, distclean, installing protobuf before running bash and tried following the guide on another computer.

here’s the error message:

px4 error.pdf (22.9 KB)

any ideas?

i’ve solved this issue by downgrading protoc to 3.6.1, make clean and make distclean in ~/PX4-Autopilot then exiting wsl and shutting down then rebooting and make px4_sitl which ran with no errors

1 Like

Facing the same issue. Can u tell how you downgraded protoc to 3.6.1?

removed the protoc installed by px4 then installed the 3.6.1 protoc.

I tried following, but still getting error about protobuf
sudo apt remove protobuf-compiler
tried with and without removing the old one (looks like it removes some dependant gazebo packages)
and then by installing protobuf 3.6.1
as described in answer
following by make clean and make distclean and reboot.
protoc --version
shows 3.6.1
Im using Ubuntu 22.04 from WSL.
I haven`t used ubuntu for a while and i am not sure if I have done everything correctly

After clean win11 install everything works as expected using WSL and Ubuntu 22.04 without protobuf reinstall with default version