blob: 570c248c99f3a79d0f10234f5248cdbb2a763b49 [file] [log] [blame]
Android NDK Installation
Introduction:
-------------
Please read docs/OVERVIEW.TXT to understand what the Android NDK is and is not.
This file gives instructions on how to properly setup your NDK.
I. Requirements:
----------------
The Android NDK currently requires a Linux, OS X or Windows host operating system.
Windows users will need to install Cygwin (http://www.cygwin.com) to use it. Note
that running the NDK under MSys is not supported.
You will need to have the Android SDK and its dependencies installed. The NDK
cannot generate final application packages (.apk files), only the shared library
files that can go into them.
IMPORTANT:
The Android NDK can only be used to target system images using
the Cupcake (1.5) or later releases of the platform.
This is due to subtle toolchain and ABI related changed that make
it incompatible with 1.0 and 1.1 system images.
The NDK requires GNU Make 3.81 or later being available on your development
system. Earlier versions of GNU Make might work but have not been tested.
You can check this by running 'make -v' from the command-line. The output
should look like:
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
...
On certain systems, GNU Make might be available through a different command like
'gmake' or 'gnumake'. For these systems, replace 'make' by the appropriate command
when invoking the NDK build system as described in the documentation.
The NDK also requires a Nawk or GNU Awk executable being available on your
development system. Note that the original 'awk' program doesn't implement
the 'match' and 'substr' functions used by the NDK build system.
On Windows, you will need to install a recent release of Cygwin to use the NDK.
See http://www.cygwin.com for instructions.
II. Preparing your installation prebuilt cross-toolchain binaries:
------------------------------------------------------------------
After installing and unarchiving the NDK, you will need to run the following
command from the root folder:
build/host-setup.sh
This will test your setup and make sure the NDK can work properly.