GNOME Software doesn't build

Thanks for the reply! The first command fails but with a different error:

Run-time dependency flatpak found: YES 1.12.7
Run-time dependency ostree-1 found: YES 2022.5
WARNING: pkgconfig variable 'soupapiversion' not defined for dependency flatpak.

meson.build:235:4: ERROR: Problem encountered: flatpak was built against a different API of libsoup. 2.4 instead of 3.0.