Hello
I am trying to extend our current OpenGL rendering app (Windows, MFC, OpenGL) via OpenXR to make use of Sony’s spatial reality display (ELF-SR2). To get going, I started with the hello_xr sample
from Khronos’ Github ( OpenXR-SDK-Source).
Unfortunately, the sample won’t run due to the following error:
hello_xr.exe -g OpenGL
[16:37:51.807][Info ] Press any key to shutdown…
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntime skipping manifest file C:\Program Files\Sony\SpatialRealityDisplay\config\srd-openxr-runtime.json, failed to load with message "Failed to open dynamic library C:\Program Files\Sony\SpatialRealityDisplay\config..\lib\xr_runtime.dll with error 126: 0x7e (126): The specified module could not be found.
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : RuntimeInterface::LoadRuntimes - failed to load a runtime
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed to find default runtime with RuntimeInterface::LoadRuntime()
Error [GENERAL | xrEnumerateInstanceExtensionProperties | OpenXR-Loader] : Failed querying extension properties
[16:37:51.816][Error ] XrResult failure [XR_ERROR_RUNTIME_UNAVAILABLE]
Origin: xrEnumerateInstanceExtensionProperties(layerName, 0, &instanceExtensionCount, nullptr)
Source: D:\Software\ThirdParty\OpenXR-SDK-Source\src\tests\hello_xr\openxr_program.cpp:132
I am completely new to OpenXR so I am unsure what is wrong.
I verified that the xr_runtime.dll
is in the correct place, that the ActiveRuntime
regkey is pointing to the correct json-file and that this file is pointing to the correct runtime dll location. According to the conformant products webpage, this device should be compatible with OpenXR 1.0. However, when I analyze the xr_runtime.dll
supplied by Sony with DependencyWalker
, the functions do not exactly match with the OpenXR specification. For example, xrCreateSession
is implemented as srd_xrCreateSession
. In addition, many other functions in this DLL are present that are not listed in the OpenXR API. Unfortunately, no documentation or SDK is shipped with the ELF-SR2 and Sony has not yet given any insightful information.
Lastly, I wanted to verify that I had correctly build the hello_xr sample by using a different runtime, in order to prove that something is wrong with the ELF-SR2 runtime version. However, I do not seem to get my hands on any?
Any ideas on how to understand and resolve this problem would be greatly appreciated.
Best regards