The most clear ndk Compilation Method in history

Source: Internet
Author: User

The most clear ndk Compilation Method in history

Many android Developers may have tried ndk compilation, But how troublesome it is to build an environment under windows is, I must have understood it. Today I will record the simplest method I have studied.

1. First download and install ndkCompiling environment

 

Http://gl.paea.cn/contents/6c5aa5daf49d3daa.html

The integrated cocos2dx development environment of the redbaby toolbox is installed. After installation, configure the path in the advanced computer environment configuration to be better than my ndk path D: \ cocos2dx64 \ NDK

2. Create an android demo

The source code demo will be attached later.

Resource address: http://download.csdn.net/detail/jgszhuzhu/8044193

 

3. Enter D: \ cocos2dx64 \ cygwin to open the Cygwin. bat file, and cd to enter the project directory, for example, C:/Users/Administrator/Desktop/jnidemo/JNITest. Note that the backslash is different from the windows Command.

You can run the "ls" command to check whether the entered information is correct. Then you can run the "ndk-build" command to compile it. You can see that the so file is generated in the armeabi file under lib.

 

 

 




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.