On Tue, Aug 25, 2015 at 09:59:14 -0500, Peter List wrote:
> // required to avoid run found with adb logcat
> extern void Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass
> cls, jobject obj);
There's an SDL_android_main.c file you need to compile. I have a
personal Android/NDK app here:
https://github.com/mathstuf/abagames-gunroar
but it needs a CMake branch (for D support), uses git-hg to clone SDL
libraries, and uses a patched NDK toolchain for D support. It also only
supports Ninja anyways (make probably works; untested).
If you look in src/android/CMakeLists.txt, there are steps which:
- install the generated library to the src/android/jni/gunroar
directory;
- runs ndk-build;
- links the assets into place;
- build the apk using ant;
- adds a target for installing it to a device.
The src/android/src and src/android/jni/src directories contain the SDL
glue and minimal (NDK) build scripts. Shouldn't be too hard to adapt for
Tegra. It certainly makes APKs which run (but then promptly crash in the
D runtime).
--Ben
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers