Skip to content

Instantly share code, notes, and snippets.

@ChristophHaag
Last active April 7, 2026 21:14
Show Gist options
  • Select an option

  • Save ChristophHaag/3eea0af6a3059541ac7c47a486b21846 to your computer and use it in GitHub Desktop.

Select an option

Save ChristophHaag/3eea0af6a3059541ac7c47a486b21846 to your computer and use it in GitHub Desktop.
Monado windows build notes

For Building

Optional

  • 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.

Run openxr app

  • 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

Use validation layers

  • $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"

Use vscode

  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment