NDK on Ubuntu

1. Glibc

ldd --version

2. Make build tool for native code

sudo apt-get install build-essential

3. Make version

make --version
sudo apt-get install ia32-libs, pour 64-bit linux

4. install jdk 6

5. download androidsdk

6. download androidndk

7. export env variables

export ANDROID_SDK=”<path to your Android SDK directory>”
export ANDROID_NDK=”<path to your Android NDK directory>”
export PATH=”$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platformtools:$ANDROID_NDK”

8. update android sdk tools



NDK: c++ <==> java

<returnType> Java_<com_mypackage>_<class>_<methodName> (JNIEnv* pEnv,<parameters>...)

posted on 2012-02-12 18:11  leaving  阅读(234)  评论(0编辑  收藏  举报