Log in or register to post comments

ndk-build problem

May 16, 2012 - 10:21am #1

well this is my cygwin.bat file
@echo off

set IS_UNIX=
set DEV_ROOT=c:/Development/Android/Proj
set JAVA_HOME=c:/Program Files/Java/jdk1.6.0_30
set CLASSPATH=c:/Development/Android/Proj/.classpath
set PATH=C:/Documents and Settings/android-sdk-windows/tools;C:/Development/Android/android-ndk-r7
set ANDROID_NDK_ROOT=/cygdrive/c/development/android/android-ndk-r7
set NDK_PROJECT_PATH=/cygdrive/c/development/android/Proj

C:
chdir C:\cygwin\bin

bash --login -i

This is what is done in cygwin
ABC@self ~
$ cd c:/Development/Android/Proj

ABC@self /cygdrive/c/Development/Android/Proj
$ ndk-build
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libQCAR.so exists or that its path is correct
/cygdrive/c/Development/Android/android-ndk-r7/build/core/prebuilt-library.mk:43: *** Android NDK: Aborting . Stop.

Wts dis error and how to solve??

ndk-build problem

May 27, 2013 - 2:53am #12

done.

Thx :)

ndk-build problem

May 27, 2013 - 2:18am #11

Hi,

the easiest would be to follow the recommended directory structure as explained in our Getting Started guide, i.e. something like:

  • base_dir
    • android-sdk
    • android-ndk-r8d
    • vuforia-sdk-android-xyz

 

ndk-build problem

May 26, 2013 - 3:10am #10

ksiva wrote:

The easiest thing is to place your projects in the Vuforia samples folder, then all these paths work out. If you put it elsewhere you'll need to update the paths, like so: # This is a relative path from the folder the Android.mk file is in LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so # This is an absolute path LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include Let's say your folder structure was like this: MyProject - jni - - Android.mk vuforia-sdk-android-1-5-9 - build - - include - - lib Then you could use these values: LOCAL_SRC_FILES = ../../vuforia-sdk-android-1-5-9/build/lib/$(TARGET_ARCH_ABI)/libQCAR.so LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../vuforia-sdk-android-1-5-9/build/include - Kim

hello I'm newbie in android and vuforia but I want to make AR Project for my graduation project...

so far I still didn't get the point for this issue...

Link of my project : C:\Development\Android\vuforia-sdk-android-2-0-30\samples\ImageTargets-2-0-6

Link of my ndk : E:\TA\Android\android-ndk-r8d

Link for "include" and "lib" folder should be in this : C:\Development\Android\vuforia-sdk-android-2-0-30\build

I wonder what is the correct code for "Android.mk" and correct command line to run in "cmd/cygwin"

Re: ndk-build problem

May 4, 2012 - 1:31pm #9

The easiest thing is to place your projects in the Vuforia samples folder, then all these paths work out. If you put it elsewhere you'll need to update the paths, like so:

# This is a relative path from the folder the Android.mk file is in
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so

# This is an absolute path
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include

Let's say your folder structure was like this:

MyProject
- jni
- - Android.mk
vuforia-sdk-android-1-5-9
- build
- - include
- - lib

Then you could use these values:

LOCAL_SRC_FILES = ../../vuforia-sdk-android-1-5-9/build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../vuforia-sdk-android-1-5-9/build/include

- Kim

Re: ndk-build problem

May 4, 2012 - 5:06am #8
ksiva wrote:

These:

LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include

- Kim

Sorry for the stupid question, but can one specify how exactly you have to set those variables? Does the androids sdk/ndk and the vuforia sdk have to be installed in a specific folder?

Re: ndk-build problem

March 21, 2012 - 6:53pm #7

These:

LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include

- Kim

Re: ndk-build problem

March 21, 2012 - 6:20am #6

which paths need to be changed in android.mk if i want to execute qcar sample app ouside that folder??

pls specify...

Thank You

Re: ndk-build problem

March 19, 2012 - 6:30pm #5

If you start by copying the ImageTargets sample to the same folder (samples) you shouldn't have to change the Android.mk file. If you move it to another folder you'll need to change the relative paths in that file.

- Kim

Re: ndk-build problem

March 18, 2012 - 8:34pm #4

Ohh....actual i was trying to work ....so i had android-sdk in both document and setting and development folder....

Now i am keeping android -sdk-windows in Development folder....

However i want to build edited image target file....so what changes do I need to make in android.mk file or any other files....

ty..

Re: ndk-build problem

March 18, 2012 - 7:09pm #3
Quote:

set PATH=C:/Documents and Settings/android-sdk-windows/tools;C:/Development/Android/android-ndk-r7

Is your Android SDK in the "Documents and Settings" folder or in the Development folder?

Make sure that you've left the sample applications in the folder they were originally installed in. If you move the samples you'll have to change the Android.mk file.

- Kim

Re: ndk-build problem

March 18, 2012 - 11:41am #2

And also i hav following file structure as said in developer guide...

i hav android-ndk-r7 ..android-sdk-windows and qcar-android-1-0-6
all in folder c:\Development\Android....

and the files to be built by ndk are in c:\Development\Android\Proj...

Pls help...

Log in or register to post comments