Install Android ndk on Ubuntu 10.04

Source: Internet
Author: User

Installation steps:

1. Download The ndk package ,:

Http://dl.google.com/android/ndk/android-ndk-r4b-linux-x86.zip

2. Configure ndk

A. decompress the android-ndk-r4b-linux-x86.zip package.

I am creating a working directory/workspace/ndk

Store the compressed package in this directory,

$ Unzip android-ndk-r4b-linux-x86.zip

B and rename it. The name is too long and inconvenient.

$ MV android-ndk-r4b (ndkr4)

C sets environment variables for ndk-build

(For ease of use)

Modify Your. bashrc File

$ VI ~ /. Bashrc

Add at last

Export ndk_home =/workspace/ndk/ndkr4/
Export Path = $ path: $ ndk_home

Save and exit.

Make the settings take effect immediately

$ Source ~ /. Bashrc

Test whether to configure OK

$ Ndk-build

Ndk-build
Android ndk: cocould not find application project directory!
Android ndk: Please define the ndk_project_path variable to point to it.
/Workspace/ndk/ndkr4/build/CORE/build-local.mk: 85: *** Android ndk: aborting. Stop.

As long as it is not command not found, hahaha, you are successful.

Related Article

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.