Log in or register to post comments

Samsung s2 sample crashes

June 3, 2012 - 11:23pm #6

I want to watch the sample and cannot view it, the device shows the black screen and then it says the application stoped working, tryed all the samples. i tryed changing the Qcar library name, added to the output and every solution that says in this forum.

please help!

This is the LOG

Quote:

06-04 03:16:39.095: E/AndroidRuntime(4380): FATAL EXCEPTION: main
06-04 03:16:39.095: E/AndroidRuntime(4380): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
06-04 03:16:39.095: E/AndroidRuntime(4380): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
06-04 03:16:39.095: E/AndroidRuntime(4380): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:310)
06-04 03:16:39.095: E/AndroidRuntime(4380): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:284)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.os.Handler.dispatchMessage(Handler.java:99)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.os.Looper.loop(Looper.java:130)
06-04 03:16:39.095: E/AndroidRuntime(4380): at android.app.ActivityThread.main(ActivityThread.java:3691)
06-04 03:16:39.095: E/AndroidRuntime(4380): at java.lang.reflect.Method.invokeNative(Native Method)
06-04 03:16:39.095: E/AndroidRuntime(4380): at java.lang.reflect.Method.invoke(Method.java:507)
06-04 03:16:39.095: E/AndroidRuntime(4380): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
06-04 03:16:39.095: E/AndroidRuntime(4380): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
06-04 03:16:39.095: E/AndroidRuntime(4380): at dalvik.system.NativeStart.main(Native Method)

Re: Samsung s2 sample crashes

June 4, 2012 - 10:20am #5

Hello again adanete,

Please see my reply to your previous post at:
http://ar.qualcomm.at/node/2001860

Please provide your device model number so I can look into this.

Thank you,

-Peter

Re: Samsung s2 sample crashes

June 4, 2012 - 5:02pm #4

thanks for the reply.
Im using Samsung Galaxy S2 GT-I9100.
Android version: 2.3.4
Compiling number: GINGERBREAD.UHKG7.

Please reply asap, im looking foward to use the framework!

Re: Samsung s2 sample crashes

June 5, 2012 - 10:32am #3

Hello adanete,

Your device is fully supported and runs Vuforia very well. Did you run ndk-build? It looks almost like the native library isn't loading. Maybe you can try a new project. You do not need to rename any of the .so files. Just run ndk-build in the sample app directory. Open your project in Eclipse and click build and run with you device connected.

Thank you,

-Peter

Re: Samsung s2 sample crashes

June 5, 2012 - 3:31pm #2

Couldnt build it, i m running it into the device, i dont have the emulator just using the app directly to the phone

Atached is the build export image

THIS IS THE LOG

Quote:

06-05 19:21:12.370: E/QCAR(20760): The library libQCAR.so could not be loaded
06-05 19:21:12.380: E/QCAR(20760): The library libImageTargets.so could not be loaded
06-05 19:25:07.875: E/AndroidRuntime(21614): FATAL EXCEPTION: main
06-05 19:25:07.875: E/AndroidRuntime(21614): java.lang.UnsatisfiedLinkError: getOpenGlEsVersionNative
06-05 19:25:07.875: E/AndroidRuntime(21614): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getOpenGlEsVersionNative(Native Method)
06-05 19:25:07.875: E/AndroidRuntime(21614): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.getInitializationFlags(ImageTargets.java:310)
06-05 19:25:07.875: E/AndroidRuntime(21614): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:284)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.os.Handler.dispatchMessage(Handler.java:99)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.os.Looper.loop(Looper.java:130)
06-05 19:25:07.875: E/AndroidRuntime(21614): at android.app.ActivityThread.main(ActivityThread.java:3691)
06-05 19:25:07.875: E/AndroidRuntime(21614): at java.lang.reflect.Method.invokeNative(Native Method)
06-05 19:25:07.875: E/AndroidRuntime(21614): at java.lang.reflect.Method.invoke(Method.java:507)
06-05 19:25:07.875: E/AndroidRuntime(21614): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
06-05 19:25:07.875: E/AndroidRuntime(21614): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
06-05 19:25:07.875: E/AndroidRuntime(21614): at dalvik.system.NativeStart.main(Native Method)

Thanks!

Re: Samsung s2 sample crashes

June 5, 2012 - 3:52pm #1

Hello adanete,

Something in your path is not set up correctly and or the ndk-build command in Cygwin did not run correctly.

Have you set your QCAR SDK Root environmetal variable. Please make sure you have followed all the SDK setup instruction found here.

Thank you,

-Peter

Log in or register to post comments