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)
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.