Unable to load OVRMrcLib.so
Hello everyone, I've encountered an issue with my project when I'm trying to make my unity game support mixed reality capture.
I was able to successfully select my webcam on my desktop and connect on my quest2, but I'm stuck on the
.
I am able to successfully connect my quest2 on obs when I am launch the beat saber, except for my game.
After comparing my game and other games that support mrc, I find the error in my game log (from adb):
08-31 09:57:16.028 15850 15879 I OVRPlugin: OVRPlugin 1.86.1 ... preinitialized
08-31 09:57:16.154 15850 15879 I OVRPlugin: OpenXR SDK version 1.0.27
08-31 09:57:16.154 15850 15879 I OVRPlugin: AppNativeLibraryDir: /data/app/~~Ilxo98GhRdsMhYzcPvYa8w==/com.FB.UnityMetaMRC-hjTiR0Cm6u5aiqOYuffJzQ==/lib/arm64
08-31 09:57:16.154 15850 15879 I OVRMrcLib: Try loading /data/app/~~Ilxo98GhRdsMhYzcPvYa8w==/com.FB.UnityMetaMRC-hjTiR0Cm6u5aiqOYuffJzQ==/lib/arm64/libOVRMrcLib.oculus.so
08-31 09:57:16.154 15850 15879 I OVRMrcLib: Try loading /data/app/~~Ilxo98GhRdsMhYzcPvYa8w==/com.FB.UnityMetaMRC-hjTiR0Cm6u5aiqOYuffJzQ==/lib/arm64/libOVRMrcLib.so
08-31 09:57:16.155 15850 15879 I OVRMrcLib: Try loading libOVRMrcLib.oculus.so
08-31 09:57:16.155 15850 15879 I OVRMrcLib: Try loading libOVRMrcLib.so
08-31 09:57:16.155 15850 15879 E OVRMrcLib: Unable to load OVRMrcLib
08-31 09:57:16.155 15850 15879 I OVRPlugin: Unable to load OVRMrcLib
My game doesn't load OVRMrcLib.so from quest system .so library causing the problem.
How can I slove this promble? By let my game loading OVRMrcLib.so from quest2 system library, like other mrc games.
My steps to access the function are:
1.Create a new urp unity project.
2.Import the unity-integration package (just vr part) which download from :https://developer.oculus.com/downloads/package/unity-integration/56.0
3.Fix all promble show in Project Settings that report by Oculus and XR Plug-in Management.
4.Switch platfrom to android.
5.Build my game and install.
6.Copy mrc.xml to my quest2
7.Launch game, connect to quest2 using OBS.
Test project and log file here:
https://github.com/Fb-dtalker/UnityMetaMRC/tree/main
Please help! I sincerely appreciate!
Hi,
Thanks for your reply!
I was already able to solve the issue! Here is how I solved it (it might help others who are facing the issue) -
1. I removed the "Oculus Integration" from my project
2. Installed the "Meta XR Core SDK"
3. Added following entry to AndroidManifest.xml
<uses-native-library android:name="libOVRMrcLib.oculus.so" android:required="true" />
Thanks π .