Log in or register to post comments

Migrating to vuforia 4.0

April 14, 2015 - 6:41am #1

Please share any guide for migrating android project using older version of vuforia to vuforia 4.0

 

 

Migrating to vuforia 4.0

April 30, 2015 - 6:50am #17

I changed the directory structure and it worked.

 

Thanks for the support

Migrating to vuforia 4.0

April 29, 2015 - 7:39pm #16

The Java-only version of ImageTargets is in the core samples download. If the VideoPlayback sample doesn't resolve the classes, it looks like it might be a problem with the setup. Are you copying the projects into the samples folder of the Vuforia SDK? For instance:

[vuforia sdk folder]/samples/VideoPlayback/

 

Migrating to vuforia 4.0

April 29, 2015 - 12:48am #15

ImageTarget sample also have Native code.

I tried VideoPlayBack sample.

It builds while running crashes with 

04-29 11:47:26.894: E/AndroidRuntime(6387): Process: com.qualcomm.vuforia.samples.VideoPlayback, PID: 6387
04-29 11:47:26.894: E/AndroidRuntime(6387): java.lang.NoClassDefFoundError: com.qualcomm.vuforia.samples.SampleApplication.SampleApplicationSession
 
 
Could you please check as we have urgent delivery blocked.
 

Migrating to vuforia 4.0

April 28, 2015 - 10:28pm #14

Yes my code and DOminoes has Jni

I did a ndk-build to generate .so

then compiled java code

compilation is perfect

problem is while running

i suspect the .jar file is wrongly added because when i run old version of my app with new jar file , it is working !!

 

I will try imagetarget sample and update you about that also

Migrating to vuforia 4.0

April 28, 2015 - 9:55pm #13

The Dominoes app uses a mix of Java and C++ which requires pre-compiling the C++ source. Does you app also use JNI with C++? If not, are you able to successfully compile the Java-only ImageTargets 4.0.103 Android sample app with the 4.0.103 SDK?

Migrating to vuforia 4.0

April 28, 2015 - 2:08am #12

Could you please check my post below and  help me as i am blocked on this

Migrating to vuforia 4.0

April 27, 2015 - 4:08am #11

yes i am.

I have done all the changes mentioned in the previous post.

So build will pass only with 4.x jar

 

I am using the build folder from vuforia-sdk-android-4-0-103

 

I tried running a sample app (Dominoes )  extracted from vuforia-samples-advanced-android-4-0-103.zip

And it is also giving similar errors .

 

Migrating to vuforia 4.0

April 23, 2015 - 6:58pm #10

Can you confirm that you are using the 4.x version of Vuforia.jar to build with?

Migrating to vuforia 4.0

April 23, 2015 - 6:25am #9

Thank you .

Some additions to that note are  : 

1. Edit Application.mk file to have only one machine code

# Build b ARMv7-A machine code.
 
APP_ABI :=  armeabi-v7a 

 

2. Include  <QCAR/ObjectTracker.h> inplace of ImageTracker.h

 

3. result->isOfType ( QCAR::ImageTargetResult::getClassType()) 

the ( in red above is missing in doc

4. Add license key in java file in QCAR.setInitParameters

 

So i could build the app. 

But while running i am getting this exception

 

04-23 17:16:03.847: I/dalvikvm(30621): java.lang.NoSuchMethodError: no method with name='setBatchParameters' signature='(ILjava/lang/String;)Z' in class Lcom/qualcomm/ar/pl/CameraPreview;
04-23 17:16:03.847: I/dalvikvm(30621): at java.lang.Runtime.nativeLoad(Native Method)
04-23 17:16:03.847: I/dalvikvm(30621): at java.lang.Runtime.doLoad(Runtime.java:428)
04-23 17:16:03.847: I/dalvikvm(30621): at java.lang.Runtime.loadLibrary(Runtime.java:369)
04-23 17:16:03.847: I/dalvikvm(30621): at java.lang.System.loadLibrary(System.java:526)
04-23 17:16:03.847: I/dalvikvm(30621): at com......CloudRecognition.CloudReco.loadLibrary(CloudReco.java:1371)
 
Could you please help .

Migrating to vuforia 4.0

April 21, 2015 - 5:31pm #8

The Android Migration steps have been fixed and re-posted:

https://developer.vuforia.com/library/articles/Solution/How-to-Migrate-an-Android-Project

 

Migrating to vuforia 4.0

April 21, 2015 - 4:28am #7

Could you please tell me when i can expect this so that i can plan accordingly 

Thanks

Migrating to vuforia 4.0

April 16, 2015 - 7:17pm #6

Thanks for letting us know. We're working on getting the steps for Android fixed and will update this thread when done.

The Unity migration steps are unique, but the steps for Android (Java) migration are similar to iOS (C++):

https://developer.vuforia.com/library/articles/Solution/How-To-Migrate-an-iOS-SDK-project

 

Migrating to vuforia 4.0

April 16, 2015 - 12:22am #5

This is the content of that link .

Though it says ANdroid, the instructions are Unity 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This article describes how to upgrade your existing applications (built with the Vuforia SDK v3.0.9 ) to the Vuforia SDK v4.0. Refer to the new samples where all these changes have been incorporated. The following instructions are based on Vuforia samples and may vary depending on individual implementations.

 

Adding a license key

Vuforia 4.0 apps require a license key to unlock the features of the 4.0 platform. You'll need to create a license key in the License Manager and add it to the QCARBehaviour component on the ARCamera.

See:
Vuforia License Manager
How To Create an App License
How To add a License Key to your Vuforia App

 

  1. MAKE A BACKUP OF YOUR EXISTING UNITY PROJECT.
    Important: DO NOT SKIP THIS STEP!
  2. From the Unity Project view, delete the following folders:
    • Editor/QCAR/Scripts
    • Qualcomm Augmented Reality
  3. From the Unity Project view, delete this file for Vuforia: PostProcessBuildPlayer.
  4. Carefully delete only the Vuforia files in the Plugins directory, since your project can have other third-party plugins. Typically, the Vuforia files look like the following figure:
User-added image
  1. From the latest installer, import vuforia-unity-android-ios-4-0-x.unitypackage. Make sure that all components are checked and installed.
  2. Fix any compile errors that can occur due to the API changes that were introduced with the latest SDK.
  3. Build and run.                                                         

Code Changes in C#

Migrating to vuforia 4.0

April 15, 2015 - 1:55pm #4

On the page link I provided earlier there are 3 links that point to the specific steps for Unity, Android, and iOS.

Here's the direct link from that page:

https://developer.vuforia.com/library/articles/Solution/How-to-Migrate-an-Android-Project

 

Migrating to vuforia 4.0

April 15, 2015 - 7:39am #3

Thank you very much for the reply

 

I had checked those links

it is for unity projects 

I am having a normal android java project.

I have that native files in jni folder from which i generate .so files and use the vuforia.jar file

I dont see any documentation for migration of android eclipse / studio project

Migrating to vuforia 4.0

April 14, 2015 - 4:59pm #2
Log in or register to post comments