"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Migrate from 3 to 5

I am trying to migrate my Android project (Native C++) from Vuforia 3-0-9 to Vuforia 5-0-5. But currently got this error when building the codes after did some modification to cpp files:

[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= ImageTargets.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= SampleUtils.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= SampleMath.cpp
[armeabi-v7a] Compile++ arm  : ImageTargetsNative <= Texture.cpp
[armeabi-v7a] SharedLibrary  : libImageTargetsNative.so
jni/ImageTargets.cpp:92: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:159: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:178: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
jni/ImageTargets.cpp:190: error: undefined reference to 'QCAR::ObjectTracker::getClassType()'
collect2: error: ld returned 1 exit status

I believe I don't have to manually compile "ObjectTracker.h" file manually... I did the migration by following this instruction: https://developer.vuforia.com/library/articles/Solution/How-to-Migrate-an-Android-Project

Can someone please point me what I've missed? I have tried to find the answer or similar problem online, but still no luck... Thanks in advance.

8959t54ivdfk

Mon, 04/11/2016 - 09:18

try importing .h files in your code. 

import <Vuforia/Trackable.h>

import <Vuforia/ObjectTracker.h>

AlessandroB

Tue, 04/12/2016 - 09:28

See also:

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