PX4 on VMware and Ubuntu 18.04 LTS, solution

#1

Hi people!
This is my first post here, I was just able to setup PX4 on my VMware, but it took a while, so I was thinking that others might have similar issues. Here is what worked for me.

TURN OFF “Accelerate 3D Graphics” in the VMware.

After installing Ubuntu 18.04, first update and upgrade:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Next set Java to version 8 and update openGL:

sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-set-default
sudo add-apt-repository ppa:ubuntu-x-swat/updates
sudo apt update
sudo apt dist-upgrade

Restart the virtual machine and then follow the PX4 installation instructions on
https://dev.px4.io/en/setup/dev_env_linux_ubuntu.html
for the script ubuntu_sim.sh (don’t forget to chmod +x ubuntu_sim.sh).

Finally, what I noticed is that it is better to type into the console “make clean” every time before building a new project / demo. For instance,

make clean
make posix_sitl_default gazebo
make clean
make tests

Moreover, sometimes it seems necessary to build the tests a few times, with “make clean”, “make tests”, before passing all of them.

I hope this help someone.
Have a nice day and don’t forget to smile!

2 Likes
#2

Hi, I’ve also been trying to install PX4 toolchain in ubuntu in a VM machine, but got some issues about the openGL and cannot run the simulator…
And would like ta ask why TURNNING OFF the “Accelerate 3D Graphics” in the VMware?
Won’t it affect the graphic performance while running the simulator 3D UI? Does the simulation goes well while running?

looking forward to your reply.