DllNotFoundException: XRSDKOpenVR
See original GitHub issueHi,
I tried setting up a new project for VR. Went through the following steps:
- Created project using HDRP template
- Imported the XR Plugin unitypackage
- Enabled the OpenVR Loader in the Project Settings
- Made sure I’m in a scene where the Main Camera has been converted to an XRRig
- Started SteamVR just to be sure
Press Play and this error pops up. I can see the DLL in the Package Cache just fine.
DllNotFoundException: XRSDKOpenVR Unity.XR.OpenVR.OpenVRLoader.Initialize () (at Library/PackageCache/com.valvesoftware.unity.openvr@1.0.0-preview.6/Runtime/OpenVRLoader.cs:183) UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () (at Library/PackageCache/com.unity.xr.management@3.2.13/Runtime/XRManagerSettings.cs:169) UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () (at Library/PackageCache/com.unity.xr.management@3.2.13/Runtime/XRGeneralSettings.cs:175) UnityEngine.XR.Management.XRGeneralSettings.AttemptInitializeXRSDKOnLoad () (at Library/PackageCache/com.unity.xr.management@3.2.13/Runtime/XRGeneralSettings.cs:148)
I’ve tried this in both 2019.4 and 2020.1 and both have the same error. I’m using Valve Index and version 1.0.0-preview.6 of the OpenVR XR Plugin
Issue Analytics
- State:
- Created 3 years ago
- Comments:23
I was able to replicate (and fix) this locally by uninstalling visual studio and some tools. Looks like we’ve fixed it now by compiling with static linking. Please update to preview-9 and let me know if that fixes things.
For people having a similar issue with cmake and unity native plugins that won’t load due to missing dependencies: We added this to our cmake lists file:
Can you please give us an idea of when it will support XR Interaction system again? A previous version supported it and I started using it. Now that it’s gone again I need to decide whether to take the time to go back again to the old way of doing input. This has really thrown a wrench in my development plans and having no idea when it will be supported again is making it pretty damn difficult to plan ahead.