KhronosGroup / OpenXR-SDK-Source

Sources for OpenXR loader, basic API layers, and example code.
https://khronos.org/openxr
Apache License 2.0
679 stars 249 forks source link

LoaderInstance::CreateInstance, no support found for requested extension: XR_KHR_opengl_enable #499

Closed csunking closed 2 months ago

csunking commented 2 months ago

./hello_xr -g OpenGL -ff Hmd -vc Stereo -bm AlphaBlend -s View running bug found, logs are:

[18:05:17.377][Info   ] Press any key to shutdown...
[18:05:17.378][Info   ] Available Layers: (0)
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance, no support found for requested extension: XR_KHR_opengl_enable
Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed
Segmentation fault (core dumped)
ChristophHaag commented 2 months ago

That sounds like an OpenXR runtime issue, specifically that the runtime doesn't support for OpenGL applications. Which OpenXR runtime is this with?

csunking commented 2 months ago

Thanks, you are right, runtime should be set correctly and like this: export XR_RUNTIME_JSON=/home/xxxxxxxx/monado/build_install/share/openxr/1/openxr_monado.json