Unable to launch gazebo simulation with "make" command

#1

Hi all.

I tried to launch gazebo simulation on MacOS following the instruction here, but when I run make px4_sitl gazebo_plane I get the error message below and fail to build.

Makefile:382: *** “px4_sitl cannot be the first argument. Use ‘/Library/Developer/CommandLineTools/usr/bin/make help|list_config_targets’ to get a list of all possible [configuration] targets.”. Stop.

Do you have any idea?
Thanks.

#2

What version are you using? The instruction you see are for master.

If you’re using an older version, you have to do:

make posix_sitl_default gazebo_plane
#3

I’m using master version but somehow it worked for me.

Thank you so much anyway!

#4

Your version points to https://github.com/PX4/Firmware/commit/c9d179676 which is a commit from May 24 2018. So master is technically correct, however, master a while ago.

1 Like
#5

I updated my repository and used the first command successfully. Thanks!

1 Like