These instructions are for setting up ToME to compile on your Mac OSX computer. Note that you cannot use the source distributions downloaded from the website, since the mac folder and Xcode project file is missing.
Initial setup
- Xcode (free download, but it requires registering... http://developer.apple.com/technologies/xcode.html)
Run the installer. - Download the SDL Runtime library (http://www.libsdl.org/release/SDL-1.2.14.dmg).
Drag the "SDL.Framework" folder to "/Library/Frameworks". - Download the SDL image library (http://www.libsdl.org/projects/SDL_imag ... 1.2.10.dmg).
Drag the "SDL_image.Framework" folder to "/Library/Frameworks". - Download the SDL mixer library (http://www.libsdl.org/projects/SDL_mixe ... 1.2.11.dmg).
Drag the "SDL_mixer.Framework" folder to "/Library/Frameworks". - Download the SDL ttf library (http://www.libsdl.org/projects/SDL_ttf/ ... 2.0.10.dmg).
Drag the "SDL_ttf.Framework" folder to "/Library/Frameworks".
- I believe that libfreetype.dylib is already distributed with Xcode, but let me know if this is wrong. - Open the terminal and change directory to the directory you want to download ToME into (default is your home directory which is fine).
- Execute the following command in the terminal (this may take a while).
Code: Select all
svn co --username guest --password guestor http://svn.net-core.org/repos/t-engine4 t-engine4
- Open the "t-engine4/mac/T-Engine" folder in Finder
- Open the "T-Engine.xcodeproj", which should open Xcode.
- Click on the Action button (top bar, looks like a gear to me) and select Add -> Existing Frameworks...
- Scroll down and look for the four SDL frameworks. Select all four by click on the first and shift-clicking on the last SDL framework. If they do not show up click "Add Other" and select the Headers folder inside of each SDL folder in /Library/Frameworks.
- Go to the Build menu and select the Build option (or press apple-b).
Especially in the first few iterations of this instruction this stage may cause problems. Please report them here and I can update the instructions. - Return to the "t-engine4/mac/T-Engine" folder in Finder. There should now be a "build/Debug/" folder with T-Engine.app. Run it!
Alternatively you can run the application from within Xcode to help catch any problems, particularly useful if you are experiencing issues and wish to give a better bug report to ToME developers.
Or alternatively, how do you go to an official release since the online profile is currently disabled otherwise.
- Open Terminal and navigate to the t-engine4 directory.
- Run this command if you want to have the most recent SVN revision:
... and this one if you want a specific SVN revision. You can find what number (####) to use by looking at this thread or looking in the official announcements.
Code: Select all
svn update --username guest --password guestor
Code: Select all
svn update --username guest --password guestor -r ####
- Open the "T-Engine.xcodeproj" project.
- Select Build -> Clean. This should ensure that no files from your previous ToME version exist afterwards.
- Go to the Build menu and select the Build option (or press apple-b).
Especially in the first few iterations of this instruction this stage may cause problems. Please report them here and I can update the instructions. - Return to the "t-engine4/mac/T-Engine" folder in Finder. There should now be a "build/Debug/" folder with T-Engine.app. Run it!
Alternatively you can run the application from within Xcode to help catch any problems, particularly useful if you are experiencing issues and wish to give a better bug report to ToME developers.