Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
raeldor's avatar
raeldor
Adventurer
7 years ago

DllNotFoundException: ovrplatformloader

I am trying to build and run the social starter, but the sphere is always black.  When I checked by log I see...

07-13 21:16:31.681  5083  5099 D Unity   : Unable to lookup library path for 'ovrplatformloader', native render plugin support disabled.
07-13 21:16:31.681  5083  5099 E Unity   : Unable to find ovrplatformloader
07-13 21:16:31.738  5083  5099 E Unity   : DllNotFoundException: ovrplatformloader
07-13 21:16:31.738  5083  5099 E Unity   :   at (wrapper managed-to-native) Oculus.Platform.CAPI:ovr_UnityInitWrapper (string)
07-13 21:16:31.738  5083  5099 E Unity   :   at Oculus.Platform.AndroidPlatform.Initialize (System.String appId) [0x00019] in D:\My Documents\OculusGoTest\Assets\Oculus\Platform\Scripts\AndroidPlatform.cs:16 
07-13 21:16:31.738  5083  5099 E Unity   :   at Oculus.Platform.Core.Initialize (System.String appId) [0x0007f] in D:\My Documents\OculusGoTest\Assets\Oculus\Platform\Scripts\Platform.cs:114 
07-13 21:16:31.738  5083  5099 E Unity   :   at PlatformManager.Awake () [0x000ae] in D:\My Documents\OculusGoTest\Assets\Oculus\Avatar\Samples\SocialStarter\Assets\Scripts\PlatformManager.cs:104 
07-13 21:16:31.738  5083  5099 E Unity   :   at PlayerController.Awake () [0x00002] in D:\My Documents\OculusGoTest\Assets\Oculus\Avatar\Samples\SocialStarter\Assets\Scripts\PlayerController.cs:20 


I've removed all the oculus assets and re-imported the integration package and an still getting the same error.  I can see the libovrplatformloader in oculus/platform/plugins/android32/ and 'anyplatform' is selected for the plugin.

I'm using Unity 2018.1.0f2 and SDK 1.27.0.

Any help would be appreciated.  Thanks.

4 Replies

Replies have been turned off for this discussion
  • I had a similar error myself which I fixed by deleting the platform directory that you import from the oculus utilities for unity package and then importing the oculus platform sdk for unity. This should create a new directory known as "OculusPlatform" in your assets folder essentially replacing the platform directory that you had in the "Oculus" directory. Hope this fixes it for you guys  :)
  • @MattMc100 Could you clarify how to do this? The latest SDK doesn't come with a .unitypackage file to import in Unity.