Game Development Community

Xcode 2.1 Build Issues

by Brian Jones · in Torque Game Engine · 07/02/2005 (9:37 pm) · 2 replies

I just upgraded Xcode from 1.5 to 2.1 due to the fact that it was crashing after my upgrade to OSX 10.4 (Tiger). I created a fresh Torque directory to work with, and opened the project. I had me copy the project file, and is now .xcodeproj as opposed to .pbproj.

Nothing really unexpected up to this point, except now when I try to build the target Torque-MacCarb-Debug it immediately bails with 157 errors. Am I missing a vital step? It's obvious that the upgrade changed something, since this built fine with 1.5.

Thanks for any help.

#1
07/02/2005 (10:19 pm)
It turns out that Xcode 2.1 bundles gcc 4, and appears to be the problem. I had to use gcc_select from the command line to set the default compiler back to 3.3 for the project to build.
#2
07/10/2005 (8:19 pm)
The only thing I found while looking thourgh the code, is at one spot, it checks serveral compiler versions. It checks for less then 3, less then 3.4 or greater then 3.4 but does not acknowlage version 4. This needs to be added, I just copied what was for 3.4, and made it only check for 4.

My solution to this was, around line 260 in platform/types.h defines what to do when compiler version is 3.4 or greater append this to the end of the line

|| (__GNUC__ == 4)

That seems to be all that I needed. Also on my compter at least fix and continue don't work quite right, after I upgraded to native targets.

I hope this helps.