XDG Desktop Portal and Flatpak are more and more in used. If you are using Qt, Flatpak KDE runtime is a good place to start, install pre-built Qt binaries in Flatpak world. But it’s normally for the released versions.
If you want to play with the edge of Qt, for example, dev branch, you can try following steps:
1 2 3 4 5 6 7 8 9 10 |
git clone https://github.com/liangqi/flatpak-kde-runtime.git cd flatpak-kde-runtime make remotes make check make org.kde.Sdk.app cd repo flatpak remote-add --user --no-gpg-verify liang-flatpak file://$(pwd) flatpak install --user liang-flatpak org.kde.Platform flatpak install --user liang-flatpak org.kde.Sdk |
And here is an example at io.qt.examples.dropsite.yaml
1 2 3 4 |
git clone https://github.com/liangqi/dropsite-flatpak.git cd dropsite-flatpak flatpak-builder --user --install --force-clean build-dir io.qt.examples.dropsite.yaml |
Thanks bbhtt for the help in matrix.to: Packaging KDE Apps in Flatpaks channel.