Install XCode 2.2 on Mac OS 10.4. This corresponds to "gcc version 4.0.1 (Apple Computer, Inc. build 5247)" as reported by "gcc -v" at the command line. Earlier (or later) versions may be coaxed to work, but NeilStevens got ToME 3.0.0.a2 working with this specific set.
Get SDL & SDL_net. Their homes are http://www.libsdl.org and http://www.libsdl.org/projects/SDL_net/ Here's a specific set of tested links: http://www.libsdl.org/release/SDL-1.2.9.tar.gz http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.5.tar.gz Note that there's also an SDL.NET, that's something else. Use the Finder to untar.qz the files to new folders: ~/Desktop/SDL-1.2.9, and ~/Desktop/SDL_net-1.2.5 (You can, of course put this anywhere, remember to change the details farther on.)
In Terminal.app's bash shell:
export MACOSX_DEPLOYMENT_TARGET=10.4
Configure SDL. For an uni-arch, just configure normally once you're inside the 'SDL-1.2.9' directory.
cd ~/Desktop/SDL-1.2.9/ ./configure
Make SDL. For a uniarch, just
make
Install SDL. For a uniarch, in the default position,
sudo make install
Configure SDL_net. For an uniarch, just configure normally
cd ~/Desktop/SDL_net-1.2.5 ./configure
Make SDL_net. For a uniarch, just
make
Install SDL_net. For a uniarch, in the default position,
sudo make install
Download ToME from CVS
cvs -d :pserver:anonymous@t-o-m-e.net:/var/cvs/tome co tome
Convert
#include "SDL.h"
to
#include <SDL/SDL.h>
in tome/src/physfs/physfsrwops.hCompile ToME. You need to be in the src directory:
cd tome/src/ make -f makefile.osx
Build ToME. From the same place:
make -f makefile.osx install
Chatter
CeiltiCahill: Shrike De Cil, pretty soon now, I'm going to try compiling 3.0 using your instructions. I am completely inexperienced, however, even with using Terminal, xcoder, etc. Would you mind telling me what SDL is? Also, I'm wondering , if at some point , you might consider posting similar instructions for compiling the T-Engine? I have a G4 mini and OS X 4.4. If you can't do anything with T-Engine instructions, thanks at any rate for posting the above, I've waited a long time to to my own compiles, and now that I can, I'm quite excited!
NeilStevens: Why are you both so interested in trying to help non-developers compile ToME? Users should just stick with the releases!
CeiltiCahill: For me, it goes back years when Mac compiles were rare , and only major variants had them. Even now I have to wait months for ToME Mac compiles, at least until you began. There are many variants I still want to try and shall have to compile them myself. I figure that if I can compile ToME, I shall be able to compile anything! And I don't see how I can develop a module without compiling T-Engine, as no one else seems willing or able to make a Mac compile. BTW Neil, I 've been reading about your mage staves, two years ago I was working with DG on my origional module called "Sorcerer's Heaven" it featured a huge array of new Mage Staves!, and a different concept of Sorcerers in general, and will be the basis for my new module, a thing we seem to have in common!
NeilStevens: Learning to build ToME 3 will not help you build other Angband derivatives. I've done major renovations of the Carbon build, and on top of that, ToME already has its own wrinkles in the form of its custom lua and its use of SDL.
And the way you develop a module is just to use the T-engine as it ships with ToME. Your module just gets dropped into the user's module directory. That's how it works now in ToME 2, and how it will continue to work in ToME 3.
CeiltiCahill : What about simple human endeavor, and challange in compiling ToME? Whats wrongt with that? AlI that is at risk is my time, and at the least I will gain valuable experience in learning about the compiling tools on my machine and about compiling itself. I may have a wrong impression about the T-Engine, are you saying that it is used for ToME itself and not the modules? I thought it was a tool used for Module develpment, like the Script Editor? Please remember that I have been quite out of it for over a year in case this seems like a hopelessly basic question.
ShrikeDeCil My main desire was to have a functional ToME 3.0.0.a2-for-Mac OS X. If I'm going to dabble with module creation, there's no point in creating a 2.3.3 module - its time to go straight for 3.0. I didn't have one, so I flailed until I did. (And you helped mightily Neil, I was deep in Apple Developer crud, and never saw that 'export' command.) I only presented this for anyone else that might discover they were off in the weeds in the compile stage. But I was curious about step 11. That seems to be a problem you didn't run into.
NeilStevens: If you wanted the binary you could have just asked me to put one up for you, heh.
ShrikeDeCil: Ok, I think I'll take you up on that. :/ For some reason the output of the above process won't process 'tilde-8' correctly. 'Display Current Quests' gives 'can't open /var/var/obfuscatedstringhere' Do you happen to know if this works for your build?
NeilStevens: What version are you talking about? ToME 2.3.3 is available on the ToME webpage; ToME 3 isn't for users, so you really shouldn't be caring about whether Current Quests works or not.
Oh, and your 'sudo' on the make install is unnecessary and wrong.
ShrikeDeCil: I'm fiddling with a module for ToME 3.0, and I wanted to see if my quest was showing up properly. But it doesn't seem like any quests are showing up properly. If its just 'something that doens't work yet' -> fine. If it's 'Shrike, you messed up compiling things', which was my first guess, then that's something else.
The 'sudo' command resulted in a Tome3.app that had the icon properly applied. The same command _without_ sudo leaves Tome3.app with a generic icon. But it still 'works', even if the icns isn't applied.
NeilStevens: That's a red herring. The icon is always applied; it's just that sometimes Finder caches it without the icon.
If you see bugs in ToME 3, head on over to BugReports and let us know. As for a ToME 3 build, I'll package one up right now.
ShrikeDeCil: Thanks again Neil. Filing BugReports on 3.0.0.a3 now... but I feel like I'm mining lice while carrying a dragon just at the moment
ToME Wiki