mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.34k stars 3.65k forks source link

Support for arm64 #9856

Open SEUZTh opened 3 years ago

SEUZTh commented 3 years ago

I am using ubuntu20.04 arm64 in parallels desktop 17.0. However, QGC.appimage can't run on arm64.

Do you intend to provide arm64 version?

booo commented 3 years ago

Can you change the topic to "Support for arm64" platform?

SEUZTh commented 3 years ago

Can you change the topic to "Support for arm64" platform?

Ok, I have changed it.

hyperion11 commented 3 years ago

needed too

booo commented 3 years ago

Did you try building QGC for arm64?

https://dev.qgroundcontrol.com/master/en/getting_started/

SEUZTh commented 3 years ago

Did you try building QGC for arm64?

https://dev.qgroundcontrol.com/master/en/getting_started/

I am using arm64 ubuntu. If you have a x64 PC, could you x64-arm64 cross build it? Thanks very much.

booo commented 3 years ago

I think it would be much easier if you try the build yourself.

hyperion11 commented 3 years ago

Did you try building QGC for arm64?

https://dev.qgroundcontrol.com/master/en/getting_started/

try, but without success :(

mfry90 commented 2 years ago

@booo Ditto on the request. The instructions for building QGroundControl require building Qt5. I've tried numerous times on Nvidia Jetson to build qt5, but the build fails, and I'm not sure why (perhaps memory issues?). It would be a huge help if a compiled version for arm64 were already provided.

mengchaoheng commented 2 years ago

@booo Ditto on the request. The instructions for building QGroundControl require building Qt5. I've tried numerous times on Nvidia Jetson to build qt5, but the build fails, and I'm not sure why (perhaps memory issues?). It would be a huge help if a compiled version for arm64 were already provided.

I want to run QGC on arm64 ubuntu, we have the same problem

mengchaoheng commented 2 years ago

@dagar

nihavend commented 2 years ago

I am able to run QGroundControl on macos and the px4 on parallels ubuntu 20.04 arm box successfully.

mengchaoheng commented 2 years ago

I am able to run QGroundControl on macos and the px4 on parallels ubuntu 20.04 arm box successfully.

How about QGC on arm-based Ubuntu? I know px4 sitl can be builded on it, and qgc also can run on Mac by Rosetta.

mengchaoheng commented 2 years ago

@SEUZTh @mfry90 @hyperion11 and @ everyone who need to run qgc on arm-based ubuntu: summary as:

  1. Must be install flatpak 1.12.4 or later. 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
  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  3. flatpak install flathub org.kde.Platform/aarch64/5.15-21.08
  4. flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
  5. flatpak install thopiekar.eu org.mavlink.qgroundcontrol after that, maybe restart your computer is need.
nihavend commented 2 years ago

I am able to run QGroundControl on macos and the px4 on parallels ubuntu 20.04 arm box successfully.

How about QGC on arm-based Ubuntu? I know px4 sitl can be builded on it, and qgc also can run on Mac by Rosetta.

unfortunately no. I checked your latest post followed the steps completely without error. But can not start qgc, what is the command ?

mengchaoheng commented 2 years ago

I am able to run QGroundControl on macos and the px4 on parallels ubuntu 20.04 arm box successfully.

How about QGC on arm-based Ubuntu? I know px4 sitl can be builded on it, and qgc also can run on Mac by Rosetta.

unfortunately no. I checked your latest post followed the steps completely without error. But can not start qgc, what is the command ?

after that, maybe restart your computer is need.

mengchaoheng commented 2 years ago

@nihavend

nihavend commented 2 years ago

@nihavend

I restarted my parallels vm. But no command for qgc

mengchaoheng commented 2 years ago

@nihavend

I restarted my parallels vm. But no command for qgc

is there anything output on terminal when you do that 5 step?

nihavend commented 2 years ago

mengchaoheng

Because I had a restart I lost the output but executed one ore time :

parallels@ubuntu-linux-20-04-desktop:~/dev/github$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol Looking for matches… Skipping: org.mavlink.qgroundcontrol/aarch64/stable is already installed

mengchaoheng commented 2 years ago

mengchaoheng

Because I had a restart I lost the output but executed one ore time :

`

parallels@ubuntu-linux-20-04-desktop:~/dev/github$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol

Looking for matches…

Skipping: org.mavlink.qgroundcontrol/aarch64/stable is already installed

`

Find qgc in lower left quarter of Ubuntu,just klick it

nihavend commented 2 years ago

mengchaoheng

Because I had a restart I lost the output but executed one ore time : parallels@ubuntu-linux-20-04-desktop:~/dev/github$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol Looking for matches… Skipping: org.mavlink.qgroundcontrol/aarch64/stable is already installed

Find qgc in lower left quarter of Ubuntu,just klick it

I thought it was set to path as executable or something similar. Never thought it will be installed as an app. Thanks @mengchaoheng.

I was just leaving working on M1. Do you have a slack account ?

mengchaoheng commented 2 years ago

mengchaoheng

Because I had a restart I lost the output but executed one ore time : parallels@ubuntu-linux-20-04-desktop:~/dev/github$ flatpak install thopiekar.eu org.mavlink.qgroundcontrol Looking for matches… Skipping: org.mavlink.qgroundcontrol/aarch64/stable is already installed

Find qgc in lower left quarter of Ubuntu,just klick it

I thought it was set to path as executable or something similar. Never thought it will be installed as an app. Thanks @mengchaoheng.

I was just leaving working on M1. Do you have a slack account ?

Run qgc by 'flatpak run --device=all org.mavlink.qgroundcontrol', see

https://github.com/mavlink/qgroundcontrol/issues/10205#issuecomment-1104257576

nihavend commented 2 years ago

flatpak run --device=all org.mavlink.qgroundcontrol

I made it work as you mentioned before via app search and tried your last advice from command line. Thanks @mengchaoheng

singulardroid commented 2 years ago

I'm trying to install on ubuntu 20.04 arm64 and have following:

Screenshot at Sep 16 21-48-51
singulardroid commented 2 years ago

looks like the QCG app has dependency on specific version of KDE and more recent versions are not being accepted? too fresh for the subject but honestly can't make it run...

mabdinasir commented 2 years ago

@SEUZTh @mfry90 @hyperion11 and @ everyone who need to run qgc on arm-based ubuntu: summary as:

  1. sudo apt install flatpak
  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  3. flatpak install flathub org.kde.Platform/aarch64/5.15
  4. flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
  5. flatpak install thopiekar.eu org.mavlink.qgroundcontrol after that, maybe restart your computer is need.

If using mac M1 and have ubuntu installed on parallels, this works like a charm.

mengchaoheng commented 2 years ago

@SEUZTh @mfry90 @hyperion11 and @ everyone who need to run qgc on arm-based ubuntu: summary as:

  1. sudo apt install flatpak

  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

  3. flatpak install flathub org.kde.Platform/aarch64/5.15

  4. flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo

  5. flatpak install thopiekar.eu org.mavlink.qgroundcontrol

    after that, maybe restart your computer is need.

If using mac M1 and have ubuntu installed on parallels, this works like a charm.

is work now? I have been test a few days ago but failed since the author remove it.

mabdinasir commented 2 years ago

@SEUZTh @mfry90 @hyperion11 and @ everyone who need to run qgc on arm-based ubuntu: summary as:

  1. sudo apt install flatpak

  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

  3. flatpak install flathub org.kde.Platform/aarch64/5.15

  4. flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo

  5. flatpak install thopiekar.eu org.mavlink.qgroundcontrol

after that, maybe restart your computer is need.

If using mac M1 and have ubuntu installed on parallels, this works like a charm.

is work now? I have been test a few days ago but failed since the author remove it.

yes mate, worked for me with no problems, literally minutes ago.

mengchaoheng commented 2 years ago
parallels@ubuntu-linux-20-04-desktop:~$ flatpak install flathub org.kde.Platform/aarch64/5.15
Looking for matches…
error: Nothing matches org.kde.Platform in remote flathub
parallels@ubuntu-linux-20-04-desktop:~$ 

@Abdelnacerr can you help me?

mengchaoheng commented 2 years ago

I can't install org.kde.Platform/aarch64/5.15, how did you do that? @Abdelnacerr

mengchaoheng commented 2 years ago

it work now .juet install flatpak by :

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

1.12.4 or later is need

mengchaoheng commented 2 years ago

looks like the QCG app has dependency on specific version of KDE and more recent versions are not being accepted? too fresh for the subject but honestly can't make it run... install flatpak by

sudo add-apt-repository ppa:alexlarsson/flatpak
sudo apt update
sudo apt install flatpak

the 1.12.4 version or later is need. @singulardroid

mengchaoheng commented 2 years ago

@singulardroid and @ everyone who need to run qgc on arm-based ubuntu: summary as:

  1. 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
  2. flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  3. flatpak install flathub org.kde.Platform/aarch64/5.15-21.08
  4. flatpak remote-add --if-not-exists thopiekar.eu https://dl.thopiekar.eu/flatpak/_.flatpakrepo
  5. flatpak install thopiekar.eu org.mavlink.qgroundcontrol after that, maybe restart your computer is need.
Jcwscience commented 1 year ago

@mengchaoheng I get the error invalid compressed data. Is this flatpak still being maintained?

mengchaoheng commented 1 year ago

@mengchaoheng I get the error invalid compressed data. Is this flatpak still being maintained?

I don't know, sorry about that.

dongdongbh commented 1 year ago

I just installed the flatpak version, but it can not connect to my px4

elenaponce commented 1 year ago

@mengchaoheng I get the error invalid compressed data. Is this flatpak still being maintained?

Hi, where you able to fix this?

sidharthmohannair commented 8 months ago

Installing QGroundControl on Ubuntu ARM64 using Flatpak

This tutorial will guide you through the process of installing QGroundControl (QGC) on Ubuntu ARM64 using Flatpak. QGroundControl is an open-source ground control station for small unmanned vehicles that allows you to plan and execute autonomous missions.

https://github.com/sidharthmohannair/Installing-QGroundControl-on-Ubuntu-ARM64-using-Flatpak.git

mengchaoheng commented 7 months ago

@sidharthmohannair If I want to install a specific version, such as QGC4.1, how do I install it?

sidharthmohannair commented 7 months ago

@sidharthmohannair If I want to install a specific version, such as QGC4.1, how do I install it?

Hi there,

I think QGroundControl 4.1 is not available in the standard Flatpak repository.

Check Available Versions: Use the Flatpak command-line interface to check if the specific version you want is available:

flatpak search qgroundcontrol

However, you have a few options to install it:

Package Manager: Check if QGroundControl 4.1 is available through your Linux distribution's package manager. Some distributions may have QGroundControl packaged and available for installation through their official repositories.

Compile from Source: If neither of the above options is available, you can download the source code of QGroundControl 4.1 from the project's GitHub repository and compile it yourself. This process may require some familiarity with building software from source code and might have additional dependencies.

Flatpak Custom Repository: If you are experienced with creating Flatpak packages, you could create a custom Flatpak package for QGroundControl 4.1 and host it in your own Flatpak repository. This would allow you to install it using Flatpak on your system. However, this option requires some expertise in creating Flatpak packages and maintaining a repository.

Choose the option that best fits your preferences.

mengchaoheng commented 7 months ago

A new method to fill this gap, if you use m1 mac, and want to run sitl on Ubuntu VM, you can run the step:

  1. Make sure your vm and mac in the same local network, for example, setup the network in parallels desktop.

  2. Run following instructions on Vm

    make px4_sitl gazebo
  3. After sitl is running, run

    
    mavlink stop-all

mavlink start -o 14550 -t [your Mac ip] -r 100000 #or other param instead of 100000


And now open a qgc on Mac, you can use it.
HTRamsey commented 5 months ago

Should be possible soon: https://doc.qt.io/qt-6/supported-platforms.html