![]() |
#1 |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
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.8 is out! * |
![]() |
![]() |
![]() |
#2 |
Swordsman
Join Date: Jun 2008
Location: Columbia, MO. USA
Posts: 405
![]() |
|
![]() |
![]() |
![]() |
#3 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
I also changed the descriptions in the plist file. Still no dice. T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
#4 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,912
Donated: $40
![]() |
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 22:31. |
![]() |
![]() |
![]() |
#5 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
T.
__________________
* Are you ready for something else ? Hellband 0.8.8 is out! * |
|
![]() |
![]() |
![]() |
#6 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,912
Donated: $40
![]() |
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 01:04. |
![]() |
![]() |
![]() |
#7 | |
Hellband maintainer
Join Date: Jul 2007
Location: New York, the Big Apple
Age: 43
Posts: 367
Donated: $120
![]() |
Quote:
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.8 is out! * |
|
![]() |
![]() |
![]() |
#8 |
Prophet
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,912
Donated: $40
![]() |
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. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newbie question | konijn_ | Development | 2 | December 5, 2009 03:00 |
Newbie Player - Need Help | hotbeef | Vanilla | 26 | October 31, 2009 08:18 |
Newbie mage... | Azoth | Vanilla | 16 | June 17, 2009 19:58 |
newbie questions | Shaman | Vanilla | 8 | June 3, 2009 05:28 |
More Newbie Help? Oh yeah. | Funksultan | Vanilla | 32 | October 21, 2008 08:52 |