Log in or register to post comments

ImageTargets sample erro(android)

May 29, 2012 - 2:37am #1

When I try to run the sample application,it was error,neither be run on the Android device or on the AVD.Please help me.
The logcat of Eclipse is this:

05-29 09:29:31.151: E/QCAR(469): The library libQCAR.so could not be loaded
05-29 09:29:31.161: E/QCAR(469): The library libImageTargets.so could not be loaded
05-29 09:29:31.182: D/QCAR(469): ImageTargets::onCreate
05-29 09:29:31.182: I/global(469): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-29 09:29:31.322: D/dalvikvm(469): GC_EXTERNAL_ALLOC freed 834 objects / 60176 bytes in 121ms
05-29 09:29:31.571: D/dalvikvm(469): GC_FOR_MALLOC freed 233 objects / 28176 bytes in 98ms
05-29 09:29:31.581: I/dalvikvm-heap(469): Grow heap (frag case) to 3.165MB for 262160-byte allocation
05-29 09:29:31.731: D/dalvikvm(469): GC_FOR_MALLOC freed 41 objects / 1592 bytes in 145ms
05-29 09:29:32.191: I/global(469): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-29 09:29:32.452: D/dalvikvm(469): GC_FOR_MALLOC freed 8 objects / 287024 bytes in 95ms
05-29 09:29:32.921: I/global(469): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
05-29 09:29:33.174: D/dalvikvm(469): GC_FOR_MALLOC freed 8 objects / 286968 bytes in 110ms
05-29 09:29:33.281: D/dalvikvm(469): GC_FOR_MALLOC freed 4 objects / 128 bytes in 97ms
05-29 09:29:33.961: W/dalvikvm(469): No implementation found for native Lcom/qualcomm/QCARSamples/ImageTargets/ImageTargets;.getOpenGlEsVersionNative ()I
05-29 09:29:33.961: D/AndroidRuntime(469): Shutting down VM
05-29 09:29:33.961: W/dalvikvm(469): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
05-29 09:29:33.992: E/AndroidRuntime(469): FATAL EXCEPTION: main
05-29 09:29:33.992: E/AndroidRuntime(469): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
05-29 09:29:33.992: E/AndroidRuntime(469): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
05-29 09:29:33.992: E/AndroidRuntime(469): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:310)
05-29 09:29:33.992: E/AndroidRuntime(469): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:284)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.os.Handler.dispatchMessage(Handler.java:99)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.os.Looper.loop(Looper.java:123)
05-29 09:29:33.992: E/AndroidRuntime(469): at android.app.ActivityThread.main(ActivityThread.java:4627)
05-29 09:29:33.992: E/AndroidRuntime(469): at java.lang.reflect.Method.invokeNative(Native Method)
05-29 09:29:33.992: E/AndroidRuntime(469): at java.lang.reflect.Method.invoke(Method.java:521)
05-29 09:29:33.992: E/AndroidRuntime(469): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-29 09:29:33.992: E/AndroidRuntime(469): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-29 09:29:33.992: E/AndroidRuntime(469): at dalvik.system.NativeStart.main(Native Method)

Re: ImageTargets sample erro(android)

June 1, 2012 - 10:28pm #8

Why don't you display a logcat reg?

Re: ImageTargets sample erro(android)

June 1, 2012 - 10:04am #7

I got similar problem,
success ,appear boot logo
but then....is blank

someone can help me???

NDK etc success isntaled ,QCAR_SDK_ROOT is checked

Re: ImageTargets sample erro(android)

May 30, 2012 - 12:29am #6

hii
I have created .h file from .obj but i am not getting the values of the array.. which is specified in sample project of Image Target

static const float teapotVertices[NUM_TEAPOT_OBJECT_VERTEX * 3] =
{
};

static const float teapotTexCoords[NUM_TEAPOT_OBJECT_VERTEX * 2] =
{

};

static const float teapotNormals[NUM_TEAPOT_OBJECT_VERTEX * 3] =
{
};

static const unsigned short teapotIndices[NUM_TEAPOT_OBJECT_INDEX] =
{

};

Re: ImageTargets sample erro(android)

May 29, 2012 - 4:37am #5
rider wrote:

i think my problem is the same as this:
http://ar.qualcomm.at/node/2002129

but i do not know how to set up cygwin

when i put in

cd /cygdrive/c/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets

then

-bash: cd/cygdrive/c/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets: No such file or directory

i know what's wrong now.
i did not put in space below cd...

now,the app can be runned,thanks

Re: ImageTargets sample erro(android)

May 29, 2012 - 3:48am #4

i think my problem is the same as this:
http://ar.qualcomm.at/node/2002129

but i do not know how to set up cygwin

when i put in

cd /cygdrive/c/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets

then

-bash: cd/cygdrive/c/Development/Android/vuforia-sdk-android-1-5-9/samples/ImageTargets: No such file or directory

Re: ImageTargets sample erro(android)

May 29, 2012 - 3:42am #3
ceren wrote:

It seems that NDK is missing. Did you download it?

yes,i have downloaded r8

Re: ImageTargets sample erro(android)

May 29, 2012 - 3:17am #2

It seems that NDK is missing. Did you download it?

Log in or register to post comments