Introduction:
-------------

Please read docs/OVERVIEW.html 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 1.7 or later (http://www.cygwin.com) to
use the NDK. Note that running it under MSys or Cygwin 1.5 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. You might
also want to define the GNUMAKE environment variable to point to it.

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.


II. Preparing your installation prebuilt cross-toolchain binaries:
------------------------------------------------------------------

Previous releases required you to run the 'build/host-setup.sh' script to
configure the NDK. However, this step has been removed in release 4 (a.k.a. r4).

The auto-detection and sanity checks that were performed by the script have
been moved into the NDK makefiles (and are now performed each time you invoke
GNU Make).

本文出自 “平凡的程序员” 博客,谢绝转载!

更多相关文章

  1. 分析脚本文件AndroidInitProcess分析心得(1)
  2. .net程序员转战android第二篇---牛刀小试
  3. android 开源和一些博客总结
  4. 分享:Android程序员,必备精品网站大汇总
  5. 分享android技术牛人博客
  6. Android通知栏消息(基本文字通知)
  7. [意见反馈][官方博客]
  8. android 微博客户端源码

随机推荐

  1. linux从0开始----01
  2. Linux2.6内核下键盘输入设备驱动的实现
  3. 一键安装linux (附带各种命令,登录欢迎界
  4. Linux之I2C设备总结
  5. CUDA统一内存工作(具体来说,cudaMallocMana
  6. 在recvfrom系统调用期间取消C ++ 11 std
  7. Android实现FM收音机
  8. 如何在linux中停止命令的日志(rsyslog)?
  9. windows管理linux机器
  10. Linux内核中实现生产者与消费者(避免无效