PX4 / PX4-SITL_gazebo-classic

Set of plugins, models and worlds to use with OSRF Gazebo Simulator in SITL and HITL.

Home Page:http://dev.px4.io/simulation-gazebo.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run make px4_sitl gazebo

JoshikaNetha opened this issue · comments

Hi,

I'm getting below error while running make px4_sitl gazebo
[0/2] Re-checking globbed directories...
ninja: error: unknown target 'gazebo', did you mean 'geo'?
make: *** [Makefile:232: px4_sitl] Error 1

please help me with this issue.

Thanks in advance.

I'm sure the experts will answer this, but to help them you should outline what OS, OS version and version of PX4 you are running.

Sure , OS version is ubuntu-20.04 and PX4 is 1.14.0

Hi, I have the exact same problem here, running on Ubuntu 18.04. Thank you in advance.

Hmmm. That should work. Can you try make px4_sitl gazebo-classic.

Thanks for the quick response, it still doesn't work though. The error message is as follows:

ninja: error: unknown target 'gazebo-classic'
Makefile:232: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 1

@Jaeyoung-Lim Perhaps one for you

After git pull origin, and updating submodule, I got gazebo_classic and its working.

Sorry, but the issue seems to be still here, after cloning fresh copy of repository and running Tools/setup/ubuntu.sh on Ubuntu 22 I get the same error

➜  PX4-Autopilot git:(main) ✗ make px4_sitl gazebo-classic
ninja: error: unknown target 'gazebo-classic'
make: *** [Makefile:232: px4_sitl] Error 1

@rosiakpiotr

make px4_sitl gazebo-classic_iris

Still no luck. I had the same problem on Docker container based on px4io/px4-dev-simulation-focal on my desktop. I was sure something was off with the image so I tried installing it directly on WSL2 (forgot to mention I work on WSL2 + Docker, no native Linux), it worked on my Win11 desktop so I went ahead and repeated the same steps on WSL2 on my Win11 laptop, but it keeps failing here.

@rosiakpiotr You need to check your PX4 version

My findings indicate that it builds just fine on Ubuntu 20 LTS but fails on Ubuntu 22 LTS. I have main branch selected on PX4 repo, switching to v1.13.3 doesn't help either. For my case that's enough - I will use Ubuntu20, but let's stay aware of the problem on U22.

@rosiakpiotr That is because on 22.04, you don't have gazebo-classic available

You are right. Sorry for the confusion I should have noticed that it is not advised to build for Gazebo Classic on 22.04. My apologies.

@arielc-brillianetor I don't think it is the same issue. Please post a new issue