Skip to main content
Hyperactive
Up and Coming
August 5, 2014

DllNotFoundException: OculusPlugin

Hi All,

I'm trying to setup SDK 0.4.0 in my unity project.

I drop the OVRPlayerController in my scene and as soon as I play I get lots (999+) of these errors:

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_Destroy () (at Assets/OVR/Scripts/OVRGamepadController.cs:85)
OVRGamepadController.OnDestroy () (at Assets/OVR/Scripts/OVRGamepadController.cs:164)

NullReferenceException: Object reference not set to an instance of an object
OVRMainMenu.OnGUI () (at Assets/OVR/Scripts/OVRMainMenu.cs:448)

DllNotFoundException: OculusPlugin
OVRCameraController.Update () (at Assets/OVR/Scripts/OVRCameraController.cs:344)

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:95)
OVRGamepadController.Update () (at Assets/OVR/Scripts/OVRGamepadController.cs:158)

DllNotFoundException: OculusPlugin
OVRGamepadController.GPC_GetButton (Int32 button) (at Assets/OVR/Scripts/OVRGamepadController.cs:117)
OVRPlayerController.UpdateMovement () (at Assets/OVR/Scripts/OVRPlayerController.cs:249)
OVRPlayerController.Update () (at Assets/OVR/Scripts/OVRPlayerController.cs:168)

NullReferenceException: Object reference not set to an instance of an object
OVRMainMenu.Update () (at Assets/OVR/Scripts/OVRMainMenu.cs:361)



I'm not sure what to do.

It's clearly telling me that Unity can't find the plugin, but it's in the same place as it was for SDK 0.3.2.
And that was working just fine.

I've put the OculusPlugin in all sorts of folders to see if unity was having problems finding it but I still get the same error, whatever I try.

Any ideas?

AB
    This topic has been closed for replies.

    4 replies

    Up and Coming
    August 6, 2014
    I'm having this problem too, please help!
    Inspiring
    August 6, 2014
    You probably need to move the OculusPlugin to a different folder inside the project.

    For example: Plugins/OculusPlugin.dll into Plugins/x86/OculusPlugin.dll.

    There should not be any plugins in the plugins root folder. They need to be in x86 or x86_64 subfolders.
    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
    Up and Coming
    August 6, 2014
    Thanks Cyberreality, you are the best! Everyone needs to see this.
    Hyperactive
    Up and Coming
    August 6, 2014
    That's great! Thanks Cyber!

    This won't work on a Mac will it? There doesn't seem to be any 0.4.0 SDK for Mac... :?: