This project has been on hold since 2016.
All the data on this site is still available (and will stay available) but not actual anymore.
You might be interested in checking out Dmitry Moskalchuk's portfolio website to learn about his other projects.
请注意!!!您现在看到的是已过期的旧版本CrystaX NDK.
新版本CrystaX NDK 10.3.2已发布, 提供了很多新功能和改进; 请尽量使用最新版本.


Here are customized distribution of Android NDK 1.6_r1 which I have rebuilt from official sources. Support of C++ exceptions, RTTI and Standard C++ Library added. Actually only some build scripts and configuration include files were changed.


CrystaX NDK包含若干开源许可证. 详见每个模块的版权声明文件.

请注意CrystaX NDK发布包中也包括编译器,链接器,文档等的预编译二进制文件. 工具链的源码在GitHub (你可以使用编译脚本自动下载它).

预编译的GCC和其他二进制文件(GDB, binutils 等等)基于the GNU General Public License (GPL) 或 the GNU Lesser General Public License (LGPL). 详见COPYING和COPYING.LIB,位于 $NDK/toolchains/$tc/prebuilt/$system.

预编译的LLVM/Clang工具链基于 LLVM "BSD" license.

基本上, 授权规则等同于Google's Android NDK - 例如, 允许商业&非商业用途. 唯一区别是CrystaX部分, 基于 BSD 2-clause license.


文件 大小 SHA256校验值 110.442 MB 030fc7f644b3bc4...2f29bf165ea352
android-ndk-r2-darwin-x86-crystax-1.tar.bz2 90.833 MB 389bbfb6ecdb813...ca4e5611d8a40a
android-ndk-r2-linux-x86-crystax-1.tar.bz2 88.356 MB 190c1a9cb424b5a...ef3eeea7d7dbff


You can also build your own distribution if you don't want to use my prebuilt versions. To do it, follow instructions below.

Required development tools:

  • For Windows, a recent release of Cygwin is required
  • GNU Make 3.81 or later
  • GNU Makeinfo (most recent version)
  • GIT (for downloading toolchain sources)
  • Most recent GNU Libtool packages (automake, autoconf etc)
  • GNU C/C++ 3.x or later (for Windows, it should be exactly 3.x, not 4.x)
  • ncurses library (for Cygwin, it should be ncurses-devel package)
  • GNU flex (most recent version)
  • patch utility. Most likely, it is already installed if you are using Linux or Mac OS X; however, in Cygwin it should be installed explicitly


  • Download my patch and store it somewhere
  • Download android-ndk-1.6_r1 for your platform from android web site
  • Unpack downloaded file and go to directory android-ndk-1.6_r1
  • Apply my patch:
    patch -p1 <path-to-my-patch
  • Point environment variable ANDROID_NDK_ROOT to the current directory:
    export ANDROID_NDK_ROOT=`pwd`
  • For Windows, point environment variable CC to the GCC 3:
    export CC=gcc-3
  • Run build script:
    It will download android toolchain sources (including binutils, gcc and gdb), patch and compile them. It could take lot of time depending on your configuration so be patient.
  • Now you are ready to test it. Try to compile application hello-jni (I've modified it, so there are STL and exceptions in the code) using instructions from Android team
  • Enjoy!


Our contributors: