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
Flatpak recipes #3784
Flatpak recipes #3784
Conversation
You might be interested in linuxdeployqt. It allows to bundle a Qt application as a standalone bundle that runs on various Linux distributions. As a side effect, it can also generate an AppImage. |
@probonopd that sounds interesting. Am I correct, that
|
@m-kuhn yes, you are correct |
@m-kuhn very interesting! Tried your branch (Debian testing here...)
ah... flatpak-builder is a separate package/binary.
That takes a long time!
Ok. I presume? Run it with:
Starting with:
So no Python yet? I'm also wondering which dir is used for configs.. But nice:
Thanks for this journey!! |
Thanks for testing Richard! Building only takes so long the first time, because all dependencies need to be built as well (and the ccache for building qgis is still cold). Do it again and it will be fast as a lightning. If we go down this road, we could also send all the dependencies into a separate runtime/sdk so they would live in a separate package and could be downloaded prebuilt. I think configuration is sent to
Python support is compiled (sip/pyqt/qgis bindings are available) but there are a number of packages still missing, python3-future probably being to most critical one. And there's certainly a lot to be cleaned up and improved |
@probonopd I gave it a short try and it was very easy to create a package. Running it gave me an error
Can I manually specify additional libraries to bundle? Maybe
|
@m-kuhn if your application links libqgis_app.so.2.99.0 and you use the Did you use the |
@probonopd Yes, I was trying to package directly from the build folder (i.e. without Something else, there are other resources (additional libs which are loded as plugins, sqlite databases etc.) which need to be packaged as well. I think it would be easiest if this could be installed to a custom prefix and packaged from there, is this possible? |
Yes, that is the "FHS-like mode" that I have started to work on (in a separate feature branch) but it still has some issues and needs some love. If you can invest some time in this, your help and PRs would greatly be appreciated. |
@probonopd I might have some time to look into this again soon. I noticed that your feature branch has disappeared, does that mean this is merged and functional?
Questions therefore:
Thanks for any input! |
Yes, this is now in the |
https://flathub.org/ Hello, now released flatpak builder and leave flatpak links in the hub. I hope to see qgis 2.18. and 3.0 soon in these easy to install formats. I am not a programmer so I can not help much. Thank you |
Hello, now released flatpak builder and leave flatpak links in the hub. I hope to see qgis 2.18. and 3.0 soon in these easy to install formats. I am not a programmer so I can not help much. Thank you |
"id": "org.qgis.qgis", | ||
"branch": "master", | ||
"runtime": "org.kde.Platform", | ||
"runtime-version": "master", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably use the stable kde runtime version 5.9 which is available on flathub, rather than the unstable master version.
We would love to have this on flathub (although it needs to be "last stable relases" rather than a snapshot, thats what flathub targets). If you're interested in this, here are some docs on how to submit it: |
Would it make sense to look into this again? Last QGIS is based on Qt 5. |
Has any progress in appimages or flatpak Qgis? |
This is still a very interesting topic I'd like to see land but due to time constraints (and a project which I thought I could use as umbrella for this took a different direction) I cannot make it at the moment. Is there anyone else available to take a lead on this? |
I still have a question about creating a QGIS snap vs flatpak. Its obvious the community doesn't have the resources to support both. @m-kuhn why did you prefer to do this initial work in flatpak? |
Because I assumed snap is another candidate for a Canonical NIH-syndrome-project like upstart and mir. Not sure about the status nowadays. |
my little experience with snap it creates more common user problems due to sandbox mechanism... other that building in dev mode the package. It's simpler to use docker with the flexibility to mount volumes. No idea if flatpak is affected to the same security limitations. |
@luipir I don't think the two are mutually exclusive -- docker is great, but it's not a good solution for end users. Flatpak/snappy are designed to be gui-friendly for easy install with no technical experience. My understanding is that currently flatpak is giving the better desktop app experience than snaps (but I've only direct experience with flatpak, so I'm going off 2nd hand information) |
There is also AppImage which seems more simpler to use for end-users (there is no need to install additional packages, just download file and run it) and does not require root rights. |
@nyalldawson exactly from the user experience point of view I'm talking about... I'm currently using CloudCompare that, on linux, is distributed via snap and it's hard to use you local data (that are really BIG data) nor linking... the only (simple) way is to duplicate them, that is time/space consuming! At the end I had to compile from source to be usable. |
@luipir I think that's more than likely just an issue with that particular snap not requesting the correct permissions to access local files. |
That's probably the way I'd go now. Leave repository approaches to package maintainers / distributions while offering a downloadable executable which works out of the box. |
I'm wondering about Flatpak as well. From what I have read it can't run CLI tool (e.g newer GDAL versions shipped with QGIS) or server processes (.eg QGIS server). See https://askubuntu.com/questions/866511/what-are-the-differences-between-snaps-appimage-flatpak-and-others. If we used AppImage then we could could distribute it via qgis.org and provide the option to auto-update. |
Flatpak can run both server and CLI tools, there is nothing magic about such programs after all. However, the focus of flatpak is on GUI tools, so that is where all the features for integration are. This also means that it doesn't have the features you expect in a tool focused on server use, like docker or kubernetes. For instance there is nothing handling firewall/network management. load balancing or migration. |
For me the main usage for this would be shipping development (or recently new) releases to users as quickly and easily as possible. What's your main goal with integrating these package formats? For server components the same thing can be done conveniently using technologies like docker images, so that would make it a second priority. |
Ok sorry. I was only going on the askubuntu.com post.
I would say a real benefits are user who are on older distros that don't have the newer dependences, or want to run side by side versions of QGIS. We have both of these situations in our department.
Yes that is true. Ignore that feature then. |
Here's some flatpak packaging, in case someone wants to review: |
hi, guys thanks for qgis 3.2 flatpak. Is there some plan to make 2.18 version flatpak or appimage? |
For completion, 3.2.3 can be obtained here: https://flathub.org/apps/details/org.qgis.qgis If any member of QGIS upstream want to review and help, that's more than welcome. |
@aleixpol I did have a brief look, but don't feel qualified to give a proper review. At least, nothing stood out to me. But, I just want to say that your efforts here are VERY much appreciated and that having flatpaks available is just fantastic. |
❤️ FWIW this issue can probably be closed. |
@aleixpol it already is 😛 |
Thanks @aleixpol |
@aleixpol @nyalldawson @m-kuhn is this package stable/mature enough to be put on the 'download' pages in qgis.org? Or should we try to encourage people to use it a little further first? |
Putting it there sounds good. Maybe put an "experimental" or "beta" label next to it (and remove it when 3.4 hits the osgeo4w ltr branch - unless a good reason to keep the beta label has surfaced by then). |
hi there, with this version qgis 3.2 the repo plugins is not loaded. I opened a issue with this.flathub/org.qgis.qgis#5 |
Ok, I will test an install, and add some instructions to the docs @Lvaskz as mentioned in the issue reply, adding --share=network just works :-) @aleixpol Hi, trying to install here on a Debian Gnome box. |
@aleixpol commenting, here unless you want an issue for it: QGIS 3.2.3 is running nicely here next to my other QGiS's (self compiled, installed in my homedir) ! One thing I noted: the flatpak QGIS is not using the 'normal' QGIS profile folder paths, so instead of: Is this a flatpak convention? Or is it to be safe for now? |
I noticed 3d support is not working for me. I've raised an issue for that |
yay!
Flatpak does it this way to separate every application in a sandbox effectively. This way every application doesn't get to read and mess with each other's configuration. |
Grass gis 7.4 come not with qgis flatpak., I reported this like issue |
Is anyone else get a startup message of:
Maybe some PNG file needs to have it's iCCP chunk removed |
The libpng warning is caused by PNGs inside qtwebkit -- nothing we can fix unfortunately |
Ok thanks. |
The flatpack desktop icon doesn't seem to have a transparent background. See comparison with Debian package install: I've raised an issue for this flathub/org.qgis.qgis#9 |
Hi, When I try to install qgis with flatpack I get: Thanks, |
@reginaldc please create an issue at https://github.com/flathub/org.qgis.qgis/issues as that is where the flatpak pro's are, but my guess is that your flatpak install is not ok, or you miss keys? |
This is a temporary issue with the flathub CDN, and it will hopefully go away soon. Tracked here: flatpak/flatpak#1450 |
@richard |
Hi guys, Can some one of you check if this issues flathub/org.qgis.qgis#10 |
Flatpak is a cross-distribution way of shipping applications to users including dependencies (bye-bye Qt 5.6)
There is a readme included in this pr, that explains how to build it. It's potentially the simplest way to build QGIS yourself ;)
My long-term goals are
Installing
Flatpak is available on various distributions, although in general only in their
very latest release. Get flatpak!
Building
Since we don't have an online repository (yet), you need to build a package locally.
In the QGIS sourcecode folder