{"action":"created","issue":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/1790","repository_url":"https://api.github.com/repos/Samsung/GearVRf","labels_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1790/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1790/comments","events_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1790/events","html_url":"https://github.com/Samsung/GearVRf/issues/1790","id":305275280,"number":1790,"title":"armeabi  .so files ignoring for build","user":{"login":"spakanati123","id":14059718,"avatar_url":"https://avatars3.githubusercontent.com/u/14059718?v=4","gravatar_id":"","url":"https://api.github.com/users/spakanati123","html_url":"https://github.com/spakanati123","followers_url":"https://api.github.com/users/spakanati123/followers","following_url":"https://api.github.com/users/spakanati123/following{/other_user}","gists_url":"https://api.github.com/users/spakanati123/gists{/gist_id}","starred_url":"https://api.github.com/users/spakanati123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spakanati123/subscriptions","organizations_url":"https://api.github.com/users/spakanati123/orgs","repos_url":"https://api.github.com/users/spakanati123/repos","events_url":"https://api.github.com/users/spakanati123/events{/privacy}","received_events_url":"https://api.github.com/users/spakanati123/received_events","type":"User","site_admin":false},"labels":[{"id":396203897,"url":"https://api.github.com/repos/Samsung/GearVRf/labels/build%20issue","name":"build issue","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-03-14T18:20:15Z","updated_at":"2018-03-14T21:16:53Z","closed_at":null,"author_association":"NONE","body":"Our native library support .so files for armeabi architecture which is default architecture for all devices. \r\nBut it seems GVR Framework ignoring the armeabi .so files during the build process because of this i am unable to use my native library features.\r\n\r\n```\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n        maven {\r\n            url \"https://oss.sonatype.org/content/repositories/snapshots/\"\r\n        }\r\n        maven {\r\n            url \"http://google.bintray.com/googlevr\"\r\n        }\r\n    }\r\n}`\r\n\r\n`android {\r\n    compileSdkVersion 26\r\n\r\n    defaultConfig {\r\n        minSdkVersion 21\r\n        targetSdkVersion 21\r\n        ndk {\r\n            if (rootProject.hasProperty(\"ARM64\")) {\r\n                abiFilters = ['arm64-v8a']\r\n            } else {\r\n                abiFilters = ['armeabi-v7a']\r\n            }\r\n\r\n        }\r\n    }\r\n}\r\n\r\ntask copyOculusSignature(type: Copy) {\r\n    if (project.hasProperty(\"OCULUS_SIGS_DIRECTORY\")) {\r\n        copy {\r\n            from project.property(\"OCULUS_SIGS_DIRECTORY\")\r\n            into 'src/main/assets'\r\n            include 'oculussig_*'\r\n        }\r\n    }\r\n}`\r\n\r\n`preBuild {}.dependsOn copyOculusSignature`\r\n\r\n\r\n`ext.gearvrfVersion = '4.0.1-SNAPSHOT'`\r\n`project.ext.daydreamVersion = '1.120.0'`\r\n`project.ext.jomlVersion = \"1.9.3-SNAPSHOT\"`\r\n`project.ext.gsonVersion = '2.8.2'`\r\n\r\n`def hasBackend = false\r\nif (project.hasProperty(\"backend_monoscopic\") && project.property(\"backend_monoscopic\")) {\r\n    hasBackend = true\r\n} else if (project.hasProperty(\"backend_daydream\") && project.property(\"backend_daydream\")) {\r\n    hasBackend = true\r\n} else if (project.hasProperty(\"backend_oculus\") && project.property(\"backend_oculus\")) {\r\n    hasBackend = true\r\n} else if (project.hasProperty(\"backend\") && project.property(\"backend\")) {\r\n    hasBackend = true\r\n}\r\nif (!hasBackend) {\r\n    project.ext.backend_oculus = true\r\n    project.ext.backend_daydream = true\r\n}\r\n`\r\n`dependencies {\r\n `   compile \"com.google.code.gson:gson:$gsonVersion\"`\r\n `   compile \"org.joml:joml-android:${jomlVersion}\"`\r\n `   compile fileTree(dir: 'libs', include: ['*.aar'])`\r\n `   compile \"org.gearvrf:framework:$gearvrfVersion\"`\r\n\r\n\r\n    `if (project.hasProperty(\"backend_daydream\") && project.property(\"backend_daydream\")) {\r\n        if (project.hasProperty(\"useLocalDependencies\") && project.useLocalDependencies) {\r\n            if (findProject(':backend_daydream')) {\r\n                compile project(':backend_daydream')\r\n            } else {\r\n                debugCompile(name: 'backend_daydream-debug', ext: 'aar')\r\n                releaseCompile(name: 'backend_daydream-release', ext: 'aar')\r\n            }\r\n        } else {\r\n            compile \"org.gearvrf:backend_daydream:$gearvrfVersion\"\r\n        }\r\n        compile \"com.google.vr:sdk-base:${daydreamVersion}\"\r\n        compile \"com.google.vr:sdk-controller:${daydreamVersion}\"\r\n    }\r\n\r\n    if (project.hasProperty(\"backend_oculus\") && project.property(\"backend_oculus\")) {\r\n        if (project.hasProperty(\"useLocalDependencies\") && project.useLocalDependencies) {\r\n            if (findProject(':backend_oculus')) {\r\n                compile project(':backend_oculus')\r\n            } else {\r\n                debugCompile(name: 'backend_oculus-debug', ext: 'aar')\r\n                releaseCompile(name: 'backend_oculus-release', ext: 'aar')\r\n            }\r\n        } else {\r\n            compile \"org.gearvrf:backend_oculus:$gearvrfVersion\" //satya\r\n        }\r\n    }\r\n}\r\n\r\n```\r\n\r\nin above gradle snippet **ndk**  picking either  **arm64-v8a**, or  **armeabi-v7a'**\r\n```\r\nndk {\r\n            if (rootProject.hasProperty(\"ARM64\")) {\r\n                abiFilters = ['arm64-v8a']\r\n            } else {\r\n                abiFilters = ['armeabi-v7a']\r\n            }\r\n\r\n        }\r\n\r\n```\r\ni changed to:\r\n```\r\nndk {\r\n            if (rootProject.hasProperty(\"ARM64\")) {\r\n                abiFilters = ['arm64-v8a', ' armeabi'] .      ------> added armeabi\r\n            } else {\r\n                abiFilters = ['armeabi-v7a', ' armeabi'] .   ------->  added armeabi\r\n            }\r\n        }\r\n```\r\nBut still my app crashing with my .so file can't find where as other native sample apps picking fine.\r\n\r\nFurther, i checked gvr Framework build gradle.\r\nhttps://github.com/Samsung/GearVRf/blob/master/GVRf/Framework/framework/build.gradle\r\n```\r\nndk {\r\n            moduleName \"gvrf\"\r\n            if (rootProject.hasProperty(\"ARM64\")) {\r\n                abiFilters = ['arm64-v8a']\r\n            } else {\r\n                abiFilters = ['armeabi-v7a']\r\n            }\r\n        }\r\n```\r\n\r\nI guess GearVRf,  backend_daydream, backend_oculus gradle files also need to modify to fix this problem.\r\n\r\nIf any alternate solution is there to pick my armeabi  .so files ?\r\n\r\n**Since the requirement is urgent i would really appreciate the quick help.**\r\n\r\nThanks\r\n@dankex @Liahim @bohuang3d \r\n"},"comment":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/comments/373177646","html_url":"https://github.com/Samsung/GearVRf/issues/1790#issuecomment-373177646","issue_url":"https://api.github.com/repos/Samsung/GearVRf/issues/1790","id":373177646,"user":{"login":"spakanati123","id":14059718,"avatar_url":"https://avatars3.githubusercontent.com/u/14059718?v=4","gravatar_id":"","url":"https://api.github.com/users/spakanati123","html_url":"https://github.com/spakanati123","followers_url":"https://api.github.com/users/spakanati123/followers","following_url":"https://api.github.com/users/spakanati123/following{/other_user}","gists_url":"https://api.github.com/users/spakanati123/gists{/gist_id}","starred_url":"https://api.github.com/users/spakanati123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spakanati123/subscriptions","organizations_url":"https://api.github.com/users/spakanati123/orgs","repos_url":"https://api.github.com/users/spakanati123/repos","events_url":"https://api.github.com/users/spakanati123/events{/privacy}","received_events_url":"https://api.github.com/users/spakanati123/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T21:16:53Z","updated_at":"2018-03-14T21:16:53Z","author_association":"NONE","body":"okay, i will check.\r\nThanks"}}
{"actor":{"display_login":"spakanati123"}}