Samsung / GearVRf

The GearVR framework(GearVRf) is an Open Source VR rendering library for application development on VR-supported Android devices.
http://www.gearvrf.org
Apache License 2.0
407 stars 217 forks source link

update to oculus v1.0.0 sdk #294

Closed thomasflynn closed 8 years ago

thomasflynn commented 9 years ago

need to update to latest oculus sdk.

pdiaz commented 9 years ago

+1

thomasflynn commented 9 years ago

started. compiles, but crashes at runtime.

https://github.com/thomasflynn/GearVRf/tree/ovr_100?files=1

liaxim commented 9 years ago

@thomasflynn make sure you update VrApi.jar and VrAppFramework.jar under Framework/libs with the copies from 1.0.0.0. Once I did that the crash went away.

The next problem is obtaining updates to Oculus and Oculus Home. It didn't like my copies and I could not get it to update. It has been a hassle for some time and it is getting worse using Oculus with our custom builds..

The error was an exception that we have seen before and which I don't think has been resolved - bug 19350 - no INSTALL_PACKAGES permission.

thomasflynn commented 9 years ago

ah, yes, I'm pretty sure I did indeed miss copying the new jars. i'll try that if I get a chance in between meetings.

i'm doing my testing on my personal S6. in other words, not on an engineering build which is where we often have problems with updating Oculus Home and other binaries. yesterday, after installing simple-sample built with v1.0, and inserting into a GearVR, my phone showed the GearVR setup wizard and prompted me to download a bunch of updates. This seems to match what Oculus describes in their 1.0 documentation.

so, hopefully, if I just update the jars, things will 'just work' :) I'll try again today if I can squeeze some time in-between my meetings.

thomasflynn commented 9 years ago

copied the two jars. still crashing for me :(. I can show you tomorrow.

liaxim commented 9 years ago

Interesting. I can only get to the update screen on my device so I might have missed it. Send me the logs please.

liaxim commented 9 years ago

Seeing it on my Note4. Seemed like SystemUtils.jar was missing. Added - still can't be found. Looks like the whole thing is meant to be build with Gradle (only). I can't even get the Oculus samples to work if built with Eclipse. Looking into it.

liaxim commented 9 years ago

Ok, after few clean-rebuild cycles it is working. The only additional step is to copy ./VrAppSupport/SystemUtils/Libs/Android/SystemUtils.jar to Framework/libs. It is a good idea to manually remove all the ./bin/ directories and then clean-rebuild in Eclipse.

The Oculus samples had a case-sensitivity problem (VrGui vs VrGUI).

thomasflynn commented 8 years ago

merged.