Ndk-cygwin path specific issues

15,444

The parent folder should be "jni" and then inside your Android.mk

Share:
15,444
yokks
Author by

yokks

still searching.......

Updated on June 04, 2022

Comments

  • yokks
    yokks almost 2 years

    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"