Setting up Flatpak for Plasma Mobile Development¶
The Flatpak documentation should be used as the main reference but we will provide some basic steps for installing Flatpak for Plasma Mobile on the development system based on the Plasma Mobile application development guide:
sudo apt-get install flatpak flatpak-builder
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.kde.Platform//5.12 org.kde.Sdk//5.12
You will also need to install a version of the qemu emulator that can be used to assist with cross-compilation. This is described in Cross-Compiling and repeated here for convenience:
apt-get -y install qemu-user-static
This collection of emulator binaries includes an aarch64 emulator that will be used when compiling applications for the phone.
With these dependencies installed it should be possible to create applications based on Kirigami for local testing.