Log in or register to post comments

QCARutils.mm has error in new version 4.0

February 26, 2015 - 2:28am #1

Hello,

I want to upgrade our project from vuforia-sdk-ios-2-6-8 to new version 4.0.

Our project has QCARutils.mm file under ARCommon folder. I am not expert at Vuforia so I couldn't understand why they are using this. 

My ImageTargets folder 's concluision is attached on post

Please share your dear comment with us

Thank you

 

Errors:

 

1. QCAR::setInitParameters(QCARFlags); //too few arguments to function call,expected 2,have 1

 

 

2. QCAR::Tracker* trackerBase = trackerManager.initTracker(QCAR::Tracker::IMAGE_TRACKER); //No member named IMAGE_TRACKER in 'QCAR::Tracker'

 

3. QCAR::Tracker* trackerBase = trackerManager.initTracker(QCAR::Tracker::MARKER_TRACKER);  //No member named MARKER_TRACKER in 'QCAR::Tracker'

 

4.if(currentDataSet->getTrackable(i)->getType()==QCAR::Trackable::IMAGE_TARGET) //No member named IMAGE_TARGET in 'QCAR::Trackable'

 

5. if(currentDataSet->getTrackable(i)->getType()==QCAR::Trackable::MULTI_TARGET) //No member named MULTI_TARGET in 'QCAR::Trackable'

QCARutils.mm has error in new version 4.0

March 3, 2015 - 8:54pm #2

The errors are related to API changes. The setInitParameters() needs a licenseKey in 4.0:

QCAR::setInitParameters(QCARFlags, const char *licenseKey)

https://developer.vuforia.com/resources/api/ios/namespace_q_c_a_r

QCAR::ImageTracker has been replaced with QCAR::ObjectTracker:

https://developer.vuforia.com/resources/api/ios/class_q_c_a_r_1_1_tracker

QCAR::MarkerTracker is available:

https://developer.vuforia.com/resources/api/ios/class_q_c_a_r_1_1_marker_tracker

Use this format now:

QCAR::Tracker* trackerBase = trackerManager.initTracker(QCAR::MarkerTracker::getClassType());

For Trackable type checking, use:

QCAR::ObjectTarget::getClassType();
QCAR::Marker::getClassType();

https://developer.vuforia.com/resources/api/ios/class_q_c_a_r_1_1_trackable

For additional 4.0 API migration details see here:

https://developer.vuforia.com/library/articles/Solution/Vuforia-40-Migration
 

Log in or register to post comments