- Sort Posts
- 16 replies
- Last post
Migrating to vuforia 4.0
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
ImageTarget sample also have Native code.
I tried VideoPlayBack sample.
It builds while running crashes with
Migrating to vuforia 4.0
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
Migrating to vuforia 4.0
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
Thank you .
Some additions to that note are :
1. Edit Application.mk file to have only one machine code
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
Migrating to vuforia 4.0
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
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
- MAKE A BACKUP OF YOUR EXISTING UNITY PROJECT.
Important: DO NOT SKIP THIS STEP! - From the Unity Project view, delete the following folders:
- Editor/QCAR/Scripts
- Qualcomm Augmented Reality
- From the Unity Project view, delete this file for Vuforia: PostProcessBuildPlayer.
- 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:
- From the latest installer, import vuforia-unity-android-ios-4-0-x.unitypackage. Make sure that all components are checked and installed.
- Fix any compile errors that can occur due to the API changes that were introduced with the latest SDK.
- Build and run.
Code Changes in C#
Migrating to vuforia 4.0
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
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
I changed the directory structure and it worked.
Thanks for the support