开发者

Ndk-cygwin path specific issues [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜