Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot build flatpak-builder beacuse no appstream.compose?

I cannot find appstream.compose module. It is needed for flatpak-builder:

$ meson setup _build                   (git)-[main]
$ meson install -C _build                   
The Meson build system
Version: 1.1.1
Source dir: /home/q/github/flatpak-builder
Build dir: /home/q/github/flatpak-builder/_build
Build type: native build
Project name: flatpak-builder
Project version: 1.3.4
C compiler for the host machine: cc (gcc 10.2.0 "cc (PCLinuxOS 10.2.0-2pclos2020) 10.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program debugedit found: YES 5.0 (/usr/bin/debugedit)
Program appstreamcli found: YES 0.15.4 (/usr/bin/appstreamcli)

meson.build:45:23: ERROR: Command `/usr/bin/appstreamcli compose --help` failed with status 4.

The problem is that using the standard way of installing the compose module doesn't work:

$ sudo appstreamcli install org.freedesktop.appstream.compose

Unable to find component with ID 'org.freedesktop.appstream.compose'!

So how to install the compose module and build flatpak-builder?

like image 749
psprint Avatar asked Mar 10 '26 03:03

psprint


1 Answers

To resolve this, install AppStream compose with your distribution. For example, with Ubuntu or Debian:

apt-get install appstream-compose

Fedora:

dnf install appstream-compose

openSUSE:

zypper in AppStream-compose
like image 186
Dan Yeaw Avatar answered Mar 12 '26 16:03

Dan Yeaw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!