ValveSoftware / gamescope

SteamOS session compositing window manager
Other
2.88k stars 193 forks source link

Add missing dependencies for Fedora building wiki page #980

Open kekkoudesu opened 9 months ago

kekkoudesu commented 9 months ago

Issue relates to this page: https://github.com/ValveSoftware/gamescope/wiki/Distribution-specific-instructions#fedora

I needed these extra dependencies: libXmu-devel, google-benchmark-devel, and edid-decode.

Suggested dependencies that aren't required include libdisplay-info-devel, vkroots-devel, and glm-devel.

And the mea-vulkan-devel package no longer exists, so it needs to be removed from the command. The replacement is mesa-vulkan-drivers.

Final result:

Build targets in project: 159

wlroots 0.16.0

    drm-backend     : NO
    x11-backend     : NO
    libinput-backend: YES
    xwayland        : YES
    gles2-renderer  : NO
    vulkan-renderer : NO
    gbm-allocator   : NO
    xcb-errors      : NO
    egl             : NO

gamescope undefined

  Subprojects
    glm            : YES
    libdisplay-info: YES
    libliftoff     : YES
    openvr         : YES
    stb            : YES
    vkroots        : YES
    wlroots        : YES

Additionally, ninja creates the gamescope binary at build/src/gamescope rather than build/gamescope as the README says.

Also, would it be possible to link to this Wiki page in the README? I only stumbled upon this page by accident. It's very useful, if only as a way to get a dependency list. Of course, you could also go to the COPR page or the AUR page, but it's nice to have it in a single command for building yourself.

aynozx commented 3 weeks ago

Dependencies according to fedora .src.rpm package:

sudo dnf install meson ninja-build cmake gcc gcc-c++ glm-devel google-benchmark-devel libXmu-devel libdisplay-info-devel libX11-devel libXdamage-devel libXcomposite-devel libXrender-devel libXext-devel libXfixes-devel libXxf86vm-devel libXtst-devel libXres-devel libdrm-devel vulkan-loader-devel wayland-devel wayland-devel wayland-protocols-devel libxkbcommon-devel SDL2-devel pipewire-devel libavif-devel wlroots-devel libliftoff-devel libcap-devel hwdata-devel spirv-headers-devel stb_image-devel stb_image-static stb_image_resize-devel stb_image_resize-static stb_image_write-devel stb_image_write-static vkroots-devel glslang libliftoff xorg-x11-server-Xwayland mesa-dri-drivers mesa-vulkan-drivers