Your APP_BUILD_SCRIPT points to an unknown file on Hardy

7,545 views
Skip to first unread message

Victor lyamtsev

unread,
Oct 14, 2010, 3:32:35 PM10/14/10
to andro...@googlegroups.com
I've been trying to follow NDK instructions and to use 'ndk-build' and
i have this error:
Your APP_BUILD_SCRIPT points to an unknown file: /home/myhome/jni/Android.mk
'make APP=mylib' works OK
I use latest NDK on Ubuntu ( Hardy Heron)
Any idea what the problem is ?
Thanks,
-V

Onur Cinar

unread,
Oct 14, 2010, 10:59:35 PM10/14/10
to andro...@googlegroups.com

Hi,

Are you running the ndk-build from the project root? Looks like you are running it from your user home directory?

Regards,

-onur


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.

---
www.zdo.com

chcat

unread,
Oct 15, 2010, 12:14:03 PM10/15/10
to android-ndk
Definetely not from home folder.
I tried either run it from project root, or from NDK root: ./ndk-build
-C <path-to-project>

On Oct 14, 10:59 pm, Onur Cinar <onur.ci...@gmail.com> wrote:
> Hi,
>
> Are you running the ndk-build from the project root? Looks like you are
> running it from your user home directory?
>
> Regards,
>
> -onur
>
> On Thu, Oct 14, 2010 at 12:32 PM, Victor lyamtsev <vlyamt...@gmail.com>wrote:
>
>
>
> > I've been trying to follow NDK instructions and to use 'ndk-build' and
> > i have this error:
> > Your APP_BUILD_SCRIPT points to an unknown file:
> > /home/myhome/jni/Android.mk
> >  'make APP=mylib' works OK
> > I use latest NDK on Ubuntu ( Hardy Heron)
> > Any idea what the problem is ?
> > Thanks,
> > -V
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-ndk...@googlegroups.com<android-ndk%2Bunsu...@googlegroups.com>
> > .

David Turner

unread,
Oct 17, 2010, 3:33:40 PM10/17/10
to andro...@googlegroups.com
Can you dump the output of $NDK/ndk-build NDK_LOG=1 here?

To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

chcat

unread,
Nov 4, 2010, 5:41:15 PM11/4/10
to android-ndk
Android NDK: NDK installation path auto-detected: '/home/myhome/DROID/
android-ndk-r4b'
Android NDK: GNU Make version 3.81 detected
Android NDK: Host OS was auto-detected: linux
Android NDK: Host CPU was auto-detected: x86
Android NDK: HOST_TAG set to linux-x86
Android NDK: Host awk tool was auto-detected: awk
Android NDK: Host awk test returned: Pass
Android NDK: This NDK supports the following toolchains and target
ABIs:
Android NDK: arm-eabi-4.2.1: armeabi
Android NDK: arm-eabi-4.4.0: armeabi armeabi-v7a
Android NDK: x86-4.2.1: x86
Android NDK: Found supported platforms: android-3 android-4 android-5
android-8
Android NDK: PLATFORM android-3 supports: arm
Android NDK: ABI arm sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-3/arch-arm
Android NDK: PLATFORM android-4 supports: arm
Android NDK: ABI arm sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-4/arch-arm
Android NDK: PLATFORM android-5 supports: arm x86
Android NDK: ABI arm sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-5/arch-arm
Android NDK: ABI x86 sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-5/arch-x86
Android NDK: PLATFORM android-8 supports: arm x86
Android NDK: ABI arm sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-8/arch-arm
Android NDK: ABI x86 sysroot is: /home/myhome/DROID/android-ndk-r4b/
build/platforms/android-8/arch-x86
Android NDK: Found stable platform levels: 3 4 5 8
Android NDK: Found max platform level: 8
Android NDK: Looking for AndroidManifest.xml in /home/myhome/DROID/
android-ndk-r4b
Android NDK: Looking for AndroidManifest.xml in /home/myhome/DROID
Android NDK: Looking for AndroidManifest.xml in /home/myhome
Android NDK: Found it !
Android NDK: Found project path: /home/myhome
Android NDK: Parsing /home/myhome/DROID/android-ndk-r4b/build/core/
default-application.mk
Android NDK: Found APP_PLATFORM=android-4 in /home/myhome/
default.properties
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/
myhome/jni/Android.mk

On Oct 17, 3:33 pm, David Turner <di...@android.com> wrote:
> Can you dump the output of $NDK/ndk-build NDK_LOG=1 here?
>
> > <android-ndk%2Bunsu...@googlegroups.com<android-ndk%252Buns...@googlegroups.com>

chcat

unread,
Nov 4, 2010, 5:41:34 PM11/4/10
to android-ndk
> Can you dump the output of $NDK/ndk-build NDK_LOG=1 here?
>
> > <android-ndk%2Bunsu...@googlegroups.com<android-ndk%252Buns...@googlegroups.com>

Onur Cinar

unread,
Nov 4, 2010, 7:24:29 PM11/4/10
to andro...@googlegroups.com

Hi,

I'm not sure if it will help, but it seems like your project is located at /home/myhome,   and the NDK is located in /home/myhome/DROID/android-ndk-r4b.    Could you try to move your project into something like /home/myhome/project1?

I'll try to reproduce it here too.

Regards,

-onur



To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

David Turner

unread,
Nov 4, 2010, 9:17:29 PM11/4/10
to andro...@googlegroups.com
It looks like /home/myhome/jni/Android.mk does not exist.
Did you place the file at a different location? Did you define APP_BUILD_SCRIPT in your Application.mk?

To unsubscribe from this group, send email to android-ndk...@googlegroups.com.

chcat

unread,
Nov 5, 2010, 9:18:26 AM11/5/10
to android-ndk
That's confusing... My project is in /home/myhome/DROID/android-ndk-
r4b/apps/MyProject
The Android.mk for that project is in /home/myhome/DROID/android-ndk-
r4b/apps/MyProject/project/jni
The Application.mk is in /home/myhome/DROID/android-ndk-r4b/apps/
MyProject
and it contains the "default" project location:
APP_PROJECT_PATH := $(call nt-dir)/project
It also finds incorrect platform version: I build for Android-8

What is the proper syntax to define jni sub- project location with
APP_BUILD_SCRIPT ?



On Nov 4, 9:17 pm, David Turner <di...@android.com> wrote:
> It looks like /home/myhome/jni/Android.mk does not exist.
> Did you place the file at a different location? Did you define
> APP_BUILD_SCRIPT in your Application.mk?
>
> > > > <android-ndk%2Bunsu...@googlegroups.com<android-ndk%252Buns...@googlegroups.com>
> > <android-ndk%252Buns...@googlegroups.com<android-ndk%25252Bun...@googlegroups.com>

chcat

unread,
Nov 5, 2010, 9:31:49 AM11/5/10
to android-ndk
I tried to add the line APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/jni/
Android.mk
Have the same error: "Your APP_BUILD_SCRIPT points to the unknown
file /home/myhome/jni/Android.mk"

The same error persists even if i try to hardcode APP_PROJECT_PATH in
Application.mk to /home/myhome/DROID/android-ndk-r4b/apps/MyProject


On Nov 4, 9:17 pm, David Turner <di...@android.com> wrote:
> It looks like /home/myhome/jni/Android.mk does not exist.
> Did you place the file at a different location? Did you define
> APP_BUILD_SCRIPT in your Application.mk?
>
> > > > <android-ndk%2Bunsu...@googlegroups.com<android-ndk%252Buns...@googlegroups.com>
> > <android-ndk%252Buns...@googlegroups.com<android-ndk%25252Bun...@googlegroups.com>

David Turner

unread,
Nov 5, 2010, 11:26:20 AM11/5/10
to andro...@googlegroups.com
On Fri, Nov 5, 2010 at 2:18 PM, chcat <vlya...@gmail.com> wrote:
That's confusing... My project is in /home/myhome/DROID/android-ndk-
r4b/apps/MyProject
The Android.mk for that project is in /home/myhome/DROID/android-ndk-
r4b/apps/MyProject/project/jni
The Application.mk is in /home/myhome/DROID/android-ndk-r4b/apps/
MyProject

The default location for this file is $PROJECT/jni/Application.mk, which is why ndk-build does not find your version.
That is why the log says it is parsing build/core/default-application.mk, which is essentially a default Application.mk
 
The build system tries to find your AndroidManifest.xml by back-tracking directories. It looks like it found one under /home/myhome/AndroidManifest.xml
and thinks this is the root of your project path. I assume this corresponds to another (possibly stale) project, not the one you want to work on.

Try invoking ndk-build from the directory containing your AndroidManifest.xml instead (I assume MyProject/project here)


To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages