Ultimate Stunts on Mac OS X - install instructions
Notes:
- This is how I did it, there are other ways (namely using frameworks
and not Unix libs, or using macports or fink)
- You should at least understand a bit what you are doing, I do not
claim my instructions are perfect. They should get you started in the
right direction however.
Setting up your environment
All the following programs can be built and installed with the following
commands on the terminal:
% cd /path/to/source_file
% ./configure
% make
% sudo make install
OpenAL
The OpenAL framework provided by Apple on OS X 10.4 is too old. Once
again maybe 10.5 users will have a more recent one - but anyway
Ultimate Stunts's build system was not patched for mac frameworks so
building the library Unix style is easiest. This part is currently a
little mess, and we're not even building with .ogg support (which
means no music) so this will really need to be improved.
- Checkout OpenAL SVN (or probably source code of version 1.1 will do
but I didn't test)
% svn checkout http://www.openal.org/repos/openal/trunk openal
% cd openal
- Build OpenAL:
- copy headers in /OpenAL-MacOSXbuild/include/AL to /usr/local/include/AL
% sudo cp -r ./include/AL/ /usr/local/include/AL
- create openal.pc in /usr/local/lib/pkgconfig
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: OpenAL
Description: OpenAL blah blah blah not an official .pc file
Requires:
Version: 1.1.0
Libs: -L${libdir} -lopenal
Cflags: -I${includedir}
- build alut:
% cd /openal/alut
% ./autogen.sh
% ./configure
% make
% sudo make install
Getting the dependencies
Install SDL from source with terminal, do not use the binaries they
provide (support for the provided SDL binaries can be added in the
future but for now building yourself from terminal is easier as it
requires less patching of Ultimate Stunts's build system)
- Get SDL (
http://www.libsdl.org/download-1.2.php) source code
% cd /path/to/SDL-1.2.13
% ./configure --without-x --disable-x11-video
% make
% sudo make install
- Get SDL_image source code
% cd /path/to/SDL_image-1.2.6
% ./configure --enable-jpg-shared=false --enable-png-shared=false
% make
% sudo make install
- symlink include folder of OpenGL framework to /usr/local/include/GL
(Unix programs have an easier time finding it this way)
% sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ /usr/local/include/GL
Building ultimate Stunts
- get source code
- if you need to generate a configure script (like if you got it from
CVS), do "autoconf"
%./configure
% make
Running Ultimate Stunts
% ./ultimatestunts/ustunts
enjoy =)