![]() |
#1 |
Scout
Join Date: May 2010
Posts: 43
![]() |
getting started on OSX
Does anyone have experience with compiling Angband on OSX?
I would love to download the code, have a look at it, and compile it on my own machine. I have some C experience, but not with a project of this magnitude. For instance, I've never retrieved code from an SVN repository. I see that andrewdoull wrote an excellent guide to getting started on a Windows machine. If I install Eclipse on OSX, will the same steps work? Would other Mac programmers recommend XCode instead? |
![]() |
![]() |
![]() |
#2 | |
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 40
Posts: 1,516
![]() |
Quote:
If I get a chance sometime soon I will try to do that again and write a guide. Pete Mack may already have something like this ready--I think he's done a lot of the Mac development in the past. If you want basic unix instructions for getting the code, it would be something like this: Code:
# check out "trunk" (aka HEAD aka current development version) to DIRNAME svn co svn://rephial.org/angband/trunk DIRNAME cd DIRNAME # create configure script ./autogen.sh # configure angband to install to SANDBOX location mkdir SANDBOX ./configure --prefix SANDBOX # build make # install to SANDBOX make install # run angband SANDBOX/games/angband |
|
![]() |
![]() |
![]() |
#3 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
Modern Angband compiles to an OSX-standard application just fine. You'll need the Angband source code, the OSX Developer Kit (available from Apple), and Terminal. Just cd into the src directory and run "make -f Makefile.osx", and it'll make Angband.app for you.
Now, compiling old variants is another matter entirely... |
![]() |
![]() |
![]() |
#4 |
Scout
Join Date: May 2010
Posts: 43
![]() |
Thank you, d_m. I successfully retrieved things from svn. autogen.sh failed, however, with this error:
Code:
./autogen.sh *info* running aclocal ./autogen.sh: line 38: aclocal: command not found *error* aclocal failed. (exit code = 127) |
![]() |
![]() |
![]() |
#5 |
Prophet
Join Date: Dec 2009
Posts: 9,024
![]() |
You shouldn't need to mess with configuration at all. Just use the OSX Makefile.
|
![]() |
![]() |
![]() |
#6 |
Scout
Join Date: May 2010
Posts: 43
![]() |
So you're saying skip the ./autogen.sh and ./configure --prefix SANDBOX steps and proceed directly to make? I can give that a try.
|
![]() |
![]() |
![]() |
#8 |
Veteran
Join Date: Apr 2007
Posts: 1,947
Donated: $40
![]() |
Yup, just cd src; make -f Makefile.osx. Works like magic.
__________________
takkaria whispers something about options. -more- |
![]() |
![]() |
![]() |
#9 |
Scout
Join Date: May 2010
Posts: 43
![]() |
Thank you d_m, Derakon, and takkaria! With your guidance that was way easier than I imagined it would be. Now to start tinkering . . .
![]() |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling Angband 3.0.9 w/ xcode on OSX | Iemortal | Vanilla | 8 | April 16, 2011 16:41 |
OSX Tileset help? | ZorroRoaster | Variants | 1 | March 31, 2009 00:09 |
Graphics glitch in OSX version | willpax | Vanilla | 5 | January 15, 2009 14:07 |
Macintosh OSX 3.0.9b: Out of memory error? | Skyknight | Vanilla | 4 | June 8, 2008 04:42 |
[Un] Confused how to get started in 0.6.2-wip6a, + misc. | Bostock | Variants | 7 | September 6, 2007 20:26 |