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?
Compiling under Snow Leopard
Collapse
X
-
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.Zaiband: end the "I shouldn't have survived that" experience. V3.0.6 fork on Hg.
Zaiband 3.0.10 ETA Mar. 7 2011 (Yes, schedule slipped. Latest testing indicates not enough assert() calls to allow release.)
Z.C++: pre-alpha C/C++ compiler system (usable preprocessor). Also on Hg. Z.C++ 0.0.10 ETA December 31 2011Comment
-
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...Comment
-
1. Fix Makefile.osx:
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...takkaria whispers something about options. -more-Comment
-
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.Comment
Comment