Log in or register to post comments

Fail to compile iOS Project with errors in AppController

August 8, 2011 - 3:15am #1

When I compiled a project generated by unity3.3 with Xcode 4.1 and iSDK 4.3, which was ok when building a Android version. I got stuck while compiling the xcode project.
I got the following errors:

AppController.mm:1087: error: invalid initialization of non-const reference of type 'MyEAGLSurface&' from a temporary of type 'MyEAGLSurface*'

AppController.mm:1087: error: invalid initialization of non-const reference of type 'MyEAGLSurface&' from a temporary of type 'MyEAGLSurface*'

AppController.mm: error: Semantic Issue: No matching function for call to 'PresentSurface'

I have no idea how to fix it.

Edit:
After a little digging into code, I changed the line from
PresentSurface(&_surface);
to
PresentSurface(_surface);

it compiled, but the background camera image plane is broken, and didn't cleared correctly.
Tested on a iPhone 3Gs and iPhone 4G.

Re: Fail to compile iOS Project with errors in AppController

August 8, 2011 - 3:11pm #2

Hello,

Unity 3.4 is currently required for compatibility the QCAR iOS extension. Unity 3.3 is required for compatibility with the QCAR Android extension. We will be releasing an update for the Android extension shortly that will be compatible with Unity 3.4 . In the time being you can install both Unity 3.3 and Unity 3.4 .

Thank you,

-Peter

Log in or register to post comments