-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to '"make px4_sitl gazebo" #18999
Comments
Try |
Tried it, it was already installed thus same error o/p :( |
@Jeswin17 I think your install script might have failed somewhere. Did the script output any errors? |
@Jaeyoung-Lim I do not think so.. |
Not sure if related but I am also not able to make jMAVSim, it gets stuck after the TCP port connection while throwing a ClassNotFoundExeption: org.apache.tools.ant.launch.Launcher. I will open an issue for this also and link it here. |
@Jeswin17 It is related. You are missing some dependencies that should have been installed as part of the setup script. |
How do I identify these missing dependencies since the setup?sh script does not throw any errors? |
@Jeswin17 what's the full output when you get the ClassNotFoundException? |
@julianoes Looking at related issues with jAVSim, I tried using OpenJDK 11 & 8 and got the following errors. |
Try a newer version. |
@julianoes no luck with it. Does openjdk need to bet set to JAVA_HOME in /etc/environmetnt file? Anyway I think I will try to downgrade to 18.4 and try it. |
I suggest to use 20.04 and use what setup.sh suggests. If that does not work, we'll have to fix it. |
On my Ubuntu 20.04 I have:
And |
@julianoes I was able to get jMAVSim to work! However the make gazebo still returns the original CMAKE/Booster related issue. Do you reckon it needs any environment variables? |
@Jeswin17 please remove the build folder and try |
@julianoes after removing build folder and making this is the output [0/10] git submodule Tools/sitl_gazebo -- Configuring incomplete, errors occurred! |
I'm trying to reproduce this. What's your output of |
@julianoes libboost-all-dev/focal,now 1.71.0.0ubuntu2 amd64 [installed] |
@Jeswin17 Are you running this inside a VM or docker? I think this was never mentioned in the description |
@Jaeyoung-Lim VM! |
The boos dependencies look fine. I just freshly ran https://github.com/PX4/PX4-Autopilot/blob/master/Tools/setup/ubuntu.sh on my Ubuntu 20.04 and the build of Gazebo works correctly afterwards. Can you run the setup script and paste the output here? Something has to go wrong somewhere 🤔 ... |
@julianoes So I freshly d/led the repo again and ran setup.sh Ubuntu 20.04 Installing PX4 general dependencies Installing PX4 Python3 dependencies Installing NuttX dependencies Installing PX4 simulation dependencies
2022-01-14 16:54:02 (12.8 MB/s) - written to stdout [1772/1772] OK Relogin or reboot computer before attempting to build NuttX targets |
Looks all fine. And it still did not work afterwards? After a clean build? |
@julianoes when I run "make px4_sitl_default gazebo", I got the error report like this: INFO [simulator] Waiting for simulator to accept connection on TCP port 4560 Seems like gazebo cannot be launched. Could you please let me know how to solve it. thanks in advance. |
@CharlChc your issue looks different from this thread. I suggest you open a new issue and add some more information, e.g. which OS and which OS version, etc. |
Trying to dig into my issues building PX4-Autopilot I just opened PX4/PX4-SITL_gazebo-classic#858, also in Ubuntu 20.04 with For me, some steps in the
ROS noetic comes with Gazebo 11:
|
Hi, I have the same problem, but now i solved it !!! I have reason to believe that the cartographer or the dependencies caused this problems , I tried to 'make px4_sitl gazebo' on two Ubuntu system and both failed , both of them are configured with cartographer, and cartographer all works fine (used with rplidar, haven‘t try simulation before) Tips: |
Looks like the apt sources and dependencies were in a bad state. I'm glad a re-install fixed it. |
@CharlChc Did you ever open a new issue or figure out the solution? |
I had the same problem of @Jeswin17 in #18999 (comment), solved with #13759 (comment) changing python to python3 |
I followed the instructions given here https://docs.px4.io/master/en/dev_setup/dev_env_linux_ubuntu.html to setup Gazebo and PX4.
But when it try to run gazebo, it throws the following error.
Env:
Ubuntu 20.04.3 LTS Virtual Machine
Gazebo 11 ( d/led when I ran the https://github.com/PX4/PX4-Autopilot/blob/master/Tools/setup/ubuntu.sh script as mentioned in the docs.
The output of the CMakeError.log file is as follows:
While the issue is similiar to #13759, re-downloading the gazebo plugins do not seem to make the difference.
Moreover, running sudo apt-get install libprotobuf-dev libprotoc-dev protobuf-compiler libeigen3-dev libxml2-utils python-rospkg python-jinja2 throws the error (not sure if related to above error though) :
Hence, I suspect the error could be Cmake files but I don't have the sufficient know-how to fix it.
Any advice is appreciated.
The text was updated successfully, but these errors were encountered: