glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] Mac OS X build 0.8.21


From: Shawn Anderson
Subject: [glob2-devel] Mac OS X build 0.8.21
Date: Wed, 28 Mar 2007 18:10:31 -0700

I was very sad to not find OS X instructions for Glob2, but I understand why.  I would like to help as much as possible in that respect.  I have a G4 iBook and these are the steps that I used to get glob2 up and running on my machine:
using fink, I had automake 1.9 installed

install SDL-1.2.11 to /usr/local/lib
install SDL_net-1.2.6 to /usr/local/lib
install SDL_ttf-2.0.8 to /usr/local/lib
install libvorbis-1.1.2 to /usr/local
install libogg-1.1.3 to /usr/local

install boost_1_33_1 to /usr/local/lib
sudo mv boost-1_33_1/boost to boost

I had errors at this point about boost, which I fixed by switching to gcc 3.3
sudo gcc_select 3.3

Map.cpp and Map.h need to be modified to build using my version of gcc (unless there are some flags for this that I am unaware of)
address@hidden:~/code/glob2-0.8.21/src$ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE  -I./../libgag/include  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE  -O3 -c -o Map.o `test -f 'Map.cpp' || echo './'`Map.cpp
Map.cpp:2325: error: redefinition of `void
   Map::updateGlobalGradientSlow(Uint8*)'
Map.cpp:2317: error: `void Map::updateGlobalGradientSlow(Uint8*)' previously
   declared here
Map.cpp:2325: error: no `void Map::updateGlobalGradientSlow(Uint8*)' member
   function declared in class `Map'
Map.cpp:2801: error: redefinition of `void Map::updateRessourcesGradient(int,
   unsigned char, bool)'
Map.cpp:2793: error: `void Map::updateRessourcesGradient(int, unsigned char,
   bool)' previously declared here
Map.cpp:2801: error: no `void Map::updateRessourcesGradient(int, unsigned char,
   bool)' member function declared in class `Map'
Map.cpp:3548: error: redefinition of `void Map::updateGlobalGradient(Building*,
   bool)'
Map.cpp:3540: error: `void Map::updateGlobalGradient(Building*, bool)'
   previously declared here
Map.cpp:3548: error: no `void Map::updateGlobalGradient(Building*, bool)'
   member function declared in class `Map'
Map.cpp:4580: error: redefinition of `void Map::updateForbiddenGradient(int,
   bool)'
Map.cpp:4572: error: `void Map::updateForbiddenGradient(int, bool)' previously
   declared here
Map.cpp:4580: error: no `void Map::updateForbiddenGradient(int, bool)' member
   function declared in class `Map'
Map.cpp:4767: error: redefinition of `void Map::updateGuardAreasGradient(int,
   bool)'
Map.cpp:4759: error: `void Map::updateGuardAreasGradient(int, bool)' previously
   declared here
Map.cpp:4767: error: no `void Map::updateGuardAreasGradient(int, bool)' member
   function declared in class `Map'

basically there are two versions of this method, one templated and one not.  gcc does not like this, so for the time being I changed the non-templated versions to have an extra param that i gave a default value to. IE:
void Map::updateRessourcesGradient(int, unsigned char, bool) became void Map::updateRessourcesGradient(int, unsigned char, bool, int i = 0) in Map.h

I did this for the few errors above and all is well and the game seems to run fine.

use automake 1.9 to autoconf, ./configure, make



I think that was all of it.  If there's anything you need me to do, let me know.  I am a programmer but like everyone else, am very short on time.  I will try the CVS code tomorrow.  Cool game, keep up the great work!

/Shawn Anderson


reply via email to

[Prev in Thread] Current Thread [Next in Thread]