Log in or register to post comments

I'm not able to run Cloud Recognition Demo

August 19, 2013 - 11:43am #1

Hi,

I'm not able to run Cloud Recognition Demo in Eclipse.

I've added Vuforia SDK to classpath and I'm able to launch the demo but when I click on Start button in the page that show the guide the app crash and I can see thess errors messages in LogCat:

08-19 20:38:52.180: E/AndroidRuntime(23885): FATAL EXCEPTION: main
08-19 20:38:52.180: E/AndroidRuntime(23885): java.lang.UnsatisfiedLinkError: Native method not found: com.qualcomm.QCARSamples.CloudRecognition.CloudReco.setActivityPortraitMode:(Z)V
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.qualcomm.QCARSamples.CloudRecognition.CloudReco.setActivityPortraitMode(Native Method)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.qualcomm.QCARSamples.CloudRecognition.CloudReco.updateActivityOrientation(CloudReco.java:919)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.qualcomm.QCARSamples.CloudRecognition.CloudReco.initApplication(CloudReco.java:887)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.qualcomm.QCARSamples.CloudRecognition.CloudReco.updateApplicationStatus(CloudReco.java:742)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.qualcomm.QCARSamples.CloudRecognition.CloudReco.onCreate(CloudReco.java:573)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.Activity.performCreate(Activity.java:5047)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2056)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2117)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.ActivityThread.access$700(ActivityThread.java:134)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1218)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.os.Handler.dispatchMessage(Handler.java:99)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.os.Looper.loop(Looper.java:137)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at android.app.ActivityThread.main(ActivityThread.java:4867)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at java.lang.reflect.Method.invokeNative(Native Method)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at java.lang.reflect.Method.invoke(Method.java:511)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
08-19 20:38:52.180: E/AndroidRuntime(23885):     at dalvik.system.NativeStart.main(Native Method)

Someone can help me to understand how I can run the demo and start working on it?

Thanks in advance

Luca

I'm not able to run Cloud Recognition Demo

August 20, 2013 - 4:57am #6

Have fun!

I'm not able to run Cloud Recognition Demo

August 19, 2013 - 11:40pm #5

Thanks Alessandro.

In these days I play to Vuforia for know it better ;-)

Bye

Luca

I'm not able to run Cloud Recognition Demo

August 19, 2013 - 10:28pm #4

Probably the easiest approach is to start from an existing sample, copy / paste it and give it a different name, and then modifying the source code.

 

I'm not able to run Cloud Recognition Demo

August 19, 2013 - 1:10pm #3

Hi Alessandro,

very thanks for your tips, now I'm able to see the demo running directly from Eclipse.

But now I've another question for you...

If I start from zero to develop an app that make the same things that Cloud Recognition Demo do how I can make this step that you have indicate to me?

It's not clear for me how to start with Vuforia after this step with ndk-build.

Can you explain it to me?

Thanks for your patience.

Luca

I'm not able to run Cloud Recognition Demo

August 19, 2013 - 12:20pm #2

The logs show that you have alink error, so perhaps you have not built the native code via ndk-build ?

see how to build samples here:

https://developer.vuforia.com/resources/dev-guide/step-3-compiling-running-vuforia-sample-app

 

Log in or register to post comments