Cygwin and ndk-build problems in Android ndk Development

Source: Internet
Author: User

During the weekend's free time, I played ndk and installed cygwin, which took only three hours better than expected, but encountered several problems.

Copy the. bash_profile file under Environment (cygwin 1.7) to the E: \ cygwin \ home \ Administrator directory.

To http://www.google.com.hk/url? Sa = T & IDC = J & Q = Android % 2 bndk & source = web & Cd = 1 & ved = 0 cdi1_jaa & url = http % 3A % 2f % 2fdeveloper.android.com % 2 fsdk % 2 fndk % 2f & Ei = qvmrtuzfka-fiae-tnjydw & USG = AFQjCNEjw0p7gFj5IQ9Woo443OHbjncx-w downloading android
The latest ndk version, modify the file. bash_profile In the Administrator directory, and add

Ndk =/cygdrive/e/android-ndk-r6b

Export ndk
Export Path = $ ndk: $ path

Finally, use cygwin bash shell to enter the Android-ndk installation directory my E: \ android-ndk-r6b uses the command ndk-build, the prompt command not found, the same error message is displayed when $ ndk/ndk-build is used.

However, Google is still the only option. A cool person writes to execute directly./ndk-Build-C samples/Hello-JNI, which is compiled. Later I thought this was a path problem, but I don't know why.

-C: Specifies the project path.

======================================

Finally, I tried and found that the. bash_profile environment variable setting was not successful. It is estimated that the cygwin installation directory is still a problem .... If you encounter command not found when running ndk-build, reinstall it.

I wrote this blog last night, but today I reinstalled cygwin for n times.

On this blog in http://hi.baidu.com/lizhengjun2010/blog/item/08b7fb1b79dc9befe1fe0b09.html, follow his steps to install everything done, thanks.

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.