Compiling Armagetron 0.4 for OSX with os-x-toolkit

For all the help you need with Armagetron!
Post Reply
User avatar
TJohnW
Posts: 7
Joined: Wed Aug 08, 2012 7:16 am
Location: NY
Contact:

Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by TJohnW »

Hello support forum!

Okay so, I am trying to build the latest 0.4 build on my macbook running Mavericks.

So far I have the os-x-toolkit-r27 setup correctly and configuring seems to work fine.
This is what I use to configure

Code: Select all

../armagetronad/configure --with-os-x-toolkit="/Users/tjohnw/Documents/Armagetron_Build/Source/os-x-toolkit-r27"
os-x-toolkit contains the prebuilt r27 version from dlh.

Here is a pastebin of my config.log after configuring.
http://pastebin.com/1DwYXZb3

Okay then after I attemp to run

Code: Select all

make
It takes a good 5 minutes or so, and then it finishes with an error. Below is a pastebin of the entire make output.
http://pastebin.com/Nym69kpa

Any help is appreciated!
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by dlh »

Can you show us your aa_config.h (it's in your build directory)?
User avatar
TJohnW
Posts: 7
Joined: Wed Aug 08, 2012 7:16 am
Location: NY
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by TJohnW »

Yep here you go.
Edit: Moved to a pastebin to save space. Took up way to much vertical space lol.

http://pastebin.com/qT9hXUQA
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by dlh »

I really don't know why gOSXURLHandler.mm and gOSXSDLMain.mm aren't being compiled when you call make (yet uOSXPaste.cpp is).

In <builddir>/src/Makefile there should be some lines like:

Code: Select all

am__append_4 = tron/gOSXSDLMain.mm tron/gOSXSDLMain.h tron/gOSXURLHandler.mm tron/gOSXURLHandler.h
If not, then I think something is wrong your bzr checkout…
User avatar
TJohnW
Posts: 7
Joined: Wed Aug 08, 2012 7:16 am
Location: NY
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by TJohnW »

Because I was having problems compiling with bzr. I moved to using svn.
I used this to grab the source.

Code: Select all

svn checkout svn://svn.code.sf.net/p/armagetronad/code/armagetronad/branches/0.4/armagetronad armagetronad
As for the am__append_4 line in the Makefile, it and the line after look like this.

Code: Select all

am__append_4 = tron/gOSXSDLMain.mm tron/gOSXSDLMain.h tron/gOSXURLHandler.mm tron/gOSXURLHandler.h
am__append_5 = ui/uOSXPaste.cpp ui/uOSXPaste.cpp
Here is a pastebin of the entire Makefile if that helps.
http://pastebin.com/zSE0qfLw
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by dlh »

Hmm, strange. Your Makefile doesn't include any rules for tron/libtron_a-gOSXURLHandler.o. Perhaps something is wrong with your version of automake (1.11). The latest from homebrew (which I think you're using) is 1.14. Can you try to upgrade automake and test again?
User avatar
TJohnW
Posts: 7
Joined: Wed Aug 08, 2012 7:16 am
Location: NY
Contact:

Re: Compiling Armagetron 0.4 for OSX with os-x-toolkit

Post by TJohnW »

I installed a newer version with brew, its compiling right now.......
And..
I just saw the file compiled in the make window :OOO COULD THIS BE IT?!!
AHHHA!!@#!@ Wohooooo! Okay that worked.
Thank you so much! Am a happy camper now.
:D
Post Reply