Build Standalone Binaries in C for Android

Procedure is simple. Here is the detailed steps and hopefully it is helpful for others.


  • Know your Android┬ásystem code, whether it's android-18, or android-22, or others. Here we assume android-21.
  • Download the latest NDK. Here we assume NDK path is /home/happyz/ndk (or simply ~/ndk)
  • Figure out the gcc version, either 4.8 or 4.9. If not, update it.
  • Assume the output folder you want to store the toolchain is at ~/androidLib/
  • Our system is Ubuntu 64-bit, therefore we need to specify --system=linux-x86_64

Continue reading Build Standalone Binaries in C for Android

Build CM10.2 for Quincyatt from Source

It's just taking too much time to figure out the steps.. It'll be good to record what I have done in case I forget it..

System Spec

  • Ubuntu, eight-core, i7-2600 3.4GHz
  • Samsung Galaxy Note (quincyatt)


For environment setup:

sudo apt-get install openjdk-7-jdk
sudo apt-get install python
sudo apt-get install git-core
sudo apt-get install gnupg flex bison gperf \
  build-essential zip curl zlib1g-dev libc6-dev \
  lib32ncurses5-dev ia32-libs x11proto-core-dev \
  libx11-dev lib32readline5-dev lib32z-dev \
  libgl1-mesa-dev g++-multilib mingw32 tofrodos \
  python-markdown libxml2-utils

For Android SDK:

Download and install SDK following the instruction here

Continue reading Build CM10.2 for Quincyatt from Source