hhd-dev / handheld-gamescope

Up to date gamescope build files for Arch with patches for the Legion Go and ROG Ally.
1 stars 0 forks source link

build fails #1

Open ripplingsnake opened 4 months ago

ripplingsnake commented 4 months ago

vr flags fails you cant delete open vr as its a dependancy FAILED: src/gamescope.p/vr_session.cpp.o c++ -Isrc/gamescope.p -Isrc -I../gamescope/src -I../gamescope/src/reshade/source -I../gamescope/src/reshade/include -I../gamescope/thirdparty/SPIRV-Headers/include/spirv/unified1 -Isubprojects/stb -I../gamescope/subprojects/stb -Iprotocol -I/usr/include -I/usr/include/libdrm -I/usr/include/SDL2 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/openvr -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++20 -DWLR_USE_UNSTABLE -Wno-unused-parameter -Wno-missing-field-initializers -Wno-invalid-offsetof -Wno-unused-const-variable -Wno-volatile -Wno-ignored-qualifiers -Wno-missing-braces -ffast-math -DHAVE_PIPEWIRE=1 -DHAVE_OPENVR=1 '-DHWDATA_PNP_IDS="//usr/share/hwdata/pnp.ids"' -march=native -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -fPIE -D_REENTRANT -pthread -MD -MQ src/gamescope.p/vr_session.cpp.o -MF src/gamescope.p/vr_session.cpp.o.d -o src/gamescope.p/vr_session.cpp.o -c ../gamescope/src/vr_session.cpp ../gamescope/src/vr_session.cpp:119:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBar’ redeclared as different kind of entity 119 | const VROverlayFlags VROverlayFlags_EnableControlBar = (VROverlayFlags)(1 << 23); | ^~~~~~~ In file included from ../gamescope/src/vr_session.hpp:10, from ../gamescope/src/vr_session.cpp:1: /usr/include/openvr/openvr.h:3933:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBar’ 3933 | VROverlayFlags_EnableControlBar = 1 << 23, | ^~~~~~~ ../gamescope/src/vr_session.cpp:120:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarKeyboard’ redeclared as different kind of entity 120 | const VROverlayFlags VROverlayFlags_EnableControlBarKeyboard = (VROverlayFlags)(1 << 24); | ^~~~~~~~~~~ /usr/include/openvr/openvr.h:3936:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarKeyboard’ 3936 | VROverlayFlags_EnableControlBarKeyboard = 1 << 24, | ^~~~~~~~~~~ ../gamescope/src/vr_session.cpp:121:26: error: ‘const vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarClose’ redeclared as different kind of entity 121 | const VROverlayFlags VROverlayFlags_EnableControlBarClose = (VROverlayFlags)(1 << 25); | ^~~~~~~~ /usr/include/openvr/openvr.h:3942:17: note: previous declaration ‘vr::VROverlayFlags vr::VROverlayFlags_EnableControlBarClose’

antheas commented 4 months ago

Remove the package openvr from your system and then it will work

ripplingsnake commented 4 months ago

if open vr is removed it still errors out

If build failures persist, run "meson setup --wipe" to rebuild from scratch using the same options as passed when configuring the build. INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /home/marc/handheld-gamescope/src/build ninja: Entering directory `/home/marc/handheld-gamescope/src/build' ninja: error: '/usr/lib/libopenvr_api.so', needed by 'src/gamescope', missing and no known rule to make it ==> ERROR: A failure occurred in build(). Aborting...