Note: Ready-to-use driver builds are provided in the /deployable folder in this repository, but if you would prefer to build the driver yourself instructions are documented below.
- Ensure that you have cmake installed (along with the path variable set): https://cmake.org/download/
- Install the
C++ CMake tools for Windowsfor Visual Studio:- Modify Visual Studio in Visual Studio installer
- Navigate into the project folder.
$ cd etee-OpenVR-Driver - Make a build directory and change your working directory.
$ mkdir build $ cd build
- Run CMake. This should generate Visual Studio project files in the
build/folder, which you can then compile.$ cmake ..
You can run a cmake build in the build/ directory with the following commands:
To build a Release version (recommended):
$ cmake --build . --config ReleaseTo build a Debug version (includes more event printouts for easier development):
$ cmake --build . --config DebugThe artifacts of the build will be outputted to build/Debug/, or build/Release/ depending on build configuration. To add the driver build to SteamVR, follow the steps described in Step 3: How to add the driver.
- Open the Visual Studio project (.sln file) in the
build/directory. - You should already have the ability to build the driver by pressing
Ctrl + Shift + B.
Note: The artifacts of the build will be outputted to build/Debug/, or build/Release/ depending on build configuration
- Install the Microsoft Process Debugging Tool from here.
- Navigate to
Debug > Other Debug Targets > Child Process Debug Settings.- Check
Enable child process debugging. - On the first row (with the process name
<All other processes>, make sure that theActionis set toDo not debug. - Add a new row (double-click on the empty
Process nameunderneath<All other processes>). - Add
vrserver.exeas the process name. - Ensure that
Actionis set toAttach Debugger.
- Check
It's usually quite useful to build then automatically launch SteamVR for debugging purposes.
To launch SteamVR for debugging:
- Click on the arrow next to
Local Windows Debugger - Select
ALL_BUILD Debug Properties
- Navigate to the
DebuggerProperty (under Configuration Properties) - Set
Commandto the location ofvrstartup.exe:- This is usually located at
C:\Program Files (x86)\Steam\steamapps\common\SteamVR\bin\win64\vrstartup.exe
- This is usually located at

