Hello all,
I am new to vuforia sdk.I had gone through this link :-https://ar.qualcomm.at/qdevnet/
And followed the steps
1)Downloding & intaling the sdk
2)when i exectue the sample name ImageTarget into my device(iphone 3G with ios4.1).
The applicaiton get istalled and on tapping the splashscreen the actionshet appears.But then it get crased.I dont know y but all the sample aplicaiton gett crased.And it does not show any crash issue even though i debug the code.The crash take me to main.m file.I think the crash will occur on startcamera() method
And some time it get error of :-Failed to load tracking data set because the ImageTracker has not been initialized.
In this funtion.
- (QCAR::DataSet *)loadDataSet:(NSString *)dataSetPath
{
QCAR::DataSet *theDataSet = nil;
const char* msg;
const char* msgNotInit = "Failed to load tracking data set because the ImageTracker has not been initialized.";
const char* msgFailedToCreate = "Failed to create a new tracking data.";
const char* msgFailedToLoad = "Failed to load data set.";
// Get the image tracker:
QCAR::TrackerManager& trackerManager = QCAR::TrackerManager::getInstance();
QCAR::ImageTracker* imageTracker = static_cast<QCAR::ImageTracker*>(trackerManager.getTracker(QCAR::Tracker::IMAGE_TRACKER));
if (imageTracker == NULL)
{
msg = msgNotInit;
errorCode = QCAR_ERRCODE_INIT_TRACKER;
}
else
{
// Create the data sets:
theDataSet = imageTracker->createDataSet();
if (theDataSet == nil)
{
msg = msgFailedToCreate;
errorCode = QCAR_ERRCODE_CREATE_DATASET;
}
else
{
// Load the data set from the App Bundle
// If the DataSet were in the Documents folder we'd use STORAGE_ABSOLUTE and the full path
if (!theDataSet->load([dataSetPath cStringUsingEncoding:NSASCIIStringEncoding], QCAR::DataSet::STORAGE_APPRESOURCE))
{
msg = msgFailedToLoad;
errorCode = QCAR_ERRCODE_LOAD_DATASET;
imageTracker->destroyDataSet(theDataSet);
theDataSet = nil;
}
else
{
NSLog(@"Successfully loaded data set.");
}
}
}
if (theDataSet == nil)
{
NSString* nsMsg = [NSString stringWithUTF8String:msg];
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:DatasetErrorTitle message:nsMsg delegate:selfcancelButtonTitle:@"OK" otherButtonTitles:nil];
NSLog(@"%@", nsMsg);
[alert show];
[alert release];
}
return theDataSet;
}
Please help me.