NDK 18b

Automated build recipe

See https://gitlab.com/android-rebuilds/auto/tree/master/ndk-18b.

Principle of operation

NDK is build out of the standard SDK tree.

Recreate matching build environment

The current reference build environment for this version is Ubuntu 14.04.

Build dependencies


apt-get -y install \
  bison build-essential curl dos2unix flex git make pbzip2 python python-pip \
  texinfo uuid-runtime zip
pip install setuptools

Preparing build tree


# Preparing build tree
# Make 'repo' accessible to the build system later
export PATH=~/bin:$PATH
repo init -u https://android.googlesource.com/platform/manifest -b ndk-r18b
repo sync --current-branch -j4

Build NDK

cd ndk/
python checkbuild.py --no-build-tests

The GNU/Linux NDK release is in out/dist/android-ndk-0-linux-x86_64.tar.bz2 :)


prebuilts should be rebuilt

 windows release

$ python checkbuild.py --no-build-tests --system windows
In file included from /home/android/wd/external/googletest/googletest/include/gtest/gtest.h:54:0,
                 from /home/android/wd/external/googletest/googletest/src/gtest-all.cc:39:
/usr/include/c++/4.8/limits:42:28: fatal error: bits/c++config.h: No such file or directory
#include <bits/c++config.h>

$ python checkbuild.py --no-build-tests --system windows64
In file included from /usr/include/stdint.h:25:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdint.h:9,
                 from /home/android/wd/external/shaderc/shaderc/libshaderc/include/shaderc/shaderc.h:24,
                 from /home/android/wd/external/shaderc/shaderc/libshaderc/src/shaderc_c_smoke_test.c:15:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
#  include <sys/cdefs.h>

apt install libstdc++-4.8-dev:i386 doesn't seem to help:

gcc: command not found

I suspect we need more prebuilts/ envs (currently: darwin-x86 linux-x86).

build stats

Using i5-6300HQ (4x2.30GHz), SSD disk:

  • ~35mn download
  • ~15mn git checkouts
  • ~10mn compilation
  • 17GB .repo
  • 38GB wd/