Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)
Due to what appears to be dependency issues, the gamescope package isn't avalible for Ubuntu 24.04. So here's a guide on how to build and install gamescope for Ubuntu 24.04
- Pull latest git of gamescope
$ git clone https://github.com/ValveSoftware/gamescope.git
- Install needed dependencies to build
gamescope
$ sudo apt install libbenchmark1.8.3 libdisplay-info1 libevdev-dev libgav1-1 libgudev-1.0-dev libmtdev-dev libseat1 libstb0 libwacom-dev libxcb-ewmh2 libxcb-shape0-dev libxcb-xfixes0-dev libxmu-headers libyuv0 libx11-xcb-dev libxres-dev libxmu-dev libseat-dev libinput-dev libxcb-composite0-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-res0-dev libcap-dev wayland-protocols libvulkan-dev libwayland-dev libx11-dev cmake pkg-config meson libxdamage-dev libxcomposite-dev libxcursor-dev libxxf86vm-dev libxtst-dev libxkbcommon-dev libdrm-dev libpixman-1-dev libdecor-0-dev glslang-tools libbenchmark-dev libsdl2-dev libglm-dev libeis-dev libavif-dev
- Build
gamescopewith meson first
$ meson build/
- Buid
gamescopewith ninja
$ ninja -C build/
- If the ninja build didn't produce any errors, install it to your system.
$ meson install -C build/ --skip-subprojects
new install of Ubuntu 24.04, when I try to test gamescope I get this:
`$ gamescope -- vkcube
[gamescope] [Info] console: gamescope version 3.14.24-24-g5e8fddf
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [Info] vulkan: selecting physical device 'AMD Radeon RX 7800 XT (RADV NAVI32)': queue family 1 (general queue family 0)
[gamescope] [Info] vulkan: physical device supports DRM format modifiers
[gamescope] [Error] vulkan: vkAllocateDescriptorSets failed
(gamescope:7887): Gtk-WARNING **: 14:32:29.716: gtk_disable_setlocale() must be called before gtk_init()
SDL_Vulkan_CreateSurface failed: VK_KHR_wayland_surface extension is not enabled in the Vulkan instance.terminate called without an active exception
Aborted (core dumped)`
Any input?