Doh! Almost Compiled in Xcode (but for one link library)! [Resolved]
by Charlie Patterson · in Torque Game Builder · 01/30/2012 (10:19 pm) · 1 replies
Computer: Macbook Pro 2008
OS: Mac OSX 10.6.8 (upgraded)
XCode: 3.2.6
TGB: 1.6.5
I use Windows mostly and compiled TGB 1.6.5 there on the first try (and many times thereafter). The first time I tried a cold compile on Mac, I got thousands of errors about missing headers. I googled on garage games and found this article which made things much better. I guess I'm glad I haven't upgraded XCode!
To try and fix it, in summary, with my oldish XCode and non-Lion system, I went to XCode's project preferences and set them to GCC 4.0 and Base Mac SDK 10.4.
(Why weren't these set by Garage Games? I don't know much about XCode or Mac programming idiosyncracies. Anyway...)
It still didn't work... Turns out I *also* had to set these specifically for the target which is TGBGame Debug. Weird. I thought project settings would override this but they didn't.
Now I tried it again and it ran very well! Except... In the end I had one last error and one creepy warning I don't understand:
Any help would be appreciated!
OS: Mac OSX 10.6.8 (upgraded)
XCode: 3.2.6
TGB: 1.6.5
I use Windows mostly and compiled TGB 1.6.5 there on the first try (and many times thereafter). The first time I tried a cold compile on Mac, I got thousands of errors about missing headers. I googled on garage games and found this article which made things much better. I guess I'm glad I haven't upgraded XCode!
To try and fix it, in summary, with my oldish XCode and non-Lion system, I went to XCode's project preferences and set them to GCC 4.0 and Base Mac SDK 10.4.
(Why weren't these set by Garage Games? I don't know much about XCode or Mac programming idiosyncracies. Anyway...)
It still didn't work... Turns out I *also* had to set these specifically for the target which is TGBGame Debug. Weird. I thought project settings would override this but they didn't.
Now I tried it again and it ran very well! Except... In the end I had one last error and one creepy warning I don't understand:
- Mac OS X deployment target '10.5' for architecture 'i386' and variant 'normal' is greater than the maximum value '10.4' for the Mac OS X 10.4 SDK.
- ld: library not found for -lcrt1.10.5.o
Any help would be appreciated!
Associate Charlie Patterson
Default Studio Name
I won't even pretend to understand why XCode wants you to set and SDK and then set a different "deployment target"