Configuring Cygwin Path Variable To Find Android Ndk
I am attempting to set up my PC to use the Android NDK for my projects. I have Cygwin installed. And I downloaded the Android NDK. Let's say I put the NDK in the following folder o
Solution 1:
Goto ..\cygwin\home\Eclipse
. You will find a file named .bashrc
. Open it using notepad and at the end of the file add
export PATH=$PATH:/cygdrive/c/Android_ndk/<android ndk folder in here>
If you have done everything correctly the on issuing which ndk-build
command on cygwin terminal will give you
/cygdrive/c/Android_ndk/<android ndk folder in here>/ndk-build
Hope this helps you.
Solution 2:
With latest NDK r8b you don't need cygwin at all! Use ndk-build.cmd from Windows command line or in eclipse.
Solution 3:
add such code in .bashrc
NDK=D:/android/android-ndk-r9
PATH=${NDK}:$PATH
ANT=C:/bin/apache-ant-1.9.2
PATH=${ANT}/bin:$PATHexport PATH NDK
Post a Comment for "Configuring Cygwin Path Variable To Find Android Ndk"