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. android ndk 纵览
  2. android就一定比java差?
  3. 【Android】在开发项目的时候,利用AndroidStudio开发工具,突然一直
  4. .net程序员转战android第二篇---牛刀小试
  5. .net程序员转战android第二篇---牛刀小试
  6. android删除android拦截短信并删除该条短信
  7. 分享:Android程序员,必备精品网站大汇总
  8. Android程序员必看之Android六大优势
  9. 电子书 android高薪之路-android程序员面试宝典.pdf

随机推荐

  1. cocos2d-x 2.x iOS和android多分辨率适配
  2. Android选择本地视频文件
  3. Android(安卓)ArrayAdapter的使用
  4. android学习笔记----多线程断点续传下载
  5. Android中使用log4j
  6. Android项目中如果json字符串中key-value
  7. Android(安卓)display架构分析(七-2)
  8. android 9.0通知栏适配,可用通知栏,悬浮通
  9. Your anti-virus program might be impac
  10. Android添加圆角渐变色按钮