Gazebo-classic SITL makefile error

Hi everyone,

I’ve been following the SITL instructions from Gazebo Classic Simulation | PX4 User Guide
I’ve gotten the SITL to work with jmavsim including multiple vehicles, however I cannot seem to get the gazebo SITL to work. I have tried with gz-garden and gazebo11. I get the following error:

FAILED: external/Stamp/sitl_gazebo-classic/sitl_gazebo-classic-built
cd /home/…/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic && /usr/bin/cmake --build /home/…/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic – -j 6
ninja: build stopped: subcommand failed.
make: *** [Makefile:232: px4_sitl] Error 1

I have tried changing my swap file size from 2G to 8G to 6G all with no luck. Appreciate any help!

You could try to set it manually to -j 1 instead of -j 6 here:

Thanks for the reply! Unfortunately this did not fix the issue. With some further investigation, I believe it is a protobuf issue. The build returns the following warning before beginning.

CMake Warning at /usr/share/cmake-3.16/Modules/FindProtobuf.cmake:499 (message): Protobuf compiler version 3.6.1 doesn’t match library version 3.18.1