Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 31, 2009, 16:08   #1
konijn_
Hellband maintainer
 
konijn_'s Avatar
 
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 37
Posts: 345
Donated: $120
konijn_ is on a distinguished road
Help a newbie

So,

I finally got Hellband to compile on my new Mac, and put it in a dmg and fix a major mac bug.

However, there is still 2 things I would like to find out :

* So I can compile with make -fmakefile.osx, how can I debug, is anybody able to debug any band on Mac ?

* Hellband shows lowercase 'hellband' in the mac menu, how can I make it show 'Hellband' with uppercase H ?

Cheers,
T.
__________________
* Are you ready for something else ? Hellband 0.8.7 is out! *
konijn_ is offline   Reply With Quote
Old December 31, 2009, 16:13   #2
Marble Dice
Swordsman
 
Join Date: Jun 2008
Location: Columbia, MO. USA
Posts: 405
Marble Dice is on a distinguished road
Quote:
Originally Posted by konijn_ View Post
* Hellband shows lowercase 'hellband' in the mac menu, how can I make it show 'Hellband' with uppercase H ?
This is a complete guess, but what if you change the name of the generated binary executable so that it's got a capital H?
Marble Dice is offline   Reply With Quote
Old December 31, 2009, 16:37   #3
konijn_
Hellband maintainer
 
konijn_'s Avatar
 
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 37
Posts: 345
Donated: $120
konijn_ is on a distinguished road
Quote:
Originally Posted by Marble Dice View Post
This is a complete guess, but what if you change the name of the generated binary executable so that it's got a capital H?
No dice ;\
I also changed the descriptions in the plist file. Still no dice.

T.
__________________
* Are you ready for something else ? Hellband 0.8.7 is out! *
konijn_ is offline   Reply With Quote
Old December 31, 2009, 21:18   #4
Pete Mack
Veteran
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,399
Donated: $40
Pete Mack is on a distinguished road
Compile with
$ make -f Makefile.osx OPT=-g
$ cd ..
$ gdb Hellband.app
OR
$gdb Hellband.app/Contents/MacOS/hellband
(This is approximate--actual path should be obvious.)

You don't want the executable to be named Hellband, you want the package to be named Hellband.app

Set the NAME macro in Makefile.osx to
NAME = Hellband
rather than
NAME = Angband
Note that the variable definitions in Makefile.osx are all important -- they are used to replace the appropriate values in the plist file.

EDIT:
If you don't like command-line arguments to make, or editing Makefile.osx, you can create override values in
src/config

I don't recommend this for debug flags and the like, because it's easy to forget when you want to make a distribution.

Last edited by Pete Mack; December 31, 2009 at 21:31.
Pete Mack is offline   Reply With Quote
Old December 31, 2009, 23:40   #5
konijn_
Hellband maintainer
 
konijn_'s Avatar
 
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 37
Posts: 345
Donated: $120
konijn_ is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Compile with
$ make -f Makefile.osx OPT=-g
$ cd ..
$ gdb Hellband.app
OR
$gdb Hellband.app/Contents/MacOS/hellband
(This is approximate--actual path should be obvious.)

You don't want the executable to be named Hellband, you want the package to be named Hellband.app

Set the NAME macro in Makefile.osx to
NAME = Hellband
rather than
NAME = Angband
Note that the variable definitions in Makefile.osx are all important -- they are used to replace the appropriate values in the plist file.

EDIT:
If you don't like command-line arguments to make, or editing Makefile.osx, you can create override values in
src/config

I don't recommend this for debug flags and the like, because it's easy to forget when you want to make a distribution.
Thanks!!

T.
__________________
* Are you ready for something else ? Hellband 0.8.7 is out! *
konijn_ is offline   Reply With Quote
Old December 31, 2009, 23:54   #6
Pete Mack
Veteran
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,399
Donated: $40
Pete Mack is on a distinguished road
BTW: if you are using the very latest Makefiles, you will have something called Makefile.src
This contains VERSION and COPYRIGHT variables, which are used for in appropriate places in the executable and plist.


This holds for the current version of Makefile.osx. If you are using older versions (pre-3.0.8) of main-crb.c and Makefile.osx, you are on your own.

EDIT:
One more thing: if you have a replacement icon for the Finder, replace Angband.icns in the osx folder. Use as large as possible a bitmap to create OSX icons. (They render much better in the dock and in the finder as large icons.)

Last edited by Pete Mack; January 1, 2010 at 00:04.
Pete Mack is offline   Reply With Quote
Old January 2, 2010, 19:25   #7
konijn_
Hellband maintainer
 
konijn_'s Avatar
 
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 37
Posts: 345
Donated: $120
konijn_ is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
BTW: if you are using the very latest Makefiles, you will have something called Makefile.src
This contains VERSION and COPYRIGHT variables, which are used for in appropriate places in the executable and plist.


This holds for the current version of Makefile.osx. If you are using older versions (pre-3.0.8) of main-crb.c and Makefile.osx, you are on your own.

EDIT:
One more thing: if you have a replacement icon for the Finder, replace Angband.icns in the osx folder. Use as large as possible a bitmap to create OSX icons. (They render much better in the dock and in the finder as large icons.)
Well, hmm,

I honestly tried, but the current set up was too confusing for me :\
so I compiled what I had ( an ancient NPP main-crb.c ) and stole from Angband what did not work ( like open savefiles ).

After playing further with the mac build, I found one more minor problem, probably because of that, I keep getting
setuid(): cannot set permissions correctly!

For the icons, I think I am set, although my personal setting of the dock shows rather small icons

T.
__________________
* Are you ready for something else ? Hellband 0.8.7 is out! *
konijn_ is offline   Reply With Quote
Old January 2, 2010, 21:15   #8
Pete Mack
Veteran
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 2,399
Donated: $40
Pete Mack is on a distinguished road
Appears there needs to be a wiki page for the build system...

1. Makefile.src contains all the information common to all builds (source files, version info, etc. You can trim down the other Makefiles by a lot using this, and it can reduce build errors dramatically.)
2. Makefile.inc is automatically regenerated dependency info.
Use
$ make -f Makefile.osx depgen
$ mv Makefile.new Makefile.inc
(for instance)
3. .../mk/*, configure*, and the *.m4 files are used for automake stuff on Linux. You don't need it.
If you want a barebones *NIX build (gcu and X11), Makefile.std replaces all that stuff fairly reliably.
Pete Mack 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
Newbie question konijn_ Development 2 December 5, 2009 02:00
Newbie Player - Need Help hotbeef Vanilla 26 October 31, 2009 07:18
Newbie mage... Azoth Vanilla 16 June 17, 2009 18:58
newbie questions Shaman Vanilla 8 June 3, 2009 04:28
More Newbie Help? Oh yeah. Funksultan Vanilla 32 October 21, 2008 07:52


All times are GMT +1. The time now is 10:53.


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