Log in or register to post comments

Running ImageTargets Sample App Problem

January 8, 2013 - 12:13pm #1

Hi Everybody;
I have a problem about running sample application which is ImageTargets. 
I completely following the tutorial about setup vuforia but I cant understand step 3's first part. So I cant do that part. 
In this part tutorial say that;

Change directory to ImageTargets in the <DEVELOPMENT_ROOT>\vuforia-sdk-android-xx-yy-zz\samples 

directory and execute: ndk-build

but I cant find ndk-build in ImageTargets folder. 

 

01-08 22:03:41.918: E/QCAR(26019): The library libQCAR.so could not be loaded
01-08 22:03:41.918: E/QCAR(26019): The library libImageTargets.so could not be loaded
 
In eclipse I have an errors like this in logcat. In the tutorial, as you can see when I execute ndk-build it will give me a output like this;
 
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Gdbserver      : [arm-linux-androideabi-4.4.3] libs/armeabi-v7a/gdbserver
Gdbsetup       : libs/armeabi-v7a/gdb.setup
Compile++ arm  : ImageTargets <= ImageTargets.cpp
Compile++ arm  : ImageTargets <= SampleUtils.cpp
Compile++ arm  : ImageTargets <= Texture.cpp
StaticLibrary  : libstdc++.a
Prebuilt       : libQCAR.so <= jni/../../../build/lib/armeabi/
SharedLibrary  : libImageTargets.so
Install        : libImageTargets.so => libs/armeabi/libImageTargets.so
Install        : libQCAR.so => libs/armeabi/libQCAR.so
Compile++ arm  : ImageTargets <= ImageTargets.cpp
Compile++ arm  : ImageTargets <= SampleUtils.cpp
Compile++ arm  : ImageTargets <= Texture.cpp
StaticLibrary  : libstdc++.a
Prebuilt       : libQCAR.so <= jni/../../../build/lib/armeabi-v7a/
SharedLibrary  : libImageTargets.so
Install        : libImageTargets.so => libs/armeabi-v7a/libImageTargets.so
Install        : libQCAR.so => libs/armeabi-v7a/libQCAR.so

I think my problem is about executing ndk-build. Can you help me? I cant find it in ImageTargets folder and I dont know how to execute it.

 

 

Hi, my solution is not

January 8, 2013 - 3:03pm #4

Hi, my solution is not different than the tutorial on the web portal;

all I'm saying is that, if you have added the NDK path to your system path already, then if you open command console (or cygwin terminal) and you go to the sample directory, then running ndk-build should work (just type 'ndk-build' when you are in the ImageTargets sample directory and it should work);

(if it doesn't, work it means that either you did not isntall the NDK properly or you did not set the system path correctlty).

 

I cant understand your

January 8, 2013 - 1:50pm #3

I cant understand your solution because I am beginner at ndk things. Can you explain more detailed please? But I know that, I added the path you give to the system path. If your solution is different than tutorial, please explain in detailed. Thanks
 

Hi, the ndk-build command is

January 8, 2013 - 12:41pm #2

Hi,

the ndk-build command is a general command that is used for building C++ NDK projects;

it is not located in the sample directory (ImageTarget), but is located in the AndroidNDK installation directory on your system, for instance:

 "C:\Development\Android\AndroidNDK" (or whatever folder you installed the Android NDK)

What you need to do is to add the "C:\Development\Android\AndroidNDK" (or the actual NDK directory in your system) to the system Path, so that the system will be able to find and execute the ndk-build from any directory.

Note: the reason why you need to change dir to the ImageTargets folder is because you need to execute the ndk-build in the directory where the C++ source folder of your project (directory called "JNI") is located.

 

 

Log in or register to post comments