Oculus DK1 with Unity 5 on Mac

I’m having a really hard time figuring out if it’s possible for my setup to work or not.

  • Mac laptop OSX 10.8.5
  • Oculus Development Kit (DK1)
  • Oculus Runtime 0.4.4 (oculus_runtime_rev_1_sdk_0.4.4_osx.dmg)
  • Unity 5.1.1f1 Personal (free)
  • OculusUtilities_0_1_0_beta (Unity package)

With runtime 0.4.4 I am able to access the Oculus Configuration Utility app, and can run the demo scene just fine, so I know the headset works with the operating system (I tried runtime 0.5.0.1, and I was not able to run the config utility).

But when I try and run the demo scenes in the Unity package, I get these errors:

DllNotFoundException: OVRGampad

DllNotFoundException: OVRGamepad
  at (wrapper managed-to-native) OVRGamepadController:OVR_GamepadController_Update ()
  at OVRGamepadController.GPC_Update () [0x0001b] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:238 
  at OVRGamepadController.DefaultReadButton (Button button) [0x0000f] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:300 
  at OVRGamepadController.GPC_GetButton (Button button) [0x0000c] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:321 
  at OVRPlayerController.UpdateMovement () [0x00077] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRPlayerController.cs:226 
  at OVRPlayerController.Update () [0x00130] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRPlayerController.cs:174 
 
(Filename: Assets/OVR/Scripts/Util/OVRGamepadController.cs Line: 238)

DllNotFoundException: OVRGamepad
  at (wrapper managed-to-native) OVRGamepadController:OVR_GamepadController_GetButton (int)
  at OVRGamepadController.DefaultReadButton (Button button) [0x0003f] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:310 
  at OVRGamepadController.GPC_GetButton (Button button) [0x0000c] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:321 
  at OVRGamepadController.GPC_LateUpdate () [0x00017] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:247 
  at OVRGamepadController.LateUpdate () [0x00000] in /Users/dmdadmin/150720 - Oculus Test/Assets/OVR/Scripts/Util/OVRGamepadController.cs:413 
 
(Filename: Assets/OVR/Scripts/Util/OVRGamepadController.cs Line: 310)

Is it possible to develop with Unity 5 free for Oculus DK1 on Mac?


I had the same issue, you just need to rename libOVRGamepad.bundle to OVRGamepad.bundle in the plugin folder

So just remove the “lib”.

Warning : do not do this in unity or be sure to rewrite the “.bundle”