Re: APP_PROJECT_PATH - Generate JNI output files outside of the NDK directory issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: APP_PROJECT_PATH - Generate JNI output files outside of the NDK directory issue

creswell
Hi Syl,
Try setting APP_PROJECT_PATH to 
APP_PROJECT_PATH := /cygdrive/c/dev/android/myApp 
I was having the same weird issue until I removed whitespace in paths so that I wouldn't need to surround anything in double quotes and changed absolute paths to Cygwin style /cygdrive/c/...

good luck,
Jeff

On Wednesday, March 3, 2010 6:08:03 AM UTC-5, Syl wrote:
First, I'm using NDK on Windows and I use cygwin to execute command
line.


In NDK samples, projet files must be in <NDK_dir>/apps/<myApp>/
project/

It's defines in the Application.mk by
APP_PROJECT_PATH := $(call my-dir)/project


I read the APPLICATION-MK.TXT NDK documentation. They say it's
possible to modify the APP_PROJECT_PATH.

APP_PROJECT_PATH
    This variable is mandatory and should give the *absolute*
    path to your Application's project root directory. This is used
    to copy/install stripped versions of the generated JNI shared
    libraries to a specific location known to the APK-generating
tools.


So, I set it in my Application.mk file to APP_PROJECT_PATH := /
cygdrive/c/dev/android/myApp/

However, when I launch "make APP=myApp V=1", I get the error :
Android NDK: There is no Android.mk under /cygdrive/c/dev/android/
myApp/jni
Android NDK: If this is intentional  please define APP_BUILD_SCRIPT to
point
Android NDK: to a valid NDK build script

But the /cygdrive/c/dev/android/myApp/jni/Android.mk exists !

I try again by adding APP_BUILD_SCRIPT := /cygdrive/c/dev/android/
myApp/jni/Android.mk but it still fails !

I also try to compile with APP_PROJECT_PATH := C:/dev/android/myApp/
but it fails again...

Does anyone know how to solve this issue ?

Thanks for you help !

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/n5aZx25-lsQJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.