Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ArtisV's avatar
ArtisV
Honored Guest
5 years ago

SharedSpaces Unity oculus sample

Hello!

 

Can someone please help with the newest Oculus SharedSpaces Unity project sample. We would like to test this implementation in our project as well. But firstly we are trying to understand the sample project.

 

I have downloaded the Oculus SharedSpaces unity project sample at the following Github link:

https://github.com/oculus-samples/Unity-SharedSpaces 

I launch it at Unity editor 2020.3.24f1. 

1. Convert to platform to Android;

2. Open Startup Scene;

3. Import TMP essentials.

 

After these steps I get the following errors:

  • Expected architecture x64 errors;
  • Failed to load OVRPlugin dll errors;

 

The Expected Architecture errors x64, I fix by going to the exact OVRPlugin.dll file and at Platform Settings setting it as CPU x86. Then the error goes away.

But the other error Failed to Load OVRPlugin.dll still stays.

 

Do you experience same issues? Or you have somehow overcome these issues?

 

Thank You!

3 Replies

Replies have been turned off for this discussion
  • pro_zac's avatar
    pro_zac
    Meta Employee

    I haven't had this issue on Unity 2020.3.16f1. I'm downloading 24f1 to give it a try. 

     

    My OVRPlugin.dll is set to CPU x86_64. This didn't require any changes on my part.

    • pro_zac's avatar
      pro_zac
      Meta Employee

      I was able to run with Unity 2020.3.24f1. 

       

      Only changes I made were:

      • Set Photon app ids for both realtime and voice
      • Oculus > Platform > Edit Settings to set appIds for Oculus Go/Quest and Rift
      • Set android keystore to sign apk

      I'm able to run in editor and on device. 

  • I'm trying to run the ShareSpaces (Unity) example and among a number of other issues I had to resolve, I'm now getting an error when I try to updload the apk via the App Distribution section of the UDH. Anyone else getting this? It runs fine on the Quest 2.

     

    ERROR:
    This app includes the following 32-bit only (armeabi-v7a) libraries: libAudioPluginOculusSpatializer.so, libMonoPosixHelper.so, libOVRPlugin.so, libOculusXRPlugin.so, lib_burst_generated.so, libmain.so, libmemalign16.so, libmemalign16_cpp.so, libmonobdwgc-2.0.so, libopenxr_loader.so, libopus_egpv.so, libovrplatformloader.so, libunity.so, libwebrtc-audio.so
    Error Types:
    NOT_64_BIT_ERROR