Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Compile Gamescope
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
TuxSec
n00b
n00b


Joined: 13 May 2023
Posts: 4

PostPosted: Sat May 13, 2023 3:26 pm    Post subject: Can't Compile Gamescope Reply with quote

Hi,

I can't get the resolution in games to the native of my monitor so I thought I try gamescope, if I compile gamescope with portage it gives me a compile failed.

Log file: https://pastebin.com/mGGCCbYN

Manual installation from the GitHub page fails after meson build/ with missing dependency "benchmark".

openrc
Wayland
wm: hyprland v0.25
Kernel: 6.1.27-gentoo-r1
NVIDIA 525.116.03 kernel-open flag set
Dual monitor setup:
Left: 3840x2160@120hz
Right: 2560x1440@240hz
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1670

PostPosted: Tue May 16, 2023 2:08 am    Post subject: Reply with quote

Hmmm interesting
Your error is here:
Quote:
../gamescope-3.12.0-beta3/src/wlserver.cpp:1110:88: error: invalid conversion from ‘wlr_renderer*’ to ‘uint32_t’ {aka ‘unsigned in ’} [-fpermissive]
1110 | wlserver.wlr.compositor = wlr_compositor_create(wlserver.display, wlserver.wlr.renderer);
| ~~~~~~~~~~~~~^~~~~~~~
| |
| wlr_renderer*
../gamescope-3.12.0-beta3/src/wlserver.cpp:1110:56: error: too few arguments to function ‘wlr_compositor* wlr_compositor_create(wl_display*, uint32_t, wlr_renderer*)’
1110 | wlserver.wlr.compositor = wlr_compositor_create(wlserver.display, wlserver.wlr.renderer);
|

Possibly version mismatches, or a bug.
I have never tried to compile gamescope, and I don't run a hardened and/or a Wayland only system.
Do your your game resolution issues resolve in a standard Xorg system profile?
Wayland kinda reminds me of IPV6 its a mostly good idea, built with good intentions, and a few years away from fully working without its predecessor and always will be.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
TuxSec
n00b
n00b


Joined: 13 May 2023
Posts: 4

PostPosted: Wed May 17, 2023 1:28 pm    Post subject: Reply with quote

I'm running Wayland/hyprland for like 6 months without many issues on an Nvidia GPU, had more problems on x11/dwm i.e. scaling issue with high res monitor, screen tearing to name a few.
I would say Wayland is in a daily driver state but that's just my opinion.

But back to the topic I got gamescope to compile manually (comment out the benchmark dependency in the build file) but every game I start with gamescope launch option in steam are transparent I can see the game menu but with my desktop background for dark colors. I tried to set some window rules in the hyprland config file put without luck so far.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1670

PostPosted: Wed May 17, 2023 8:57 pm    Post subject: Reply with quote

TuxSec wrote:


But back to the topic I got gamescope to compile manually (comment out the benchmark dependency in the build file) but every game I start with gamescope launch option in steam are transparent I can see the game menu but with my desktop background for dark colors. I tried to set some window rules in the hyprland config file put without luck so far.


Interesting well welcome to life on the bleeding edge.
so did you compile gamescope version 3.12.0-beta3 manually or another version?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
TuxSec
n00b
n00b


Joined: 13 May 2023
Posts: 4

PostPosted: Fri May 19, 2023 6:54 pm    Post subject: Reply with quote

Quote:
so did you compile gamescope version 3.12.0-beta3 manually or another version?

Yes same behavior on the newest version 3.12.0-beta7, but I don't think it is a gamescope problem more the compositor hyprland.

On kde-plasma under wayland it runs flawlessly with gamescope so ether it is a bug in hyprland or a config setting.

Edit: I fix it with a window rule

windowrule = forcergbx,^(gamescope)$
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum