Download

UE4.11.1 Android build - Failed to load VrApi driver

Hi everyone.
I try to make basic vr environment with UE. I successfully fix all issues related to build process and now I meet problem, that I can’t to google solution for it.
I use UE 4.11.1 with start FPS project with only GearVR plugin with ETC1 build (19sdk and ndk 10).
When I launch project under Nexus 5 or Oneplus one (both phones works under android 6) I got this error in logcat:



04-08 14:43:56.237 26295 26330 W Loader  : vrapi_Initialize: Failed to load VrApi driver!
04-08 14:43:56.237 26295 26330 E VrApiLoader: Oculus updates needed.
04-08 14:43:56.237 26295 26330 E VrApiLoader: 
04-08 14:43:56.237 26295 26330 E VrApiLoader: Instructions to receive new updates can be found at:
04-08 14:43:56.237 26295 26330 E VrApiLoader: 
04-08 14:43:56.237 26295 26330 E VrApiLoader: https://support.oculus.com under 'Samsung Gear VR - Oculus Software Update'
04-08 14:43:56.238   775 14362 I ActivityManager: START u0 {flg=0x10000 cmp=com.oculus.systemactivities/.PlatformActivity (has extras)} from uid 10215 on display 0
04-08 14:43:56.241 26295 26330 I JniUtils: JNI exception before DeleteLocalRef!
04-08 14:43:56.241 26295 26330 E D:\BuildFarm\buildmachine_++UE4+Release-4: VrApi initialization error.
04-08 14:43:56.241 26295 26330 I SystemActivities: SystemActivities_StartSystemActivity: failMenu {
04-08 14:43:56.241 26295 26330 I SystemActivities: 	"extraData":	{
04-08 14:43:56.241 26295 26330 I SystemActivities: 		"Reason":	"failOSig",
04-08 14:43:56.241 26295 26330 I SystemActivities: 		"Tag":	"D:\\BuildFarm\\buildmachine_++UE4+Release-4",
04-08 14:43:56.241 26295 26330 I SystemActivities: 		"Message":	"VrApi initialization error."
04-08 14:43:56.241 26295 26330 I SystemActivities: 	}
04-08 14:43:56.241 26295 26330 I SystemActivities: }
04-08 14:43:56.241 26295 26330 E EntryPoints: vrapi_GetVersionString was called before vrapi_Initialize()!


There isn’t any helpful information at https://support.oculus.com under ‘Samsung Gear VR - Oculus Software Update’.
How can I fix it?

I think u’r missing the “Samsung” part. Even with Samsung, Gear VR works with a rather limited number of their models. Not sure why u expect to be able to run anything related on non-Samsung phones.

Have u even managed to install the Oculus GearVR software on any of those phones?

Lol, yeah… I don’t understand why people don’t read manuals…

Both phones have installed google cardboard and this is enought to run Unity vr projects. I can’t find any manuals where says something about “samsung gear vr”. Moreover I tried to find these software right now and failed. Could you share link with this magic “samsung vr” software?
Thanks!

That’s a separate thing. I don’t think Unreal supports Cardboard. Gear Vr is quite different from cardboard since it utilizes sensors in the headset instead relying on the ones inside the phone, plus there’s the Oculus mobile SDK, that drives the whole thing.

The “magic” installs as soon as u plug the Samsung phone into the Samsung Gear VR. I haven’t seen a direct link to it anywhere.

As I know Oculus mobile sdk 1.0.0 is included into UE4.11 and there isn’t way to install or change it separately from engine. There must be some kind of emulator of Gear vr or something like that, because in android manifest I see permission for gyro sensors and other sruff. Also I see a lot of UE VR apps in play market for google CB and I’m sure that they didn’t make their own emulator.

Or can you suggest any way to start using UE under google cardboard?

So what does it have to do with your problem?

Gear VR is hardware locked to Samsung phones: http://www.samsung.com/us/mobile/wearable-tech/SM-R322NZWAXAR

Gear VR will not work with any other phone. It has nothing to do with UE4 or the fact that UE4 has Oculus SDK. Oculus SDK provides functionality / interface for Oculus supported devices, which are Rift and Gear VR.

UE4 had a project to run it on Google Cardboard, but performance was abysmal. Search for it on the forum here.

Yes, but u’r still missing the software on the client/phone side, this is why u get those errors in the log above.

Again, there’s no official support for Google Cardboard in UE.

Check here for discussion on the matter. Also I saw a mention of an unoficial plugin.

The GearVR headset doesn’t support these phones, how are you trying to launch the project on them?

Also it sees like you’re missing the osig file for the development phones, you can generate those at https://developer.oculus.com/osig/