Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old September 3, 2007, 02:17   #1
chem
Adept
 
Join Date: Sep 2007
Posts: 150
chem is on a distinguished road
[NPP] Compiling on Mac OS X

I have the latest beta of NPP in source form, and want to compile it on my Intel Mac running OS X 10.4.10. The latest Xcode is installed. Attempting to use the Makefile.osx or Makefile_crb.osx fails for me. There is also no ./configure script that I can find. I can't find any docs in the source with details on what to do, and while I may be able to hack it together myself, it seems like this should "just work." I compiled vanilla 3.0.9 from source without any trouble at all (a simple "make -f Makefile.osx" for [V]).

Any help? Comments? Could this possible be made to work "out of the box" in the next NPP beta?

Also, I think I can provide universal binaries of [V] 3.0.9 if the site needs it. I think maybe in a .dmg form although I did not try making with dist yet.

Thanks!
chem is offline   Reply With Quote
Old September 3, 2007, 03:01   #2
Big Al
Swordsman
 
Big Al's Avatar
 
Join Date: Apr 2007
Location: Calgary
Age: 35
Posts: 327
Donated: $18.32
Big Al is on a distinguished road
For me running Intel OS X 10.4.9, getting makefile.osx to compile involved only commenting out the two lines:
Code:
CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
LIBS += -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
I think it's something to do with trying to make a universal build. I recall having some problem with the "-arch i386 -arch ppc" part before, trying to compile vanilla. I'm think that this will make a copy of the game that will only run on intels, but not certain.

Hope that helps.
Big Al is offline   Reply With Quote
Old September 3, 2007, 05:08   #3
chem
Adept
 
Join Date: Sep 2007
Posts: 150
chem is on a distinguished road
Hmm okay, I think I've found the problem. Those lines are recommended for universal binaries, yes:
http://developer.apple.com/documenta...section_3.html
...but that SDK is not installed by default with Xcode, and is in fact missing from my machine too.
http://lists.apple.com/archives/xcod.../msg00165.html

I'll install the SDK from disc and try again. I bet it works. Thanks for the pointer!

EDIT: success. It compiled fine and starts up ok. Universal binary.
I can provide universal binary compiles of NPP 050BETA4 and Vanilla 3.0.9 upon request. I imagine making a .dmg file will be trivial.

Last edited by chem; September 3, 2007 at 05:16.
chem is offline   Reply With Quote
Old September 3, 2007, 05:14   #4
Big Al
Swordsman
 
Big Al's Avatar
 
Join Date: Apr 2007
Location: Calgary
Age: 35
Posts: 327
Donated: $18.32
Big Al is on a distinguished road
Good to know, thanks. I'll have to try that too.
Big Al is offline   Reply With Quote
Old July 30, 2008, 18:21   #5
ewan
Adept
 
Join Date: Aug 2007
Posts: 108
ewan is on a distinguished road
Quote:
Originally Posted by chem View Post
I can provide universal binary compiles of NPP 050BETA4 and Vanilla 3.0.9 upon request. I imagine making a .dmg file will be trivial.
Yes, please! [And in general, I'm in the 'market' for os x compiles of variants - there are a lot that I would like to try (Entro, Heng, NPP, latest Steam, Zang...) but as far as I know, cannot.

Hope that the poster is still active!

Thanks - Ewan
ewan is offline   Reply With Quote
Old July 30, 2008, 18:59   #6
Lebannen
Apprentice
 
Join Date: Apr 2008
Posts: 61
Donated: $20
Lebannen is on a distinguished road
Quote:
Originally Posted by ewan View Post
Yes, please! [And in general, I'm in the 'market' for os x compiles of variants - there are a lot that I would like to try (Entro, Heng, NPP, latest Steam, Zang...) but as far as I know, cannot.

Hope that the poster is still active!
The latest available version of Angband - 3.0.9b - was actually released as a Universal Binary. The direct download link is http://rephial.org/downloads/3.0/angband-3.0.9b-osx.dmg .

There's been a lot of improvements to the mac code over the last couple of years, thanks to Pete Mack - some of the older variants (certainly Zang) are using much older code, so it'd be nice to get up-to-date ports of the list you mention. I'm doing a few other things at the moment, but if chem or Big Al (who I think has also expressed interest at one point?) don't do it, it's certainly on my list to get automated new builds going.
Lebannen is offline   Reply With Quote
Old July 30, 2008, 19:11   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,801
Donated: $40
Pete Mack will become famous soon enough
In V, there's a Makefile.osx target 'dist:' for building a dmg; there is no similar command in the (old) NPP Makefile.osx version. NPP still uses the old (Quickdraw-based) main-crb.c

Importing it from V won't work exactly, because V uses the new (Carbon-and-Cocoa) based main-crb.c.

You may be able to use the 3.0.6 Makefile.osx from V, available here:

http://angband.oook.cz/cgi-bin/cvswe...-cvsweb-markup

I expect you will need to fix the dist: target specifically for NPP.

(The 3.0.8+ Makefile.osx is easier to port, but requires the new main-crb.c and supporting files.)
Pete Mack is offline   Reply With Quote
Old July 31, 2008, 15:02   #8
ewan
Adept
 
Join Date: Aug 2007
Posts: 108
ewan is on a distinguished road
Pete/Lebannen: I very much appreciate the replies. Vanilla I have running, no problem (other than the lack of a NumLock option on my laptop!), but I'm insufficiently competent to know what I might do with a Makefile, alas :-(.
ewan is offline   Reply With Quote
Old January 6, 2009, 18:22   #9
chem
Adept
 
Join Date: Sep 2007
Posts: 150
chem is on a distinguished road
I have not played/compiled NPP in forever, and do not have my old NPP compile or Tiger install, but I presume someone has it working under Leopard by now. Anyway this thread still has good info on compiling OS X ports. Need more OS X ports!
chem is offline   Reply With Quote
Old January 6, 2009, 20:00   #10
Lebannen
Apprentice
 
Join Date: Apr 2008
Posts: 61
Donated: $20
Lebannen is on a distinguished road
Did you see the recent thread on OS X ports of variants, chem?
Lebannen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sangband and Oangband for Mac? Corydon Variants 3 July 27, 2007 22:27
[V/NPP] Equipment optimizer - scoring rules pav Vanilla 6 May 27, 2007 13:17


All times are GMT +1. The time now is 13:25.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.