By aftabsikander
on Wed, 03/13/2013 - 10:05
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
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
Failed to Run Sample application ImageTargets
Can you tell me how to build the project step wise ?
Failed to Run Sample application ImageTargets
Here you go:
https://developer.vuforia.com/resources/dev-guide/getting-started-android-native-sdk
https://developer.vuforia.com/resources/dev-guide/step-3-compiling-running-vuforia-sample-app
Failed to Run Sample application ImageTargets
I followed the links you provided Its giving me the following errors when i do ndk-build of the source Project
Failed to Run Sample application ImageTargets
Hi
Failed to Run Sample application ImageTargets
Thank you
Failed to Run Sample application ImageTargets
Thank you
Failed to Run Sample application ImageTargets
Thank you
Failed to Run Sample application ImageTargets
Please guide me to solve getOpenGlEsVersionNative error in sample project
Failed to Run Sample application ImageTargets
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
Failed to Run Sample application ImageTargets
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.