qgroundcontrol
qgroundcontrol copied to clipboard
run failed in Ubuntu20.04-arm64
Current Behavior
bash: ./QGroundControl.AppImage: cannot execute binary file: Exec format error
Steps to Reproduce:
Please provide an unambiguous set of steps to reproduce the current behavior
- chmod +x ./QGroundControl.AppImage
- ./QGroundControl.AppImage (or double click)
how to install QGC in the focal-desktop-arm64 ubuntu?
when I buil it on arm-baed ubuntu20.04
@dogmaphobic
@patrickelectric
@DonLakeFlyer
You have not followed the dev build instructions in the docs.
You have not followed the dev build instructions in the docs.
I should, but I can't. Because it's a arm-based ubuntu, qt online install didn't work, so I have to install it manually.
@mengchaoheng You should be able to build it without airmap SDK. All the other dependencies are open. If you like you can use my arm64 builds via flatpak: https://thopiekar.eu/uav/qgroundcontrol-on-flatpak/
@mengchaoheng You should be able to build it without airmap SDK. All the other dependencies are open.
If you like you can use my arm64 builds via flatpak: https://thopiekar.eu/uav/qgroundcontrol-on-flatpak/
In fact, I would like to know how you compiled and installed qt5 in arm ubuntu, thank you very much.
@mengchaoheng You should be able to build it without airmap SDK. All the other dependencies are open. If you like you can use my arm64 builds via flatpak: https://thopiekar.eu/uav/qgroundcontrol-on-flatpak/
install failed! output is :
CLICK ME
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo apt install flatpak
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libappstream-glib8 libostree-1-1
The following NEW packages will be installed:
flatpak libappstream-glib8 libostree-1-1
0 upgraded, 3 newly installed, 0 to remove and 116 not upgraded.
Need to get 1,672 kB of archives.
After this operation, 8,103 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 https://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libappstream-glib8 arm64 0.7.16-1ubuntu1 [124 kB]
Get:2 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal/main arm64 libostree-1-1 arm64 2020.8-flatpak1~focal [275 kB]
Get:3 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu focal/main arm64 flatpak arm64 1.12.4-1flatpak1~20.04 [1,272 kB]
Fetched 1,672 kB in 7s (253 kB/s)
Selecting previously unselected package libappstream-glib8:arm64.
(Reading database ... 195542 files and directories currently installed.)
Preparing to unpack .../libappstream-glib8_0.7.16-1ubuntu1_arm64.deb ...
Unpacking libappstream-glib8:arm64 (0.7.16-1ubuntu1) ...
Selecting previously unselected package libostree-1-1:arm64.
Preparing to unpack .../libostree-1-1_2020.8-flatpak1~focal_arm64.deb ...
Unpacking libostree-1-1:arm64 (2020.8-flatpak1~focal) ...
Selecting previously unselected package flatpak.
Preparing to unpack .../flatpak_1.12.4-1flatpak1~20.04_arm64.deb ...
Unpacking flatpak (1.12.4-1flatpak1~20.04) ...
Setting up libappstream-glib8:arm64 (0.7.16-1ubuntu1) ...
Setting up libostree-1-1:arm64 (2020.8-flatpak1~focal) ...
Setting up flatpak (1.12.4-1flatpak1~20.04) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for matches…
error: The application org.mavlink.qgroundcontrol/aarch64/stable requires the runtime org.kde.Platform/aarch64/5.15 which was not found
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Looking for matches…
error: The application org.mavlink.qgroundcontrol/aarch64/stable requires the runtime org.kde.Platform/aarch64/5.15 which was not found
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak -h
Usage:
flatpak [OPTION…] COMMAND
Builtin Commands:
Manage installed applications and runtimes
install Install an application or runtime
update Update an installed application or runtime
uninstall Uninstall an installed application or runtime
mask Mask out updates and automatic installation
pin Pin a runtime to prevent automatic removal
list List installed apps and/or runtimes
info Show info for installed app or runtime
history Show history
config Configure flatpak
repair Repair flatpak installation
create-usb Put applications or runtimes onto removable media
Find applications and runtimes
search Search for remote apps/runtimes
Manage running applications
run Run an application
override Override permissions for an application
make-current Specify default version to run
enter Enter the namespace of a running application
ps Enumerate running applications
kill Stop a running application
Manage file access
documents List exported files
document-export Grant an application access to a specific file
document-unexport Revoke access to a specific file
document-info Show information about a specific file
Manage dynamic permissions
permissions List permissions
permission-remove Remove item from permission store
permission-set Set permissions
permission-show Show app permissions
permission-reset Reset app permissions
Manage remote repositories
remotes List all configured remotes
remote-add Add a new remote repository (by URL)
remote-modify Modify properties of a configured remote
remote-delete Delete a configured remote
remote-ls List contents of a configured remote
remote-info Show information about a remote app or runtime
Build applications
build-init Initialize a directory for building
build Run a build command inside the build dir
build-finish Finish a build dir for export
build-export Export a build dir to a repository
build-bundle Create a bundle file from a ref in a local repository
build-import-bundle Import a bundle file
build-sign Sign an application or runtime
build-update-repo Update the summary file in a repository
build-commit-from Create new commit based on existing ref
repo Show information about a repo
Help Options:
-h, --help Show help options
Application Options:
--version Print version information and exit
--default-arch Print default arch and exit
--supported-arches Print supported arches and exit
--gl-drivers Print active gl drivers and exit
--installations Print paths for system installations and exit
--print-updated-env Print the updated environment needed to run flatpaks
--print-system-only Only include the system installation with --print-updated-env
-v, --verbose Show debug information, -vv for more detail
--ostree-verbose Show OSTree debug information
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak remote-ls
Name Application ID Version Branch Arch
qgroundcontrol org.mavlink.qgroundcontrol stable aarch64
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Looking for matches…
error: The application org.mavlink.qgroundcontrol/aarch64/stable requires the runtime org.kde.Platform/aarch64/5.15 which was not found
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak update
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for updates…
Nothing to do.
sparallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$
@thopiekar
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak install flathub org.kde.Platform
Looking for matches…
Similar refs found for ‘org.kde.Platform’ in remote ‘flathub’ (user):
1) runtime/org.kde.Platform/aarch64/5.10
2) runtime/org.kde.Platform/aarch64/5.11
3) runtime/org.kde.Platform/aarch64/5.13
4) runtime/org.kde.Platform/aarch64/5.12
5) runtime/org.kde.Platform/aarch64/5.14
6) runtime/org.kde.Platform/aarch64/5.15
7) runtime/org.kde.Platform/aarch64/5.9
8) runtime/org.kde.Platform/aarch64/5.15-21.08
9) runtime/org.kde.Platform/aarch64/6.2
Which do you want to use (0 to abort)? [0-9]: 6
Skipping: org.kde.Platform/aarch64/5.15 is already installed
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for matches…
^Cparallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Looking for matches…
error: The application org.mavlink.qgroundcontrol/aarch64/stable requires the runtime org.kde.Platform/aarch64/5.15 which was not found
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ sudo flatpak install thopiekar.eu org.kde.Platform
Looking for matches…
error: Nothing matches org.kde.Platform in remote thopiekar.eu
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$
You need to run the following I guess:
flatpak install flathub org.kde.Platform/aarch64/5.15
And try to avoid sudo
whenever possible. It ia not the medicine for every illness.
You need to run the following I guess:
flatpak install flathub org.kde.Platform/aarch64/5.15
And try to avoid
sudo
whenever possible. It ia not the medicine for every illness.
and how to run qgc? I can't find it:
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak install flathub org.kde.Platform/aarch64/5.15
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for matches…
Info: org.kde.Platform//5.15 is end-of-life, with reason:
We strongly recommend moving to the latest stable version of the Plaform and SDK
ID Branch Op Remote Download
1. [✓] org.freedesktop.Platform.GL.default 20.08 i flathub 74.5 MB / 75.1 MB
2. [✓] org.gtk.Gtk3theme.Yaru 3.22 i flathub 136.7 kB / 191.4 kB
3. [✓] org.kde.Platform.Locale 5.15 i flathub 17.9 kB / 341.5 MB
4. [✓] org.kde.PlatformTheme.QGnomePlatform 5.15 i flathub 7.0 MB / 7.0 MB
5. [✓] org.kde.PlatformTheme.QtSNI 5.15 i flathub 1.3 MB / 1.3 MB
6. [✓] org.kde.WaylandDecoration.QGnomePlatform-decoration 5.15 i flathub 3.2 MB / 7.5 MB
7. [✓] org.kde.Platform 5.15 i flathub 287.6 MB / 352.2 MB
Installation complete.
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak install flathub org.kde.Platform/aarch64/5.15
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for matches…
Skipping: org.kde.Platform/aarch64/5.15 is already installed
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol
Note that the directories
'/var/lib/flatpak/exports/share'
'/home/parallels/.local/share/flatpak/exports/share'
are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
Looking for matches…
Info: (pinned) org.kde.Platform//5.15 is end-of-life, with reason:
We strongly recommend moving to the latest stable version of the Plaform and SDK
org.mavlink.qgroundcontrol permissions:
ipc network pulseaudio wayland x11
dri file access [1] dbus access [2]
[1] home, xdg-config/kdeglobals:ro
[2] com.canonical.AppMenu.Registrar
ID Branch Op Remote Download
1. [✓] org.mavlink.qgroundcontrol stable i thopiekar.eu 27.9 MB / 28.4 MB
Installation complete.
@thopiekar get it!!! let me summary as:
- Must be install flatpak 1.12.4. To install 1.12.4, run the following in a terminal:
sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak
-
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
-
flatpak install flathub org.kde.Platform/aarch64/5.15-21.08
-
flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
-
flatpak install thopiekar.eu org.mavlink.qgroundcontrol
after that, maybe restart your computer is need. Run qgc by:
flatpak run --device=all org.mavlink.qgroundcontrol
So it runs? If so I'll add the flathub steps to my quickstart guide later.
So it runs? If so I'll add the flathub steps to my quickstart guide later.
yes, thank you very much!!!
So it runs? If so I'll add the flathub steps to my quickstart guide later.
New problem, I can't connect any hardware to the flatpak version of qgc, I tested v5 nano and pixhawk 4, they can connect to my qgc under macOS, but the flatpak version of qgc get the following console output:
[E) at :0 - "Qt: Session management error: None of the authentication protocols specified are supported"
[DI.at/run/build/qgroundcontrol/src/QGCApplication.cc:281 - "Settings location"/home/parallels/.var/pp/
org.mavlink.qgroundcontrol/config/QGroundControl.org/QGroundControl Daily.in'" Is writable?: true"
[D] at/run/build/qgroundcontrol/src/QGCLoggingCategory.cc:120 - "Filter rules
"*Log.debug-falselnGStreamerAPILog.debug-true\nqt.qml.connections=false™'
[D] at /run/build/qgroundcontrol/src/QGCApplication.cc:384-"System reported locale: QLocale(English, Latin, United States) ;
Name "en US" ; Preffered (used in maps): "en-US''
[ at :0 - "No text-to-speech plug-ins were found."
[D] at/run/build/agroundcontrol/sre/Vehicle/MAVLinkLogManager.cc:360-"MAVLink logs directory: "/home/parallels/
Documents/QGround Control Daily/Logs"'
[D]at/run/build/agroundcontrol/sr/QLocationPlugin/QGCMapEngine.cpp:164-"Map Cache in: "/home/parallels/.var/app/
org.mavlink.qgroundcontrol/cache/QGCMapCache300"/"agcMapCache.db''
[D]at/run/build/qgroundcontrol/sre/MissionManager/MissionController.cc:2370-"setCurrentPlanViewSegNum"
[D] at/run/build/qgroundcontrol/src/MissionManager/MissionController.cc:2370-"setCurrentPlanViewSeqNum"
[E] at/run/build/qgroundcontrol/src/VideoReceiver/GstVideoReceiver.cc:284- "Stop called on empty URI"
[E] at /run/build/agroundcontrol/src/VideoReceiver/GstVideoReceiver.cc:284-"Stop called on empty URI"
I successfully compiled and uploaded PX4 under my ubuntu20, I made sure my usb is connected to the computer and at /dev/ttyACM0.
@thopiekar can't connect
@thopiekar can you just add the stable branch to the thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo ? maybe daliy build have some bug!
@thopiekar Can you teach me how to compile qgc on the ARM ubuntu? I don't know QT, I don't know how to set the compile option.
Well, the reason you can't connect to serial devices is "normal". Flatpak apps run in sandboxes and giving the app permissions for accessing /dev/* might too open, so I kept it turned off.
However, you can install flatseal and allow QGroundControll to connect to all devices or run QGC via:
flatpak run --device=all org.mavlink.qgroundcontrol
Depending on the feedback from other people, I might grant the permission by default.
@thopiekar Can you teach me how to compile qgc on the ARM ubuntu? I don't know QT, I don't know how to set the compile option.
Don't have the time for this. Check out the general docs and dig into some scripts. Actually, it isn't too difficult.
Hi @mengchaoheng did you manage to install qgroundcontrol or set up the whole px4 developer enviroment? I'm on ubuntu parallels on mac m1 too and I cant manage to install qgroundcontrol :(
Hi @mengchaoheng did you manage to install qgroundcontrol or set up the whole px4 developer enviroment? I'm on ubuntu parallels on mac m1 too and I cant manage to install qgroundcontrol :(
Yes, about qgc, see previous reply.
Hi @mengchaoheng did you manage to install qgroundcontrol or set up the whole px4 developer enviroment? I'm on ubuntu parallels on mac m1 too and I cant manage to install qgroundcontrol :(
https://github.com/mavlink/qgroundcontrol/issues/9856#issuecomment-1101268462
Hi @mengchaoheng did you manage to install qgroundcontrol or set up the whole px4 developer enviroment? I'm on ubuntu parallels on mac m1 too and I cant manage to install qgroundcontrol :(
Run qgc by 'flatpak run --device=all org.mavlink.qgroundcontrol' on the terminal.
sorry, It worked for a while and now it doesn't work anymore. I have run qgc by flatpak run --device=all org.mavlink.qgroundcontrol. @thopiekar can you help me please!!!
I have install flatseal to setup but it didn't work. @thopiekar
We're facing the same problem @mengchaoheng got last Spring. On a Nvidia NX (18.04):
drace@nx:~$ flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
drace@nx:~$ flatpak install flathub org.kde.Platform/aarch64/5.15
error: Error searching remote flathub: Can't find ref org.kde.Platform/aarch64/5.15
Apparently flathub is not finding any repository:
(e.g. GIMP)
drace@nx:~$ flatpak install flathub org.gimp.GIMP
error: Error searching remote flathub: Can't find ref org.gimp.GIMP