Skip to content

Six of the seven OpenVR tools don't build without the system openvr package (openvr/openvr.h not found) #8

Done

Description

@David581

build-driver.sh (lines 283–288 as of 39b1e48) compiles the tools with -I"$SRC/src/external/openvr_includes". That directory has openvr.h at its top level, but vrlaunch, vrframetiming, vrposelog, vrhandlog, vrposeprobe and vrdisplaydump include <openvr/openvr.h>, so they fail with fatal error: openvr/openvr.h: No such file or directory. Only vrprobe, which includes "openvr.h", builds.

install-deps.sh doesn't install an openvr package, so on a system without it, "Set Custom Play Area (legacy)" says tools/vrlaunch isn't built, and JITTER_CHECK=1 runs without vrframetiming. After installing the distribution's openvr package (2.15.6 on CachyOS) and compiling again, all seven tools built.

Suggestion: include "openvr.h" in those six tools, as vrprobe does.

System: PSVR2-DriverKit 0.3 (AppImage) · CachyOS, kernel 7.3.6 · Intel Arc A770 16 GB (DG2) on xe, Mesa 26.3.1 · niri 26.04 (Wayland) · SteamVR 2.18.4 · PS VR2 firmware 6.00 on Sony's PC adapter

I found and wrote this up with help from an AI assistant (Claude); the logs are from my own machine.

Activity

  1. David581 commented on Dec 1, 2026

    @David581
    Author

    Here are the logs and the form fields.

    Logs: issue8-logs.tar.gz: tools.build.log (the six tools' build logs in one file) and repro.txt. The build logs of the failed run were replaced when I compiled again after installing the openvr package, so I reproduced it with the same g++ line as build-driver.sh lines 283–288 and /usr/include/openvr hidden; repro.txt has the command. My user name in paths is replaced.

    What happens

    Compile Driver ends with DONE, but without the system openvr package six of the seven OpenVR tools aren't built:

    vrlaunch: FAILED: source/tools/vrlaunch.cpp:8:10: fatal error: openvr/openvr.h: No such file or directory
    vrprobe: built
    vrframetiming, vrposelog, vrhandlog, vrposeprobe, vrdisplaydump: the same error
    

    vrprobe builds because it has #include "openvr.h", which the -I .../monado/src/external/openvr_includes path finds. The other six have #include <openvr/openvr.h>, and that folder has no openvr/ subfolder. After pacman -S openvr all seven build.

    Steps to reproduce

    1. Arch-based system without the openvr package
    2. DriverKit → Compile Driver
    3. The output has note: tools/... not built, and e.g. vrframetiming is missing in kit/tools

    Here I fixed it by installing openvr (pacman -S openvr). Install dependencies doesn't install it, so adding it there would fix it for everyone. Or, without the extra package: #include "openvr.h" in the six tools, like vrprobe. With that change all six build without openvr installed, and the binaries are byte-identical (the bundled headers and Arch's package are both OpenVR 2.15.6).

    Where it happens: Compile Driver or Install dependencies
    Version: v0.3 AppImage, Compile Driver on 2026-12-01 (source 39b1e48)
    Distribution, desktop and session type: CachyOS (kernel 7.3.6), niri 26.04, Wayland; compiled on the host, no toolbox/distrobox
    Hardware: Intel Arc A770 16 GB on xe (Mesa 26.3.1), AMD Ryzen 9 3900X

    issue8-logs.tar.gz

  2. mkooner commented on Dec 1, 2026

    @mkooner
    Owner

    I will add openvr to the dependencies list

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions