Log in or register to post comments

unity3d 4.1 and Vuforia 2.0 latest version

March 14, 2013 - 11:14am #1

Hi, i update to the new unity3d version (4.1f4) when i export to xcode 4.6 i got this error on the AppController.mm class

 

 

- (void) applicationWillResignActive:(UIApplication*)application

{

    printf_console("-> applicationWillResignActive()\n");

UnityPause(true);

PresentSurface(&_surface);//THIS IS THE ERROR!

QCARUnityPlayer::getInstance().QCARPause(true);

 

    _didResignActive = YES;

}

 

 

 

 The build fails and the consolle reports "USE OF UNDECLARED IDENTIFIER '_surface'

 

any help?

 

Ale.

 

 

unity3d 4.1 and Vuforia 2.0 latest version

March 18, 2013 - 1:47am #5

Excellent - glad it's fixed :)

N

unity3d 4.1 and Vuforia 2.0 latest version

March 15, 2013 - 11:19am #4

Ok, you were absolutely right! It was strange because using unity 4.0.1 i had no errors.

I did delete any vuforia related file and then reimport the package, it works fine now!

Thanks!

 

NalinS wrote:

Ok, I just tried the Image Targets sample from the latest Unity Extensions 2.0.31 for Android and iOS here https://developer.vuforia.com/resources/sdk/unity along with the latest Unity on XCode 4.6 and I was able to compile and run without issue.

You could try and verify this with the same experiment.

Assuming you have the latest Unity Vuforia Extension, the chances are that you might have some remnants of a previous Vuforia extension within your Unity project.  Specifically it is the PostProcessBuildPlayer script under assets/editor that updates the AppController.mm file, and it could be that this is out of date in your project.

Please can you check this and also make sure that any components you have in your project are from the latest Unity Extension for Vuforia, not a previous one.

thanks

N

unity3d 4.1 and Vuforia 2.0 latest version

March 15, 2013 - 5:11am #3

this sounds like a good news! i'll try and let you know, thank you so much!

unity3d 4.1 and Vuforia 2.0 latest version

March 15, 2013 - 4:29am #2

Ok, I just tried the Image Targets sample from the latest Unity Extensions 2.0.31 for Android and iOS here https://developer.vuforia.com/resources/sdk/unity along with the latest Unity on XCode 4.6 and I was able to compile and run without issue.

You could try and verify this with the same experiment.

Assuming you have the latest Unity Vuforia Extension, the chances are that you might have some remnants of a previous Vuforia extension within your Unity project.  Specifically it is the PostProcessBuildPlayer script under assets/editor that updates the AppController.mm file, and it could be that this is out of date in your project.

Please can you check this and also make sure that any components you have in your project are from the latest Unity Extension for Vuforia, not a previous one.

thanks

N

Log in or register to post comments