Building on OSX 10.6.6
-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Building on OSX 10.6.6
I'm having trouble building on OSX. If I use xcode I get a bunch of "xxx.h: No such file or directory" errors (e.g., Stdarg.h, Float.h".
I'm sure it's a silly configuration error, but I'm new to xcode and I haven't used c++ in a looong time, so any help would be appreciated.
I'm sure it's a silly configuration error, but I'm new to xcode and I haven't used c++ in a looong time, so any help would be appreciated.
Re: Building on OSX 10.6.6
You should probably specify which version you're trying to build, where did you get it, etc.
Did you install Xcode and the developer tools correctly? Did you get the osxlibs package?
Also check the README-Subversion file in the source package you got.
Did you install Xcode and the developer tools correctly? Did you get the osxlibs package?
Also check the README-Subversion file in the source package you got.
Winner of the How Many Pages Before The Lock® competition and a grand total of 18,93 euros in Euromillions.
Re: Building on OSX 10.6.6
Did you ever move the entire project folder after you downloaded it?
Try putting it in your home folder.
Also, which version do you have? errors can vary, depending on the version of the project you've downloaded is.
Try putting it in your home folder.
Also, which version do you have? errors can vary, depending on the version of the project you've downloaded is.


-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
I think I found the problem. There seems to be a user-defined project setting in the xcode project indicating that it should be using the 10.4 SDK.
Do I need to install xcode with 10.4 support, or can I simply remove that user-setting?
Incidentally, here are my current settings:
System info:
System Version: Mac OS X 10.6.6 (10J567)
Kernel Version: Darwin 10.6.0
Model Name: Mac Pro
Model Identifier: MacPro1,1
Processor Name: Dual-Core Intel Xeon
Processor Speed: 2.66 GHz
Number Of Processors: 2
Total Number Of Cores: 4
L2 Cache (per processor): 4 MB
Memory: 10 GB
Bus Speed: 1.33 GHz
Boot ROM Version: MP11.005C.B08
SMC Version (system): 1.7f10
--------------
Xcode version info:
Developer Information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I got the osxlibs package and installed in /Library/Frameworks (Version 2009-02-12 according to the release notes)
I'm using the latest source code from SVN:
URL: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository Root: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository UUID: 7d95bf1e-0414-0410-9756-b78462a59f44
Revision: 9497
Node Kind: directory
Schedule: normal
Last Changed Author: bazaarmagetron
Last Changed Rev: 9495
Last Changed Date: 2011-01-01 10:36:57 -0500 (Sat, 01 Jan 2011)
Do I need to install xcode with 10.4 support, or can I simply remove that user-setting?
Incidentally, here are my current settings:
System info:
System Version: Mac OS X 10.6.6 (10J567)
Kernel Version: Darwin 10.6.0
Model Name: Mac Pro
Model Identifier: MacPro1,1
Processor Name: Dual-Core Intel Xeon
Processor Speed: 2.66 GHz
Number Of Processors: 2
Total Number Of Cores: 4
L2 Cache (per processor): 4 MB
Memory: 10 GB
Bus Speed: 1.33 GHz
Boot ROM Version: MP11.005C.B08
SMC Version (system): 1.7f10
--------------
Xcode version info:
Developer Information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I got the osxlibs package and installed in /Library/Frameworks (Version 2009-02-12 according to the release notes)
I'm using the latest source code from SVN:
URL: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository Root: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository UUID: 7d95bf1e-0414-0410-9756-b78462a59f44
Revision: 9497
Node Kind: directory
Schedule: normal
Last Changed Author: bazaarmagetron
Last Changed Rev: 9495
Last Changed Date: 2011-01-01 10:36:57 -0500 (Sat, 01 Jan 2011)
-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
So I reverted my local copy to the pristine version from SVN, and changed the Base SDK for the project from 10.4 to 10.6. I now get only one error (see attachment). It appears that even though I've selected i386 for my architecture, it's still trying to compile something specific to ppc architectures and it's causing the problem. Any thoughts?
- Attachments
-
- BuildLog_2011-01-09_10-42-02.txt.zip
- (19.92 KiB) Downloaded 149 times
-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
I got it. I also had to specify that it should build only the active architecture.
- INW
- Reverse Outside Corner Grinder
- Posts: 1950
- Joined: Tue Jul 07, 2009 4:10 pm
- Location: Charlotte, NC, USA
Re: Building on OSX 10.6.6
Damn. I've got 6 GB and I thought I had a lot. It's going to take you a life time to use all of that memory up!CrispyNoodle wrote: Memory: 10 GB
Re: Building on OSX 10.6.6
Btw, you should probably use Launchpad instead of Sourceforge.
http://wiki.armagetronad.net/index.php?title=Bazaar wrote:What we're doing with it
Our main source repository for long term history and releases still is managed with SVN at SourceForge, but our current development trunk and feature development branches that originate from it (and will be eventually merged back) are managed with Bazaar.
Winner of the How Many Pages Before The Lock® competition and a grand total of 18,93 euros in Euromillions.
-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
Yeah, found a good deal and went a little overboardINW wrote:Damn. I've got 6 GB and I thought I had a lot. It's going to take you a life time to use all of that memory up!

-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
Will do, thanks. I just wanted to do a very tiny hack (took about three times as long to get set up than it did to make the change)madmax wrote:Btw, you should probably use Launchpad instead of Sourceforge.
Re: Building on OSX 10.6.6
Odd, I was able to compile whatever came from that link fine.
Yes, like Madmax said, don't use svn anymore. I find its starting to disappear in other games too.
That should be fineCrispyNoodle wrote:
I got the osxlibs package and installed in /Library/Frameworks (Version 2009-02-12 according to the release notes)
CrispyNoodle wrote: I'm using the latest source code from SVN:
URL: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository Root: https://armagetronad.svn.sourceforge.ne ... magetronad
Repository UUID: 7d95bf1e-0414-0410-9756-b78462a59f44
Revision: 9497
Node Kind: directory
Schedule: normal
Last Changed Author: bazaarmagetron
Last Changed Rev: 9495
Last Changed Date: 2011-01-01 10:36:57 -0500 (Sat, 01 Jan 2011)
Yes, like Madmax said, don't use svn anymore. I find its starting to disappear in other games too.
When you change the base sdk to 10.4, your changing frameworks made just for compiling 10.5 and or 10.6 by adding a new set of 10.4 frameworks to add compatibility to 10.4 users. You should still be able to compile the game this way, but setting it on "10.6" will work fine too. I did find a change from your 0.2.8 package to the .3.0 package though. If you download the new project, it will set the base sdk to "current mac os version" instead of 10.4. So somebody else must have had the same problem.CrispyNoodle wrote:I think I found the problem. There seems to be a user-defined project setting in the xcode project indicating that it should be using the 10.4 SDK.
Do I need to install xcode with 10.4 support, or can I simply remove that user-setting?
Incidentally, here are my current settings:
System info:
System Version: Mac OS X 10.6.6 (10J567)
Kernel Version: Darwin 10.6.0


-
- Posts: 7
- Joined: Sat Jan 08, 2011 7:16 pm
Re: Building on OSX 10.6.6
Sounds good. I will give it a try (though I made the change I wanted to make, so I'm not as motivated anymore 
Thanks a bunch for your help!

Thanks a bunch for your help!