Log in or register to post comments

Please HELP... I got load ImageTarget Error..

November 14, 2012 - 4:27am #1

 

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..

November 15, 2012 - 8:40am #6

The targets are fine.

I put them into the image targets app and they recognised the target and put teapot on.

HTH

N

Please HELP... I got load ImageTarget Error..

November 15, 2012 - 6:15am #5

Thankyou for kindness.

 

i'll sent the message

Please HELP... I got load ImageTarget Error..

November 15, 2012 - 2:52am #4

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..

November 14, 2012 - 6:12pm #3

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??

i didn't update all Vuforia but 'libQCAR.a' only.

 

 

Please HELP... I got load ImageTarget Error..

November 14, 2012 - 4:37am #2

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.

Click on the application target in XCode and look for Copy Bundle Resources which will show a list of files, and it is most likely not there which would explain the crash.

See here for more details: https://ar.qualcomm.at/content/noob-how-use-my-own-trackables-i-can´t-do-it

HTH

N

Log in or register to post comments