Building S.C.O.U.R.G.E.
I recently converted S.C.O.U.R.G.E. to use autotools instead of cmake. In general the usual autotools sequence applies (configure, make, etc.) with some caveats:
-the executable builds in src/. You can run it from here w/o a make install
-If you really need to "make install", currently you have to manually copy the contents of the data dir to /usr/local/share/scourge.
-On the mac OS X, command line building is currently broken because I can't seem to be able to compile FreeType2. If someone fixes this, I'd appreciate a note. ;-)
-On the Mac OS, you can build via XTools
-On windows, you can build in DevCpp++
Getting the source from SVN
If you feel ready to test the very latest code of the game (which is not guaranteed to even compile) you can download it from SVN:
svn co https://svn.sourceforge.net/svnroot/scourge scourge
For more info on scourge in subversion, look here:
http://sourceforge.net/svn/?group_id=98006
Mac OS X
1. Get
FINK and install the SDL and freetype libraries.
2. aclocal
3. autoheader
4. autoconf
5. automake -a
6. ./configure
7. make
8. ./src/scourge
OR
You can use XCode to build (project file included in the dmg file) but you'll have to adjust my paths in the project file. (I'm not an XCode power user...) You'll need the SDL and SDL_mixer libs from the
usual places. For freetype search the web or get it from the scourge application bundle.
Update: I've been unable to compile scourge with the gnu tools since the inclusion of freetype. If someone has success with this please let me know. (And maybe share your patched config scripts...) However, you can still use the command line if you build in the xcode dir with "xcodebuild build".
Linux
If you got the source from cvs, you need to "autoreconf":
autoreconf -i
(and optionally: automake -a)
1. Make sure you have SDL, OpenGL and freetype libraries installed.
2. ./configure
3. make
4. ./src/scourge
I run Mandrake linux 9.2, so older versions of gcc may give you problems.
Linux notes:
-To check that you're running in hardware accelerated mode, type "glxinfo". Look for a line like "Direct rendering". If the value is "yes", you're ok.
Windows
I highly recommend
Dev-C++ (a free c++ ide; uses Mingw port of gcc). I include the Dev-C++ project file in the windows release. You need to install SDL via the IDE's package manager and get FreeType from
here.
Alternativaly, you can also install the command line environment by hand:
1. Install
MinGW and
MSYS (In that order!)
2. Install
freetype for MinGW
3. Install
SDL for windows
4. In MSYS, do:
5. aclocal
6. autoheader
7. autoconf
8. automake -a
9. ./configure --enable-debug
10. make
11. ./src/scourge.exe
I converted to autotools from cmake. You'll find the old instructions linked.