Compiling ToME under Mac OSX

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Message
Author
kazak 2
Higher
Posts: 71
Joined: Sat Mar 05, 2011 6:43 pm

Re: Compiling ToME under Mac OSX

#76 Post by kazak 2 »

I'm on 10.5 and the mac download from te4.org never works for me--click on it and a window pops up saying that "You cannot use this version of the application T-engine with this version of Mac OS X."

Here's my current notes to get the game up and running (with music and everything):

Code: Select all

*****Updating Tome4*****

1) Open terminal and paste this command:
		svn co --username guest --password guestor http://svn.net-core.org/repos/t-engine4 t-engine4
2) Once the download finishes, the game version will have to be "rolled back" to the specific svn number of the official release.
3) In terminal, navigate to the t-engine4 directory with this command (the command "ls -l" will list the available directories within the current location):
		cd t-engine4
4) In the t-engine4 directory, enter this command, replacing #### with the svn number taken from the release announcement:
		svn update --username guest --password guestor -r ####
5) In finder, open T-engine4/mac/xcodeproj
6) In Xcode, change the top left button to 10.5
7) ***Right click on T-Engine, add existing files, and add "vorbisfile", "ogg", "alc", and "al" files.
8) ***In "music.h" in Sources folder, change 'includes' syntax from <...> to "..."   (brackets to quotations)
9) Build
10) Ta-da

Release Numbers:
b28: 3594
b29: 3839
b30: 3886
b31: 3962
I'm currently running the beta 31 release version. Haven't attempted any newer revisions yet.

* Vorbisfile and Ogg files require downloading and compiling the frameworks that Darkgod linked to a few posts back.
* alc and al are in SYSTEM/LIBRARY/FRAMEWORKS/OpenAL.framework
* I'm still on SDL 1.2.
* I always rename or delete the old version of Tome and do a clean download each new release.
* Hope this helps. These are currently the only changes I have to make to get it to build correctly when downloading from SVN, and I haven't messed with premake4 or anything else--just Xcode.

Sirrocco
Sher'Tul
Posts: 1059
Joined: Fri Apr 23, 2010 4:56 am

Re: Compiling ToME under Mac OSX

#77 Post by Sirrocco »

I did all of those things and it failed. I then mucked around with it bit (getting the entire open AL framework in there, rather than just the two .h files) picked a new directory to build into, and it worked (though it is currently somewhat buggy in places)

as a side note, you should be able to put the "-r ####" bit into the initial download command directly and save yourself a step.

Post Reply