|
|
#1 |
|
Rookie
Join Date: Jan 2009
Posts: 18
![]() |
Compiling under Snow Leopard
I've just tried to compile NPP under the new version of Mac OS X (Snow Leopard), but it has multiple errors in 'main-crb.c'. Is main-crb.c finally broken? Have other people run into similar problems? Does this affect V as well? Is there some easy way out?
|
|
|
|
|
|
#3 |
|
Swordsman
Join Date: Apr 2007
Posts: 490
![]() |
While I don't have a Mac to check, I am reading about Snow Leopard's predatory consumption of software. The two big things making the mailing lists I am on are:
* API deletion: there were a number of archaic OS functions whose last version is OS X 10.5 . The software using these functions makes a tasty snack for the Snow Leopard. (Side benefit: outdated malware also helplessly dies.) * Default binaries are now 64-bit rather than 32-bit: the Snow Leopard consumes vast quantities of developer time in inexplicable link-time errors. I'm unclear whether V has been updated enough to avoid being eaten by the Snow Leopard. I do know that there was a burst of updating the mac backend for V, so it's possible. |
|
|
|
|
|
#4 | |
|
Veteran
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,010
Donated: $40
![]() |
Quote:
Code:
-arch ppc -arch i386 -mmacosx-version-min=10.0 Code:
-arch x86 -mmacosx-version-min=10.5 2. Try compiling V or FA. There have been a few modernizations to Makefile.osx that aren't in NPP. Porting Makefile.osx from UnAngband or V shouldn't be a big deal. 3. If it doesn't work, I will have to bite the bullet and learn Cocoa. At which point, it will be time to think about the iPhone port... |
|
|
|
|
|
|
#5 | |
|
Angband maintainer
Join Date: Apr 2007
Posts: 971
Donated: $40
![]() |
Quote:
__________________
No, I'm not adding it as an option. |
|
|
|
|
|
|
#6 |
|
Rookie
Join Date: Jan 2009
Posts: 18
![]() |
Thanks Pete, your advice has worked perfectly. I'm actually compiling from an old branch of NPP as it is my own variant, and the compiler flags were:
-Wall -W -O0 -fpascal-strings -DMACH_O_CARBON which I changed to: -Wall -W -O0 -fpascal-strings -DMACH_O_CARBON -arch i386 and then it worked fine. It also worked with: -Wall -W -O0 -fpascal-strings -DMACH_O_CARBON -arch ppc -arch i386 It just looked like I must have been using a pretty old mac makefile in the first place, as this last version seems to be what you were saying that I was starting with. So, good news for Snow Leopard Angband, bad news for iPhone Angband... Thanks everyone, half. |
|
|
|
![]() |
| 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 |
| Compiling with Borland C++ 5.5 (yes, I know) | PaulBlay | Development | 2 | February 23, 2009 15:55 |
| Compiling in Linux | trickypig | Vanilla | 6 | November 16, 2008 15:26 |
| Compiling Issues | Gregian | Vanilla | 13 | July 2, 2008 14:35 |
| Compiling 3.0.9b under SuSE 9.3 ... | TJA | Vanilla | 14 | May 12, 2008 21:17 |
| Compiling ToME | TJA | Variants | 6 | October 31, 2007 12:32 |