How to configure the NDK development environment on mac _ PHP Tutorial

Source: Internet
Author: User
Configure the NDK development environment on mac. This article references other people's articles. detailed steps: 1. start Terminal 2. enter pico. bash_profile and press enter. 3. enter the following content [the path depends on the actual situation]: [php] e. This article references other people's articles and detailed steps:

I. start Terminal

2. enter pico. bash_profile and press enter.

3. enter the following content (the path depends on the actual situation ]:

[Php]
Export ANDROID_SDK_ROOT =/Users/apple/Desktop/adt-bundle/sdk
Export ANDROID_NDK_ROOT =/Users/apple/Documents/Android/android-ndk-r8e
Export PATH = $ PATH: $ ANDROID_SDK_ROOT
Export PATH = $ PATH: $ ANDROID_NDK_ROOT
Export ANDROID_TOOL =/Users/apple/Desktop/adt-bundle/sdk/platform-tools
Export PAHT = $ PATH: $ ANDROID_TOOL

Export ANDROID_SDK_ROOT =/Users/apple/Desktop/adt-bundle/sdk
Export ANDROID_NDK_ROOT =/Users/apple/Documents/Android/android-ndk-r8e
Export PATH = $ PATH: $ ANDROID_SDK_ROOT
Export PATH = $ PATH: $ ANDROID_NDK_ROOT
Export ANDROID_TOOL =/Users/apple/Desktop/adt-bundle/sdk/platform-tools
Export PAHT = $ PATH: $ ANDROID_TOOL

4. Note that the path should not contain spaces! After the input is complete, Control + x is saved, and then the system prompts whether to save it. enter y and press enter!


5. test the path step: close your terminal and re-open it. if there is a problem with the previous path configuration, the following prompt will appear when you re-open the terminal:-bash: exoort: command not found. If no such prompt is displayed, "OK" indicates that the path configuration is complete!

6. enter ndk-build. if the response is correct, the configuration path is successful.

7. cd to the project to be compiled, ndk-build, and compilation successful. OK.


Terminal 1. start Terminal 2. enter pico. bash_profile and press enter. 3. enter the following content [the path depends on the actual situation]: [php] e...

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.