How do I begin working on the Project Tango?

痞子三分冷 提交于 2019-12-03 17:10:51

we are working on converting all project to android studio based, for now, here is the walk around to get you started:

  1. Open Android Studio, import the project from the repo you just cloned.

  2. Take the motion-tracking-jni-example as the example, copy tango-gl-render, tango-service-sdk, and third-party into the motion-tracking-jni-example/app/src.

  3. Run ndk-build in the motion-tracking-jni-example/app/src/main folder.

  4. ndk will generate the libs folder, rename it to jniLibs.

  5. Go to Android Studio, in build.gradle(Module:app) file, add line 'sourceSets.main.jni.srcDirs = []' to the defaultConfig section.

  6. Just click the run button in Android Studio.

What we did here is basically disabled the Android Stdio's JNI compile and manually built it using ndk.

Start with unity3d, its easy to get a working demo with a week with Unity3D. And support is very good, documentation is top notch.

Hope this will help.

Tango NDK Tutorial Will help but the basic layout is

  1. Setup a new project
  2. Create your Java activity
  3. Create a JNI file to bridge Java to the C++
  4. Create your C++ logic
  5. Setup your Makefiles and Gradle (probably the most annoying part)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!