Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old September 12, 2009, 00:23   #1
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 898
half is on a distinguished road
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?
half is offline   Reply With Quote
Old September 12, 2009, 01:47   #2
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 36
Posts: 1,516
d_m is on a distinguished road
I can't speak to NPP, but I'd be interested if you cared to post the error(s) you're getting when trying to compile V.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old September 12, 2009, 01:50   #3
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
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 2011
zaimoni is offline   Reply With Quote
Old September 12, 2009, 08:35   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 3,967
Donated: $40
Pete Mack is on a distinguished road
Quote:
Originally Posted by half View Post
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?
1. Fix Makefile.osx:
Code:
-arch ppc -arch i386 -mmacosx-version-min=10.0
should be
Code:
-arch x86 -mmacosx-version-min=10.5
Also try -arch x86_32 as the default target has apparently changed to 64 bit, and 64-bit OSX doesn't have Carbon support, much less QuickDraw support.

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...
Pete Mack is offline   Reply With Quote
Old September 12, 2009, 11:24   #5
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,817
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
1. Fix Makefile.osx:
Code:
-arch ppc -arch i386 -mmacosx-version-min=10.0
should be
Code:
-arch x86 -mmacosx-version-min=10.5
Also try -arch x86_32 as the default target has apparently changed to 64 bit, and 64-bit OSX doesn't have Carbon support, much less QuickDraw support.

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...
It may be worth starting to nick stuff from http://ridiculousfish.com/angband/ to phase out the Carbon stuff with Cococa.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old September 12, 2009, 11:39   #6
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 898
half is on a distinguished road
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.
half 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
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


All times are GMT +1. The time now is 15:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.