Skip to main content
Up and Coming
May 27, 2013

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
    This topic has been closed for replies.

    25 replies

    New Participant
    May 27, 2013
    I 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.
    alvaroullAuthor
    Up and Coming
    May 28, 2013
    I'm not Unity installed in the pc.
    I only just play the demo ... :)

    Thanks
    Participant
    May 29, 2013
    Looks 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
    John Sinclair
    Participant
    June 1, 2013
    I 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.
    alvaroullAuthor
    Up and Coming
    June 3, 2013
    Finally 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
    Inspiring
    June 3, 2013
    Thanks for following up with the fix.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Participant
    August 19, 2013
    This 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)
    New Participant
    September 3, 2013
    i 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.
    New Participant
    February 18, 2014
    "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!
    New Participant
    February 21, 2014
    I'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?