Ndk-cygwin path specific issues [closed]
Amusing windows xp, cygwin & ndk for my project. I mapped all path in the cygwin.batch file. I am trying to compile hello-jni by cygwin.
Contents of cygwin.bat
@echo off
F:
chdir F:\Cygwin\bin
bash --login -i
set IS_UNIX=
set DEV_ROOT=E:/android/android-ndk-r5b/samples/hello-jni
set JAVA_HOME=C:/Program Files/Java/jdk1.5.0_13
set CLASSPATH=d:/work_code/android/BlueInput/obj
set PATH=E:/android/android-sdk-windows/tools;E:/android/android-ndk-r5b
set ANDROID_NDK_ROOT=/cygdrive/e/android/android-ndk-r5b
set NDK_PROJECT_PATH=/cygdrive/e/android/android-ndk-r5b/samples/hello-jni
开发者_开发技巧on executing the command ./ndk-build, am getting the error...
Android NDK: Could not find application project directory!
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
cygdrive\e\android\android-ndk-r5b\build\core\build-local.mk:"Android NDK aborting"
The parent folder should be "jni" and then inside your Android.mk
Trigger ndk-build script from your project's jni folder (the folder where Android.mk is located and your c/c++ files) and not from the android-ndk directory.
精彩评论