Setting up Flatpak for GNOME Development


While this documentation will direct you to the stable flatpak GNOME repository, it will be common and often required to use the gnome-nightly repository instead, for example to access the master branches of GNOME Sdk and Platform. These master branches may be required to build projects such as Calls. For more information, see the Nightly GNOME Apps page.

The Flatpak documentation should be used as the main reference but we will provide some basic steps for installing Flatpak for GNOME development on the development system:

purism@pureos:~$ sudo apt-get install flatpak flatpak-builder
purism@pureos:~$ flatpak remote-add --if-not-exists flathub
purism@pureos:~$ flatpak install flathub org.gnome.Platform//40

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.