- Visual Studio Build Tools https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022 -> Check the C++ Development profile and install. (Or Install Visual Studio Express)
- Git https://git-scm.com/install/windows
- Vulkan SDK https://vulkan.lunarg.com/sdk/home (full SDK highly recommended)
- winget install Ninja-build.Ninja -> Ninja is part of the build files but not in PATH etc. so it's a pain to try to use that one. could also use another generator but I like ninja.
- winget install Python.Python.3.14
- System Settings, Optional Features, OpenSSH Server -> Open Services, find OpenSSH SSH Server and in properties set to Automatic startup type. Create local account for proper password login. Put publickey into C:\ProgramData\ssh\administrators_authorized_keys for admin users.
- Microsoft Store, Windows Terminal -> In settings set the default terminal to Developer PowerShell for VS 2022
- Microsoft Store, Visual Studio Code
- Sunshine Server (+ Moonlight Client) instead of VNC
Build monado in developer powershell (e.g. from windows terminal). Make sure you have restarted the entire terminal after installing git, vulkan sdk etc.
- cd $env:USERPROFILE
- git clone https://gitlab.freedesktop.org/monado/monado.git
- git clone https://github.com/Microsoft/vcpkg.git
- .\vcpkg\bootstrap-vcpkg.bat
- cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE="$env:USERPROFILE\vcpkg\scripts\buildsystems\vcpkg.cmake" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- ninja -C build
- & $env:USERPROFILE/monado/build/src/xrt/targets/service/monado-service.exe
- https://github.com/KhronosGroup/OpenXR-SDK-Source/releases -> Download and unzip openxr_loader_windows-1.1.53.zip or most recent release (clock Show all assets)
- $env:XR_RUNTIME_JSON = "$env:USERPROFILE\monado\build\openxr_monado-dev.json"
- & "$env:USERPROFILE\Downloads\openxr_loader_windows-1.1.53\x64\bin\hello_xr" -G Vulkan2
- $env:XR_API_LAYER_PATH = "$env:USERPROFILE\Downloads\openxr_loader_windows-1.1.53\x64\bin\api_layers"
- $env:XR_ENABLE_API_LAYERS = "XR_APILAYER_LUNARG_core_validation"
- Monado: Set Cmake: Use C Make Presets to "never" to enable normal toolchain selection
- I like to disable Configure On Edit, Configure On Open, Automatic Reconfigure, and to enable Skip Configure If Cache Present. Then I simply configure and build monado on the command line once in a developer powershell and open the directory with vscode. This might require selecting the Visual Studio ... Release - amd64 kit in vscode.