- this plan will download NDK package and establish android toolchain in your personal enviroment.
git clone https://github.com/ChrisSheu/Install-Android-enviroment
cd Install-Android-enviroment
following line will create ~/.ndk folder and extract NDK package in it.
./install_android_arm_x86_toolchain.sh
- establish android toolchain will tip you how to use it :
- now, create hello.c and show its content:
- build it and check its type:
- execute it on your platform: