WindowsにNDK r5b導入
Webにある記事は古いのが多い.新しいのはすごく適当に入る
ビルドしてみる
ndk-buildがmake的なもの
- android-ndk-r5b/samplesにサンプルがあるから適当にndk-buildする.例えばサンプルの一つのhello-jniなら
$ cd ${PATH_TO_SAMPLES_ROOT}/hello-jni $ ndk-build Gdbserver : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup Compile thumb : hello-jni <= hello-jni.c SharedLibrary : libhello-jni.so Install : libhello-jni.so => libs/armeabi/libhello-jni.so
出力の最後にあるように,libs以下のほげほげにsoができる