How do I install a package that is not yet in DNF?

,

I’m trying to compile a piece of software with GNOME Builder to learn compiling software. After I opened one of the example projects (GNOME Music), the “Hammer” button that’s supposed to start the building process was gray and a drop-down menu said “There is a problem with current build configuration”.

I figured I should change “Active configuration” from “org.gnome.Music.json” to “Default”. I can now press the hammer button, but the building process is stuck on

../../../../../../Projects/gnome-music/meson.build:59:0: ERROR: Dependency lookup for gtk4 with method 'pkgconfig' failed: Invalid version, need 'gtk4' ['>= 4.16.0'] found '4.14.5'.

However, I’m not able to access a newer version of gtk4 with “dnf” — installed one seems to be of the latest version.

It looks like the app creators used a beta version of this library. How can I install this beta version? Or should I better edit the config file?

For F40 there is no such version available. It probably wont work because of missing dependencies.

Can you install in a VM Fedora 41? There it comes with the version you need:

`Fedora 41 [4.16.3-1.fc41]

1 Like

Also, f41 has version 4.16.5-2.fc41 in the updates.

1 Like

You could also install a Toolbx container with an F41 environment, instead of the host system’s F40:

toolbox create --distro fedora --release 41

Inside the container you should have the right version of gtk.

This way you also have a certain level of isolation from the host system, which should give more freedom in your learning trials.

1 Like

I was lately seen a manual from, I think it was RH, where also explained how to run a GUI app from toolbox.
If someone remembers a link where explains this, would be great to post it here.

If it’s a GUI app installed within the Toolbx container, it can be launched from the command line as usual.

You might be referring to something else though.

I decided to update my whole operating system instead. Now then I try to compile it throws an error

** (flatpak-builder:209818): ERROR **: 20:59:10.057: Failed to load included manifest (/home/user/Projects/gnome-music/subprojects/shared-modules/lua5.4/lua-5.4.json): <data>:33:70: Parse error: scanner: unterminated string constant