Amusant windows xp, cygwin & ndk pour mon projet. J'ai tracé tout le chemin dans le fichier cygwin.batch. J'essaye de compiler bonjour-jni par cygwin.Problèmes spécifiques au chemin Ndk-cygwin
Contenu de 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
sur l'exécution de la commande ./ndk-build, je suis obtenir l'erreur ...
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"
Salut à tous, je l'ai résolu. En cygwin j'ai exporté le chemin et l'ai compilé parfaitement. NDK_PROJECT_PATH = "chemin du projet" puis, export = NDK_PROJECT_PATH puis, je l'ai compilé directement par ./ndk-build depuis le shell cygwin. – yokks
cela a fait l'affaire. –
Une chance que vous pouvez fournir plus de détails? Comment exportez-vous dans cygwin? – bugfixr