Skip to content

Installation Guide for Mac OS X

Burgestrand edited this page May 6, 2011 · 8 revisions

Easy prerequisuites

Install Homebrew, then execute:

brew install scons sdl sdl_ttf sdl_image boost boost-jam libogg libvorbis

Installing libguichan

  1. Get source for guichan: git clone git://gitorious.org/guichan/mainline guichan
  2. Go into the guichan directory: cd guichan
  3. Checkout latest release: git checkout v0.8.2
  4. Patch the Makefile templates:
---
 src/Makefile.am         |    2 +-
 src/allegro/Makefile.am |    2 +-
 src/opengl/Makefile.am  |    2 +-
 src/sdl/Makefile.am     |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index cf66330..8215701 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libguichan.la

 libguichan_la_LIBADD = widgets/libguichan_widgets.la

-libguichan_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 
+libguichan_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 

 libguichan_la_DEPENDENCIES = \
 	widgets/libguichan_widgets.la
diff --git a/src/allegro/Makefile.am b/src/allegro/Makefile.am
index 532eb5f..6ebfbce 100644
--- a/src/allegro/Makefile.am
+++ b/src/allegro/Makefile.am
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libguichan_allegro.la

 INCLUDES = -I$(top_srcdir)/include

-libguichan_allegro_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libguichan_allegro_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

 libguichan_allegro_la_SOURCES =		\
 		allegro.cpp		\
diff --git a/src/opengl/Makefile.am b/src/opengl/Makefile.am
index 4125d75..355a34a 100644
--- a/src/opengl/Makefile.am
+++ b/src/opengl/Makefile.am
@@ -2,7 +2,7 @@ lib_LTLIBRARIES = libguichan_opengl.la

 INCLUDES = -I$(top_srcdir)/include

-libguichan_opengl_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 
+libguichan_opengl_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 

 libguichan_opengl_la_SOURCES =	\
 	opengl.cpp		\
diff --git a/src/sdl/Makefile.am b/src/sdl/Makefile.am
index d2cdc90..3e0c301 100644
--- a/src/sdl/Makefile.am
+++ b/src/sdl/Makefile.am
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libguichan_sdl.la

 INCLUDES = -I$(top_srcdir)/include

-libguichan_sdl_la_LDFLAGS = -no-undefined -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+libguichan_sdl_la_LDFLAGS = -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)

 libguichan_sdl_la_SOURCES =	\
 	sdl.cpp			\
-- 
1.7.3.5

Now install: ./configure --enable-force-opengl && make && make install

Installing FIFE

  1. Download the source: svn co http://fife.svn.cvsdude.com/engine/trunk fife
  2. Go into FIFE directory: cd fife
  3. Patch FIFE like so:
Index: engine/core/loaders/native/audio_loaders/sounddecoder_ogg.h
===================================================================
--- engine/core/loaders/native/audio_loaders/sounddecoder_ogg.h	(revision 3636)
+++ engine/core/loaders/native/audio_loaders/sounddecoder_ogg.h	(working copy)
@@ -27,7 +27,7 @@
// Platform specific includes

// 3rd party library includes
-#include <vorbisfile.h>
+#include <vorbis/vorbisfile.h>
#include <boost/scoped_ptr.hpp>

// FIFE includes

Compile and install: scons && sudo python setup.py install

You are done! Run the Zombies: python run.py

Clone this wiki locally