http://developer.android.com/sdk/ndk/1.6_r1/index.html
1. run build/host-setup.sh (--no-awk-check?)
Checking host development environment.
NDK Root : /home/ccc/android-ndk-1.6_r1
GNU Make : make (version 3.81)
Awk : Check ignored through user option.
Platform : linux-x86
Generate : out/host/config.mk
Toolchain : Checking for arm-eabi-4.2.1 prebuilt binaries
2. $ make APP=hello-jni
the lib will be in apps/hello-jni/project/libs/armeabi/libhello-jni.so
Android NDK: Building for application 'hello-jni'
Compile thumb : hello-jni <= apps/hello-jni/project/jni/hello-jni.c
SharedLibrary : libhello-jni.so
Install : libhello-jni.so => apps/hello-jni/project/libs/armeabi
3. Build the HelloJni project
create new Android project, using the "Import from Existing Source", point into the dir "apps/hello-jni/project", run it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment