Log in or register to post comments

Failed to Run Sample application ImageTargets

March 13, 2013 - 3:05am #1

Hello I am new in Vuforia. I downloaded the Sdk file and the sample from the site.I wanted to run Sample application "ImageTargets" on android.

The problem i am facing is that when i run the application on andorid device it crushes saying "he library libQCAR.so could not be loaded"  and "The library libImageTargets.so could not be loaded".

I sucessfully installed JRK 7 and NDK for android and i also added the QCAR JAR FILE AND CHECKED THE QCAR JAR FILE IN android Project Property.

Can anyone tell me what I am doing wrong.

Thanks

Below is my logCat error 

E/QCAR(2121): The library libQCAR.so could not be loaded

E/QCAR(2121): The library libImageTargets.so could not be loaded
D/QCAR(2121): ImageTargets::onCreate
D/dalvikvm(2121): GC_CONCURRENT freed 334K, 49% free 3121K/6023K, external 3333K/4162K, paused 2ms+2ms
W/dalvikvm(2121): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
D/AndroidRuntime(2121): Shutting down VM
W/dalvikvm(2121): threadid=1: thread exiting with uncaught exception (group=0x2aac8578)
E/AndroidRuntime(2121): FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:384) at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:355)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
at android.app.ActivityThread.access$1500(ActivityThread.java:121)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3701)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
at dalvik.system.NativeStart.main(Native Method)

 

Failed to Run Sample application ImageTargets

September 26, 2013 - 2:00am #12

Hi, this error has been addressed several times in the Forum, and it simply depends on the fact that either you have not built the C++ native code using ndk-build from the cygwin console, (or the build did not succeed), or you have not refreshed the project in Eclipse after building the native code.

Please read carefully the Getting Started guide, where it is explained how to build a sample step-by-step.

 

Failed to Run Sample application ImageTargets

September 26, 2013 - 1:57am #11

Please guide me to solve getOpenGlEsVersionNative error in sample project

Failed to Run Sample application ImageTargets

September 26, 2013 - 12:23am #10

I am new be for Vuforia then please suggest me how to copy sample project in vuforia/sample beause my project is in eclipse worksapce. My project gives same error from eclipse workspace. So, please give me discription.

Thanks in advance.

Failed to Run Sample application ImageTargets

March 13, 2013 - 11:00pm #9

Thank you tainguyen90 Finally build my sample project 

Failed to Run Sample application ImageTargets

March 13, 2013 - 11:00pm #8

Thank you tainguyen90 Finally build my sample project 

Failed to Run Sample application ImageTargets

March 13, 2013 - 11:00pm #7

Thank you tainguyen90 Finally build my sample project 

Failed to Run Sample application ImageTargets

March 13, 2013 - 10:57pm #6

Hi aftabsikander,

copy project into C:\Development\Android\vuforia-sdk-android-2-0-31\samples. Not in  C:\Development\Android\android-ndk-r8d\samples

Repeat command : ndk-build

 

 

Failed to Run Sample application ImageTargets

March 13, 2013 - 10:51pm #5

I followed the links you provided Its giving me the following errors when i do ndk-build of the source Project

 

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
C:/Development/Android/android-ndk/build/core/prebuilt-library.mk:43: *** Android NDK: Aborting    .  Stop.

 

Failed to Run Sample application ImageTargets

March 13, 2013 - 6:06am #4

Failed to Run Sample application ImageTargets

March 13, 2013 - 6:02am #3

Can you tell me how to build the project step wise ?

Failed to Run Sample application ImageTargets

March 13, 2013 - 5:10am #2

Hi, have you run ndk-build to build the native code ?

see here:

https://developer.vuforia.com/forum/faq/android-how-do-i-fix-my-compile-or-runtime-errors

Log in or register to post comments