Hi,
i had full success in cross-building a ARM flatpak with the following procedure - everything as root-User.
Create a Podman container
podman run --interactive --tty --name test --volume /tmp/.X11-unix:/tmp/.X11-unix \
--env DISPLAY --device /dev/dri --device /dev/snd --device /dev/input --volume \
/etc/localtime:/etc/localtime:ro --volume /sysroot/home/test/tmp:/mnt \
--cap-add=ALL --security-opt seccomp=unconfined \--device /dev/fuse ubuntu:19.10 bash
(exit the container with exit
Load the necessary Kernel Module
modprobe fuse
Enter the Pod and install the necessary prerequisites
podman start --latest
podman -ilt --privileged bash
(Now you are inside the container)
apt-get update; apt-get -y dist-upgrade
apt-get install flatpak-builder qemu-system-arm qemu-user-static
flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install -y --arch=arm org.freedesktop.Sdk/arm/19.08
update-binfmts --enable
Build your package
(inside the Container)
flatpak-builder --arch=arm --repo=repo --force-clean --install-deps-from=flathub \
build_arm com.github.joncampbell123.DOSBox-X.json
flatpak build-bundle --arch=arm repo dosbox-x.flatpak \
com.github.joncampbell123.DOSBox-X 0.82.24