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

Could not find :framework-debug: #1620

Open fessmax opened 7 years ago

fessmax commented 7 years ago

I'm trying build platformsdk_support-debug.aar by this instruction: https://github.com/Samsung/GearVRf/wiki/Entitlement-Check-using-GVRF. But unfortunately I catched this error and I don't know how to fix it. I took last verion of GearVRf and OVRPlatformSDK_v1.19.0 `c:\tmp\workspace\GearVRf\GVRf\Extensions>gradlew -Pplatformsdk_support=true platformsdk_support:assembleDebug --stacktrace

FAILURE: Build failed with an exception.

BUILD FAILED

Total time: 2.417 secs

liaxim commented 7 years ago

@fessmax You need to build the framework first.

We also have released the platformsdk support to maven. If you use maven, you can just add the dependency:

dependencies {
    compile "org.gearvrf:platformsdk_support:3.3.0"
}
fessmax commented 7 years ago

@liaxim Hi, I use gradle for build. Should I add this dependency and where? The instructions do not say anything about this.

liaxim commented 7 years ago

@fessmax The instructions are outdated, sorry about that. Will straighten them up.

In your app you will have a dependency section with your GVRf dependencies. Add the compile line there. For example:

ext.gearvrfVersion='3.3.0'
project.ext.jomlVersion = "1.9.1-SNAPSHOT"

dependencies {
    compile 'com.google.code.gson:gson:2.7'
    compile "org.joml:joml-android:${jomlVersion}"
    compile "org.gearvrf:framework:$gearvrfVersion"
    compile "org.gearvrf:backend_daydream:$gearvrfVersion"
    compile "org.gearvrf:backend_oculus:$gearvrfVersion"
    compile 'com.google.vr:sdk-base:1.80.0'
    compile "com.google.vr:sdk-controller:1.80.0"

    compile "org.gearvrf:platformsdk_support:$gearvrfVersion"
}