Compile problem after iOS4 upgrade
by Brian Ramage · in iTorque 2D · 07/12/2010 (12:45 pm) · 19 replies
I'm having problems compiling my existing iT2D game (built on 1.3), so I downloaded 1.4 and I've got the same problem.
When compiling for Device/4.0SDK I get a long series of errors in both projects when it tries to precompile iTGB_Prefix.pch:
CoreServices/CoreServices.h: No such file or directory
'CFHostClientCallback' has not been declared
'CALLBACK_API_C' declared as function returning a function
'<anonymous>' has incomplete type
Invalid use of 'void'
'CFHostClientCallback' has not been declared
Expected unqualified-id before 'void'
...
Then when it continues, it shows the error for every .cc file:
CoreServices/CoreServices.h: No such file or directory
This looks like a path problem, but it only fails when I target the Device - Simulator compiles fine and they both have the same path setup!
If this is a problem with the Framework, Header, and Library search paths, it would be great if someone could post working paths, thanks.
When compiling for Device/4.0SDK I get a long series of errors in both projects when it tries to precompile iTGB_Prefix.pch:
CoreServices/CoreServices.h: No such file or directory
'CFHostClientCallback' has not been declared
'CALLBACK_API_C' declared as function returning a function
'<anonymous>' has incomplete type
Invalid use of 'void'
'CFHostClientCallback' has not been declared
Expected unqualified-id before 'void'
...
Then when it continues, it shows the error for every .cc file:
CoreServices/CoreServices.h: No such file or directory
This looks like a path problem, but it only fails when I target the Device - Simulator compiles fine and they both have the same path setup!
If this is a problem with the Framework, Header, and Library search paths, it would be great if someone could post working paths, thanks.
About the author
#2
07/12/2010 (1:31 pm)
Thanks for the reply Scott, yes I saw that and have made the appropriate changes in the project settings with no luck.
#3
07/12/2010 (2:19 pm)
Brian, looking some more - it seems that you are missing the frameworks. Right click on the Frameworks folder and add in the frameworks you need e.g. CFNetwork etc.
#4
07/12/2010 (2:55 pm)
Hey Scott, I'm not really a Mac guy and it's not clear from the errors which frameworks I am missing. Could you post a list of the Frameworks that need to be included? Thanks!
#5
AudioToolbox
CoreAudio
OpenAl
CoreGraphics
QuartzCore
OpenGLES
UIKit
Foundation
Security
SystemConfiguration
libsqllite3.dylib
CFNetwork
CoreLocation
MapKit
AVFoundation
GameKit
StoreKit
07/12/2010 (3:11 pm)
Brian, it all depends on what you are using, but I will list out those that I have:AudioToolbox
CoreAudio
OpenAl
CoreGraphics
QuartzCore
OpenGLES
UIKit
Foundation
Security
SystemConfiguration
libsqllite3.dylib
CFNetwork
CoreLocation
MapKit
AVFoundation
GameKit
StoreKit
#7
I wonder if the install was wonky somehow.
07/12/2010 (9:01 pm)
OK, so digging through my Developer dir, there is no CoreServices framework installed in my iPhoneOS.platform directory. It's there in the iPhoneSimulator.platform directory though, so that explains why it compiles for the simulator but not the device.I wonder if the install was wonky somehow.
#8
07/12/2010 (9:26 pm)
Re-installed and its still not there. That's so bizarre, I don't see how I can be the only one with this problem.
#9
Brian, are you sure you double checked that the device target has the SDK as 4.0 and a deploy target of 3.0 or higher? Check the setting for debug/release and shipping configuration - it is very easy to miss.
07/13/2010 (1:44 am)
I'm the same - I don't have CoreServices in the my iPhoneOS.platform directory so I don't think that is your problem.Brian, are you sure you double checked that the device target has the SDK as 4.0 and a deploy target of 3.0 or higher? Check the setting for debug/release and shipping configuration - it is very easy to miss.
#10
iPhoneTime.mm line 95 "usleep" was not declared in this scope.
So take comfort in the fact that you are not the only one with this problem :-)
07/13/2010 (7:33 am)
Brian - I just updated my xcode to the latest version (3.2.3) and now if I build for iPhone OS4 I get 1 error:iPhoneTime.mm line 95 "usleep" was not declared in this scope.
So take comfort in the fact that you are not the only one with this problem :-)
#11
I don't understand how you are compiling with CoreServices missing - CoreFoundation.framework/Headers/CFBase.h includes MacTypes.h in which there is literally only one line:
#include <CoreServices/CoreServices.h>
That's where the compiler keeps barfing.
I'm also seeing this warning all over the place:
GL_UNSIGNED_SHORT_1_5_5_5_REV redefined
07/13/2010 (1:03 pm)
I've checked the SDK is 4.0 and deploy target is 3.0+ dozens of times for both the iTGB target and the project. That's not the issue.I don't understand how you are compiling with CoreServices missing - CoreFoundation.framework/Headers/CFBase.h includes MacTypes.h in which there is literally only one line:
#include <CoreServices/CoreServices.h>
That's where the compiler keeps barfing.
I'm also seeing this warning all over the place:
GL_UNSIGNED_SHORT_1_5_5_5_REV redefined
#12
Hopefully I saved someone a headache, but I wish I had these last few hours of frustration back! Thanks Scott for trying to help out on that.
07/14/2010 (11:37 pm)
OK, finally found the problem. When installing the 4.0 SDK, I unchecked the "UNIX development" box thinking I could save 800mb of space for stuff I didn't need. Yeah, turns out you get a bunch of errors without it ;)Hopefully I saved someone a headache, but I wish I had these last few hours of frustration back! Thanks Scott for trying to help out on that.
#13
07/14/2010 (11:54 pm)
Glad you got there in the end Brian. I did try changing stuff in my build but could never reproduce your error, now I know why!
#14
I am running XCode 3.2.2, Do I need to upgrade to 3.2.3 to get SDK 4.0?
Thanks.
07/22/2010 (1:33 pm)
Hi Brian or @All, Quote:
when installing the 4.0 SDK
I am running XCode 3.2.2, Do I need to upgrade to 3.2.3 to get SDK 4.0?
Quote:where would this be located? However I am unsure if it is an issue because I am sure I did not "touch anything" as per (basically) instructed thru the iTGB docs.
I unchecked the Unix Development box
Thanks.
#15
07/22/2010 (1:37 pm)
Rennie, you do need to upgrade to 3.2.3.
#16
:::)()()(
07/22/2010 (3:25 pm)
Yes. and I am just installing now, so actually, please disregard the previous post. I saw the relevant boxes. Let's hope this will work.:::)()()(
#17
One thing I did on install was select "Mac OSX 10.4SDK" . It naturally is unselected, so I am reinstalling now, with out it selected.
::::L:L
So How so I install my SDK's?
07/22/2010 (3:37 pm)
It says that my "Base SDK" is missing so no SDK's, iPhone versions or simulators are showing as options to choose. One thing I did on install was select "Mac OSX 10.4SDK" . It naturally is unselected, so I am reinstalling now, with out it selected.
::::L:L
So How so I install my SDK's?
#18
Cheers and thank you.
http://www.torquepowered.com/community/forums/viewthread/118041
07/22/2010 (7:31 pm)
Ok, So I have loaded in all SDKs. PLease refer back to the this thread as it updates my email. Easier for me to check, and we are at virtually the same point here and at Post #10 in this thread except I have a couple of errors now showing, as opposed to 126 so, follow along there if you like. Cheers and thank you.
http://www.torquepowered.com/community/forums/viewthread/118041
#19
05/03/2011 (12:40 pm)
This thread just saved us a load of time. Ensuring Unix was installed did the trick. Cheers Brian!
Torque Owner Scott Wilson-Billing
MeYuMe