Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old June 17, 2010, 23:16   #1
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 856
half is on a distinguished road
My variant is crashing on launch on some macs

I originally posted about this a while ago, but now I want to follow up on Pete Mack's helpful advice:

I wrote:

Quote:
Finally, I tried taking my work-in-progress to a friend's iMac and it would just crash on startup (before displaying a term), while it runs perfectly on my iMac and MacBook. Any ideas?
Pete Mack wrote:

Quote:
Are you sure you've linked the right libraries? If it runs on a development machine, but not an ordinary machine, this is a likely bet. However, I have seen cases where an executable compiled for 10.3.7 didn't work on 10.3.9.
Pete may well be right about it being a linking issue as it works my two machines with developer tools installed and not on the friend's machine without them installed. Does anyone know how to do this linking?
half is offline   Reply With Quote
Old June 18, 2010, 05:46   #2
Pete Mack
Veteran
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,399
Donated: $40
Pete Mack is on a distinguished road
It's been a while since I worked on OSX, but here's what I recall:

Step 1. Do a local install, rather than running from the development environment.
(Have you verified that the dmg you are distributing actually works?)

Step 2. Run it from the command line to verify correct link. open term and cd to the angband parent directory:
.../angband$ ./Angband.app/Contents/MacOS/angband
See if there are any link errors in the standard error.

Step 3. Verify that your system calls are working. Use ktrace (kernel trace):
$ man ktrace
and run it with angband as an argument.

Step 4. Compare OS version numbers. Are you running on the same version? If not, are you relying on a feature from a later version?
Pete Mack is offline   Reply With Quote
Old June 18, 2010, 09:39   #3
Nick
FAangband maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 49
Posts: 4,361
Donated: $60
Nick is on a distinguished road
I'm not sure what version of main-crb.c you're using, but I'd really recommend using the latest V version if you can.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old June 18, 2010, 10:32   #4
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 856
half is on a distinguished road
Thanks Pete. I just tested on another machine without the dev tools and it worked perfectly. I don't have easy access at all to the previous machine where it crashed on startup, so this could take a while to work out. I'll try it on some other macs.
half is offline   Reply With Quote
Old June 18, 2010, 10:37   #5
half
Knight
 
half's Avatar
 
Join Date: Jan 2009
Posts: 856
half is on a distinguished road
Quote:
Originally Posted by Nick View Post
I'm not sure what version of main-crb.c you're using, but I'd really recommend using the latest V version if you can.
I had tried doing this, but the move to the new V folder system was too big an obstacle. Last time I tried, I spent several frustrating hours attempting to update but to no avail and ended up reverting to the old setup. I *think* I also tried just taking the good things from the new main-crb.c but also failed at that.

At the moment, just getting a release version is a bigger issue than changing the build system, but I definitely want to be able to incorporate improvements to the various main files in the future (and to a lesser degree to take code from V and variants and help V and variants take code from my variant).
half is offline   Reply With Quote
Old June 18, 2010, 11:35   #6
Nick
FAangband maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 49
Posts: 4,361
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by half View Post
I had tried doing this, but the move to the new V folder system was too big an obstacle. Last time I tried, I spent several frustrating hours attempting to update but to no avail and ended up reverting to the old setup. I *think* I also tried just taking the good things from the new main-crb.c but also failed at that.
Been there

Quote:
At the moment, just getting a release version is a bigger issue than changing the build system
Yes, indeed. In fact, my previous advice was not very good - you're better getting something out the door, and when you've got the gameplay stable just moving to the whole V build system. That's a bit painful, but better than doing it piecemeal.
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick 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
Furyband Gold Crashing Theyli Variants 3 March 6, 2010 20:09
How many variant developers/maintainers have beaten their own variant? Delver Variants 12 June 5, 2009 09:08
Variant writing.. quickstart guide? Also, Hengband variant suggestions? dzhang Variants 34 April 1, 2009 00:45
Variant list pav Oook! 19 September 18, 2008 23:07
New Variant Help bpleshek Variants 4 September 8, 2008 22:04


All times are GMT +1. The time now is 03:17.


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