I was trying to follow Purism’s tutorial on building Flatpak apps for the Librem 5 but can’t get any of the examples to build with Flatpak. I was able to get the non-Purism Flatpak hello world example to build and run, so the issue seems to be specific to meson. However, when I build directly with meson and ninja as per the first link, the app builds without a problem. Has anyone else had this problem, or does anyone know what this error means? The error occurs when I try running the flatpak-builder
script:
$ flatpak-builder --arch=aarch64 --repo=myrepo --force-clean -v _flatpak com.example.first_application.json
FB: Running: git config --get user.email
FB: Running: git config --get user.name
Emptying app dir '_flatpak'
FB: Running: flatpak info --arch=aarch64 --show-commit org.gnome.Sdk 3.30
FB: Running: flatpak info --show-location --arch=aarch64 org.gnome.Sdk 3.30
FB: Running: flatpak info --arch=aarch64 --show-commit org.gnome.Platform 3.30
Downloading sources
Starting build of com.example.first_application
Cache miss, checking out last cache hit
FB: starting: rofiles-fuse /home/user/repos/LibremApps/first-application/_flatpak /home/user/repos/LibremApps/first-application/.flatpak-builder/rofiles/rofiles-MetXqM
========================================================================
Building module first_application in /home/user/repos/LibremApps/first-application/.flatpak-builder/build/first_application-13
========================================================================
FB: Running: flatpak build --die-with-parent --env=FLATPAK_BUILDER_BUILDDIR=/run/build/first_application --nofilesystem=host --filesystem=/home/user/repos/LibremApps/first-application/.flatpak-builder/build/first_application-13 --bind-mount=/run/build/first_application=/home/user/repos/LibremApps/first-application/.flatpak-builder/build/first_application-13 --build-dir=/run/build/first_application/_flatpak_build --bind-mount=/run/ccache=/home/user/repos/LibremApps/first-application/.flatpak-builder/ccache --env=SOURCE_DATE_EPOCH=1555546863 '--env=CFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection' '--env=CXXFLAGS=-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection' '--env=LDFLAGS=-L/app/lib -Wl,-z,relro,-z,now -Wl,--as-needed' --env=CCACHE_DIR=/run/ccache/disabled --env=PATH=/app/bin:/usr/bin --env=LD_LIBRARY_PATH=/app/lib --env=PKG_CONFIG_PATH=/app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig --env=FLATPAK_BUILDER_N_JOBS=4 /home/user/repos/LibremApps/first-application/.flatpak-builder/rofiles/rofiles-MetXqM meson --prefix=/app ..
bwrap: execvp meson: No such file or directory
Error: module first_application: Child process exited with code 1
FB: unmounting rofiles-fuse /home/user/repos/LibremApps/first-application/.flatpak-builder/rofiles/rofiles-MetXqM