Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 21 (modified by bensch, 19 years ago) (diff)

Get it Running

TracNav(TracNav/TOC)?

Mac OS X

!! THIS DOCUMENT IS BEING REWRITTEN FOR USAGE WITH OS-X 10.4 AND THE NEWEST LIBRARIES !!

Installing the Utilities

  1. GCC, the GNU Compiler:
    Read about installation of the MacOSX coding env or just download the XCode Tools from the apple development center where you will have to create an account if you don't have one already. Wow, the xcode package is about 300MB big!
  2. Fink and Fink Commander:
    On the fink website you will find the fink program, which you will need to install the libraries. Go there to the download zone and get the binary (.dmg) version.
  3. (optional) Now you will want to download the fink commander, its a gui for the fink program that makes it much easier to work with. you can get it from the sourceforge site

Fink Utilities These utilities must be install with fink. either you do it with the easy to use GUI (finkcommander), or you use the syntax

$ fink list [package-part-name]           // choose the one you like and then
$ fink install [package-name]             // here you have to fill in the name of the actual package

You need the following packages:

  1. Autoconf
    $ fink install autoconf
    
  2. Subversion
    $ fink install svn-client-ssl
    

package.

Installing the Libraries

  1. X-code must be installed.
  2. You can find a collection of all Tools and Libraries you need here
  3. install SDL.framework, and read the documentation on SDL download section

Use the fink commander to install

  • glew
  • sdl
  • sdl-image

Unfortunately SDL_ttf is not installable via Fink Commander, so download the source directly from http://www.libsdl.org/projects/SDL_ttf and compile it yourself. Before installing the SDL_ttf library make sure you have freetype2.0 or later installed on your Mac. You can get it also with finkcommander:

  • freetype2.0

To install SDL_ttf to the fink directory use the following configure command:

wraith user # ./configure --prefix=/sw/

Then compile and install by revoking. You will have to be superuser to install the libraries (admin is not enough). To enable superuser login:

wraith user # sudo passwd root

this will set the password for the root account if you havnt done this before.

wraith user # ./configure
.
wraith user # make
.
wraith user # sudo make install

Compiling

Now switch to the linux guides and continue there with the compiling sections.

(about this install doc:

  • would be nice to:
    1. use frameworks on osX (i did not manage to use them)
    2. check it if it works for you