qgroundcontrol
qgroundcontrol copied to clipboard
QGC 4.2.3: When runnig QGC for Linux, The map is broken in WSL2 environment.
< Figure1. PX4 on SITL simulatoin with Gazebo without QGC >
I am currently trying to simulate PX4 using Gazebo. When "command takeoff" was entered without a connection to the QGC, the FailSafe was activated and the drone's prop stopped immediately and failed to take off.
After reding https://github.com/PX4/PX4-Autopilot/issues/19205#issuecomment-1046306704, I downloaded the QGC daily version for Linux (v4.2.3) under WSL2 environment following the instructions in the link below to connect the QGC to Gazebo to avoid FailSafe and succeed in Takeoff. https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html
However, when running QGroundContrl.AppImage, I encountered the following error.
< Figure 2. Fail to run QGroundContrl.AppImage >
/tmp/.mount_QGrounXXXXXX/QGroundControl: error while loading shared libraries: libpulse-mainloop-glib.so.0: cannot open shared object file: No such file or directory ( 'XXXXXX' keeps changing every time )
https://github.com/mavlink/qgroundcontrol/issues/10306 After seeing this help and doing
sudo apt-get install -y libpulse-dev
I was able to run QGC.
But the QGC screen comes out like this.
< Figure 3. Broken Map >
< Figure 4. QGC test in 3 computers >
Besides the computer(Ryzen Desktop) that breaks the QGC map, I tested it on two other laptops, where the map doesn't break. I don't know why the map is broken or not. ( The map of QGC for Windows does not break in all three computers.) I'd appreciate your help.
this also happens in docker
So I want to run PX4 in docker, and I need to install QGC in my docker environment, how to solve this ?
I fixed the broken map issue by installing the latest onboard GPU drivers for my AMD CPU.