Cannot build/install rhythmbox Ubuntu 21.04 minimum

I’m following https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/INSTALL.quick to build and install rhythmbox on a Ubuntu 21.04 minimum installation. This version does not include rhythmbox package. Starting rhythmbox built from source results in a core dumped message:

# Uninstall distro's rhythmbox
sudo apt purge --auto-remove rhythmbox

# Clone Rhythmbox source
git clone git@gitlab.gnome.org:GNOME/rhythmbox.git

cd rhythmbox

# Setup project build
meson _build \
    -Dprefix=/tmp/rhythmbox \
    -Dfm_radio=enabled \
    -Dplugins_python=enabled \
    -Dlibnotify=enabled \
    -Ddaap=enabled \
    -Dgrilo=enabled \
    -Dgudev=enabled \
    -Dipod=enabled \
    -Dlibsecret=enabled \
    -Dmtp=enabled \
    -Dlirc=enabled \
    -Dsample-plugins=true \
    -Dgtk_doc=true \
    -Dhelp=true \
    -Dtests=true

# Build sources
ninja -C _build

# Install
ninja -C _build install

# Run Rhythmbox executable
_build/shell/rhythmbox &

(rhythmbox:67745): GLib-GIO-ERROR **: 21:44:52.186: Settings schema 'org.gnome.rhythmbox' is not installed
Trace/breakpoint trap (core dumped)

Which package should be installed in order to get these schema’s resolved without installing distro’s rhythmbox package?

The settings schema is provided by the project itself and should become available to you after installing it. Might be needed to either run glib-compile-schemas. Ideally this should be done as part of the build system (since some version of Meson there even is a dedicated method in the GNOME module for exactly this). https://gitlab.gnome.org/GNOME/rhythmbox/-/issues/1933 might be a bit helpful.

1 Like

Thanks for your fast reply. I’ll check how to run glib-compile-schemas manually. Yes, I’d like to see this included in the Meson/Ninja build. However, the ticket is already closed, so some manual steps are needed which are not documented in https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/INSTALL.quick.

There’s no package to install: you either need to install Rhythmbox after building it—i.e. run it installed—or you need to call glib-compile-schemas in the build directory and then modify the GSETTINGS_SCHEMA_DIR environment variable to point to where the compile schema file is available.

1 Like

A Rhythmbox developer updated the build instructions yesterday which includes the schema usage and is now working and clear:
https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/INSTALL.quick
One gettext packages is still missing when building on a clean Ubuntu 21.04:

sudo apt install gettext

Reported in https://gitlab.gnome.org/GNOME/rhythmbox/-/issues/1957.

Thanks a lot for your help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.