1Android NDK Installation 2 3Introduction: 4------------- 5 6Please read docs/OVERVIEW.TXT to understand what the Android NDK is and is not. 7This file gives instructions on how to properly setup your NDK. 8 9 10I. Requirements: 11---------------- 12 13The Android NDK currently requires a Linux, OS X or Windows host operating system. 14Windows users will need to install Cygwin (http://www.cygwin.com) to use it. Note 15that running the NDK under MSys is not supported. 16 17You will need to have the Android SDK and its dependencies installed. The NDK 18cannot generate final application packages (.apk files), only the shared library 19files that can go into them. 20 21 22IMPORTANT: 23 The Android NDK can only be used to target system images using 24 the Cupcake (1.5) or later releases of the platform. 25 26 This is due to subtle toolchain and ABI related changed that make 27 it incompatible with 1.0 and 1.1 system images. 28 29The NDK requires GNU Make 3.81 or later being available on your development 30system. Earlier versions of GNU Make might work but have not been tested. 31 32You can check this by running 'make -v' from the command-line. The output 33should look like: 34 35 GNU Make 3.81 36 Copyright (C) 2006 Free Software Foundation, Inc. 37 ... 38 39On certain systems, GNU Make might be available through a different command like 40'gmake' or 'gnumake'. For these systems, replace 'make' by the appropriate command 41when invoking the NDK build system as described in the documentation. 42 43The NDK also requires a Nawk or GNU Awk executable being available on your 44development system. Note that the original 'awk' program doesn't implement 45the 'match' and 'substr' functions used by the NDK build system. 46 47On Windows, you will need to install a recent release of Cygwin to use the NDK. 48See http://www.cygwin.com for instructions. 49 50 51II. Preparing your installation prebuilt cross-toolchain binaries: 52------------------------------------------------------------------ 53 54After installing and unarchiving the NDK, you will need to run the following 55command from the root folder: 56 57 build/host-setup.sh 58 59This will test your setup and make sure the NDK can work properly. 60