Building on OSX 10.6.6

What do you want to see in Armagetron soon? Any new feature ideas? Let's ponder these ground breaking ideas...
Post Reply
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Building on OSX 10.6.6

Post by CrispyNoodle »

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.
User avatar
madmax
Round Winner
Posts: 306
Joined: Thu Mar 02, 2006 11:14 pm

Re: Building on OSX 10.6.6

Post by madmax »

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.
Winner of the How Many Pages Before The Lock® competition and a grand total of 18,93 euros in Euromillions.
dkiller
On Lightcycle Grid
Posts: 16
Joined: Sun Oct 10, 2010 5:52 pm

Re: Building on OSX 10.6.6

Post by dkiller »

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.
Image
Image
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

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)
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

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
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

I got it. I also had to specify that it should build only the active architecture.
User avatar
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

Post by INW »

CrispyNoodle wrote: Memory: 10 GB
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!
User avatar
madmax
Round Winner
Posts: 306
Joined: Thu Mar 02, 2006 11:14 pm

Re: Building on OSX 10.6.6

Post by madmax »

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.
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

INW 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!
Yeah, found a good deal and went a little overboard :)
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

madmax wrote:Btw, you should probably use Launchpad instead of Sourceforge.
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)
dkiller
On Lightcycle Grid
Posts: 16
Joined: Sun Oct 10, 2010 5:52 pm

Re: Building on OSX 10.6.6

Post by dkiller »

Odd, I was able to compile whatever came from that link fine.
CrispyNoodle wrote:
I got the osxlibs package and installed in /Library/Frameworks (Version 2009-02-12 according to the release notes)
That should be fine
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.
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
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.
Image
Image
CrispyNoodle
Posts: 7
Joined: Sat Jan 08, 2011 7:16 pm

Re: Building on OSX 10.6.6

Post by CrispyNoodle »

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!
Post Reply