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;
}
---------------------------------------------------------------------------------------------------------------------------------------------------------- show console.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...
Please HELP... I got load ImageTarget Error..
Hi evados,
Chances are that you have not added the .dat and .xml to your project, or that perhaps XCode has not.
You need to drag these in from Finder and into XCode.
Please HELP... I got load ImageTarget Error..
Thanks for reply NAlinS!
but that chance didn't work well..
I check my Copy Bundle Resource , and that list has .dat and .xml files.
I suddenly remeber that i changed 'libQCAR.a' after update iOS6.
that effect to this problem??
Please HELP... I got load ImageTarget Error..
iOS 6 should not cause any problem - not sure what is causing a crash.
If you PM me with a link to your files I can try them out?
N
Please HELP... I got load ImageTarget Error..
Thankyou for kindness.
i'll sent the message
Please HELP... I got load ImageTarget Error..
The targets are fine.
I put them into the image targets app and they recognised the target and put teapot on.
HTH
N