Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Hyper_active's avatar
Hyper_active
Start Partner
12 years ago

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

4 Replies

Replies have been turned off for this discussion
  • 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.
  • UberLax's avatar
    UberLax
    Honored Guest
    Thanks Cyberreality, you are the best! Everyone needs to see this.
  • 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... :?: