i have some problem that load target.
show the code
-----------------------------------------------------------------------------------------------------------------------------------------------------------
At QCARutils.mm
theDataSet = imageTracker->createDataSet();
if (theDataSet == nil)
{
msg = msgFailedToCreate;
errorCode = QCAR_ERRCODE_CREATE_DATASET;
}
else
{
NSLog(@"%@",dataSetPath);
// 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))
//My app stop at this point and show [Thread 3: Program received signal: "EXC_BAD_ACCESS". ]
{
NSLog(@"why here3");
msg = msgFailedToLoad;
errorCode = QCAR_ERRCODE_LOAD_DATASET;
imageTracker->destroyDataSet(theDataSet);
theDataSet = nil;
}
2012-11-14 21:02:10.717 MyAppName[8503:4807] INFO/AR(8503) 2012-11-14 21:02:10: ImageTracker: Successfully created dataset
[Switching to process 12803 thread 0x3203]
after created dataset and app stop.
my . KyungbokPalace.xml & . KyungbokPalace.dat file is in assets.
at AppDelegate.mm
[qUtils addTargetName:@"Chail4" atPath:@"KyungbokPalace.xml"];
[qUtils addTargetName:@"Jagyukru1" atPath:@"KyungbokPalace1.xml"];
I spent lots of times.... ha.... what is the problem..?
please help me...
The targets are fine.
I put them into the image targets app and they recognised the target and put teapot on.
HTH
N