Skip to content

Instantly share code, notes, and snippets.

@russiantux
Last active November 17, 2024 02:27
Show Gist options
  • Save russiantux/592b1267591c011bf765b14590774a5f to your computer and use it in GitHub Desktop.
Save russiantux/592b1267591c011bf765b14590774a5f to your computer and use it in GitHub Desktop.
Build & install gamescope for fresh-install Ubuntu 24.04 (Noble Numbat)

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

  1. Pull latest git of gamescope

$ git clone https://github.com/ValveSoftware/gamescope.git

  1. 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

  1. Build gamescope with meson first

$ meson build/

  1. Buid gamescope with ninja

$ ninja -C build/

  1. If the ninja build didn't produce any errors, install it to your system.

$ meson install -C build/ --skip-subprojects

@zachboatwright
Copy link

3.14.26 breaks building in Ubuntu 24.04 with the wayland-server error, so a revert to 3.14.24 or the last commit before the wlroots update (5e8fddf) is needed to be done first before starting the build.

Here's what I used: git reset 5e8fddf --hard; git clean -fxd; git submodule update --init --force --recursive

Here's a link to the last commit before the wlroots update: ValveSoftware/gamescope@5e8fddf

And here's the breaking commit: ValveSoftware/gamescope@3542c4d

Thank you so much! I've been trying to install this for days now and that finally worked.

@cootshk
Copy link

cootshk commented Sep 29, 2024

On Ubuntu Server 24.04, you also need these dependencies:
sudo apt install -y xwayland hwdata

@felikcat
Copy link

felikcat commented Nov 4, 2024

git clone https://github.com/ValveSoftware/gamescope.git should be git clone https://github.com/ValveSoftware/gamescope.git --recursive

@Mushufaza
Copy link

Hello, I have installed Kde Neon User Edition (24.04), try everything, it just worked out to install this pack from terminal "Sudo dpkg -i *.deb" has some glitch but it works!

https://github.com/akdor1154/gamescope-pkg/releases/download/v3.12.5-2/gamescope_3.12.5-2_amd64.deb

https://github.com/akdor1154/gamescope-pkg/releases

It is a previous version, but it is what there is U.U Ubuntu 24.04 Derivatives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment