Forum Discussion
alvaroull
12 years agoProtege
DllNotFoundException oculusplugin.dll
Hi,
When I play the Unity demos in my windows I have an error of dll not found.
All the Unity demos say the same error from the output_log.txt.
DllNotFoundException: C:/Users/Alvaro/Downloads/ovr_unity_0.2.2_demo/OculusUnityDemos/Win_OculusUnityDemoScene_Data/Plugins/OculusPlugin.dll
at (wrapper managed-to-native) OVRDevice:OVR_IsHMDPresent ()
at OVRDevice.IsHMDPresent () [0x00000] in <filename unknown>:0
at OVRMainMenu.CheckIfRiftPresent () [0x00000] in <filename unknown>:0
at OVRMainMenu.Start () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
DllNotFoundException: C:/Users/Alvaro/Downloads/ovr_unity_0.2.2_demo/OculusUnityDemos/Win_OculusUnityDemoScene_Data/Plugins/OculusPlugin.dll
at (wrapper managed-to-native) OVRDevice:OVR_Update (OVRDevice/MessageList&)
at OVRDevice.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
The plugin is in the indicated folder.
I 'm running in a Windows 7 64 bits native as a BootCamp in a Mac Book Pro.
The other demos works fine, but the .exe unity3d don't work.
I tried with 32 bits coampitiblity, putting the .dll to system32 folder, but allways the same error...:((
Any ideas?
Thanks.
Alvaro
When I play the Unity demos in my windows I have an error of dll not found.
All the Unity demos say the same error from the output_log.txt.
DllNotFoundException: C:/Users/Alvaro/Downloads/ovr_unity_0.2.2_demo/OculusUnityDemos/Win_OculusUnityDemoScene_Data/Plugins/OculusPlugin.dll
at (wrapper managed-to-native) OVRDevice:OVR_IsHMDPresent ()
at OVRDevice.IsHMDPresent () [0x00000] in <filename unknown>:0
at OVRMainMenu.CheckIfRiftPresent () [0x00000] in <filename unknown>:0
at OVRMainMenu.Start () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
DllNotFoundException: C:/Users/Alvaro/Downloads/ovr_unity_0.2.2_demo/OculusUnityDemos/Win_OculusUnityDemoScene_Data/Plugins/OculusPlugin.dll
at (wrapper managed-to-native) OVRDevice:OVR_Update (OVRDevice/MessageList&)
at OVRDevice.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
The plugin is in the indicated folder.
I 'm running in a Windows 7 64 bits native as a BootCamp in a Mac Book Pro.
The other demos works fine, but the .exe unity3d don't work.
I tried with 32 bits coampitiblity, putting the .dll to system32 folder, but allways the same error...:((
Any ideas?
Thanks.
Alvaro
25 Replies
Replies have been turned off for this discussion
- joecrotchettHonored GuestI was receiving the same error and then I saw one of the other errors mentioned that plugins are only supported on the pro version of Unity. I checked my current license and noticed that my pro trial had expired, so I re-activated Unity with a different serial key in order to upgrade to the pro license and that solved the issue.
- alvaroullProtegeI'm not Unity installed in the pc.
I only just play the demo ... :)
Thanks - cryxanHonored GuestLooks like you ran into the issue I did.
In my case I needed to install the Visual Studio Redistributable pack.
To be found at the following link.
http://www.microsoft.com/en-us/download/details.aspx?id=30679 - LaurentMTHonored GuestI get a similar problem (frequent but not systematic)
DllNotFoundException: Exception of type 'System.DllNotFoundException' was thrown.
at (wrapper managed-to-native) OVRDevice:OVR_Update (OVRDevice/MessageList&)
at OVRDevice.Update () [0x00006] in D:\dev\unity3D\Sandbox\Assets\OVR\Scripts\OVRDevice.cs:267
(Filename: Assets/OVR/Scripts/OVRDevice.cs Line: 267)
Unity Pro License is ok.
I've installed Visual Studio Redistributable pack but it didn't solve the issue. - alvaroullProtegeFinally I resolvd the issue.
I donwload the CFF Explorer for see the dependencies libraries, and the Oculusplugin.dll depends from the MSVRC100.dll.
I don't have installed in my PC, I google and downloadind the x86 and x64 version of the redistributable microsoft Visual C++ VC2010, and install fix the problem and can play with the Rift!!!!
Alvaro - cyberealityGrand ChampionThanks for following up with the fix.
- FrostFireHonored GuestThis has not worked for me, getting these errors:
DllNotFoundException: OculusPlugin
OVRDevice.Awake () (at Assets/OVR/Scripts/OVRDevice.cs:214)
DllNotFoundException: OculusPlugin
OVRDevice.RenderPortraitMode () (at Assets/OVR/Scripts/OVRDevice.cs:735)
OVRCameraController.InitCameraControllerVariables () (at Assets/OVR/Scripts/OVRCameraController.cs:158)
OVRCameraController.Start () (at Assets/OVR/Scripts/OVRCameraController.cs:118) - chrissowaHonored Guesti ran into the same issue today.
formated my notebook for using unity3d with it and then had problems with running a demo i build and ran on another pc.
installing Microsoft Visual C++ 2012 Redistributable Package didnt solve my issue,
but installing Microsoft Visual C++ 2010 SP1 Redistributable Package did.
http://www.microsoft.com/en-us/download/details.aspx?id=8328
so i just wanted to add this information. it s already in the post of alvaroull, but i first didnt see the difference to the other posts and that he was telling to install 2010.
So i m posting it again ^^ maybe it ll help anyone when searching for it.
thanks for your help. - WillieBniceHonored Guest
"chrissowa" wrote:
installing Microsoft Visual C++ 2012 Redistributable Package didnt solve my issue,
but installing Microsoft Visual C++ 2010 SP1 Redistributable Package did.
Same here. Thanks! - hovissimoHonored GuestI've tried everything in the thread so far, and still no love. My situation could be a little different.
I'm trying to add VR support to Kerbal Space Program as an addon, which has it's own challenges.
I'm using the MonoBehaviours (like OVRCameraController) from the Unity integration package, but whenever I add one of these components I get the DllNotFoundException. At first, I thought that I just wasn't putting OculusPlugin.dll in the right places (I've tried the Plugins folder in the game executable directory, system32, and others).
From what I've found on Google, it seems more likely that I'm missing some dependency. I have no way of knowing what that dependency is, can we get an official list of depencies for the Oculus Unity integration? What libraries were on the machine that it was built on?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device