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.