|
|
#1 |
|
Adept
Join Date: Sep 2007
Posts: 115
![]() |
[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! |
|
|
|
|
|
#2 |
|
Swordsman
Join Date: Apr 2007
Location: Calgary
Age: 25
Posts: 327
Donated: $18.32
![]() |
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 Hope that helps. |
|
|
|
|
|
#3 |
|
Adept
Join Date: Sep 2007
Posts: 115
![]() |
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. |
|
|
|
|
|
#4 |
|
Swordsman
Join Date: Apr 2007
Location: Calgary
Age: 25
Posts: 327
Donated: $18.32
![]() |
Good to know, thanks. I'll have to try that too.
|
|
|
|
|
|
#5 | |
|
Adept
Join Date: Aug 2007
Posts: 108
![]() |
Quote:
Hope that the poster is still active! Thanks - Ewan |
|
|
|
|
|
|
#6 | |
|
Apprentice
Join Date: Apr 2008
Posts: 61
Donated: $20
![]() |
Quote:
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. |
|
|
|
|
|
|
#7 |
|
Veteran
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,338
Donated: $40
![]() |
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.) |
|
|
|
|
|
#8 |
|
Adept
Join Date: Aug 2007
Posts: 108
![]() |
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 :-(.
|
|
|
|
|
|
#9 |
|
Adept
Join Date: Sep 2007
Posts: 115
![]() |
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!
|
|
|
|
|
|
#10 |
|
Apprentice
Join Date: Apr 2008
Posts: 61
Donated: $20
![]() |
Did you see the recent thread on OS X ports of variants, chem?
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |