(2) Installation Guide

Source: Internet
Author: User

-------------

For English documents, see documentation.html of android-ndk-r5b.

Part of Android Native Development Kit (ndk)

See http://developer.android.com/sdk/ndk/ (Agent required)

Translation is personal opinion only

-----------------

 

Android ndk Installation

 

Android ndk Installation

 

Introduction:

 

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.

 

Read docs/overview.html to understand what Android ndk is and not. This document describes how to properly configure your ndk.

 

 

I. Requirements:

 

I. system requirements:

----------------

 

The android ndk currently requires a Linux, OS X or Windows host operating system.

 

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.

 

Windows users will need to install cygwin 1.7 or update (http://www.cygwin.com) to use ndk. Note that it cannot be run in msys or cygwin 1.5.

 

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.

 

You will need to have installed the android SDK and its dependencies. Ndkcannot generate the ultimate application package (.apk file), and only generate dynamic library files that can be encapsulated.

 

Important:

The android ndk can only be used to target system images using the cupcake (1.5) or later releases of the platform.

 

Important:

Android ndk can only be used to use the target image of the released version of cupcake (1.5) or the updated platform.

 

This is due to subtle toolchain and ABI related changed that make it incompatible with 1.0 and 1.1 system images.

 

This is because the subtle changes related to the tool chain and ABI 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.

 

Ndk requires your development environment to use GNU make 3.81 or update. Early versions of GNU make may work but have not been tested.

 

You can check this by running 'make-V' from the command-line. The output shoshould look like:

 

You can run make-V on the command line to check it. The output should look like this:

 

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.

 

In some systems, GNU make may be available through a different command like gmake or gnumake. For these systems, replace make with appropriate commands when calling the ndk build system, as described in this document. You can also define the gnumake 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.

 

Ndk also needs to have an available nawk or GNU awk executable file on your development system. Note that the original awk program does not implement the match and substr functions used by the ndk build system.

 

Ii. Preparing your installation prebuilt cross-toolchain Binaries:

 

2. Prepare the installation of your pre-built cross-tool chain binary file:

------------------------------------------------------------------

 

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 ).

 

Previous releases require you to run build/host-setup.sh scripts to configure ndk. However, this step has been removed from Release 4 (R4.

 

The auto-detection and sanity checks that were got Med by the script have been moved into the ndk makefiles (and are now running med each time you invoke GNU make ).

 

The script for executing the automatic check and rational check has been introduced into the ndk makefile (which is executed every time you call GNU make ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.