-
-
Notifications
You must be signed in to change notification settings - Fork 28
Compiling
Spearmint can be built on GNU/Linux, Mac OS X, and Windows.
##General Spearmint only contains the engine code. You'll need game data and spearmint-compatible game code to use it.
###Spearmint
- Get the engine source code, either the SDL 2 (recommended) or SDL 1.2 version.
- SDL 2 version; see right column of sdl2 branch overview or download a zip or tar.
- SDL 1.2 version; see right column of master branch overview or download a zip or tar.
- Compile (using guides below).
- Setup a game to run, Quake 3 or Turtle Arena (see below).
- Run Spearmint.
###Quake 3 Running Quake 3 using Spearmint;
- Code: mint-arena (direct download: zip or tar).
- Patch-Data: Spearmint patch data (direct download: zip or tar).
- Data: If you don't own Quake III Arena or Quake III: Team Arena you can buy them on Steam (requires Windows or WINE to install).
Build spearmint. Build mint-arena. Get the patch data. Get the Q3 pk3s. Then setup the following file structure, Team Arena (missionpack) is optional.
spearmint_x86.exe (built from spearmint repo)
spearmint-server_x86.exe (built from spearmint repo)
mint-renderer-opengl1_x86.dll (built from spearmint repo)
mint-renderer-opengl2_x86.dll (built from spearmint repo)
baseq3
baseq3/pak[0-8].pk3 (copy from your Q3A install)
baseq3/mint-game_x86.dll (built from mint-arena)
baseq3/mint-cgame_x86.dll (built from mint-arena)
missionpack/
missionpack/pak[0-3].pk3 (copy from your Q3: Team Arena install)
missionpack/mint-game_x86.dll (built from mint-arena)
missionpack/mint-cgame_x86.dll (built from mint-arena)
###Turtle Arena
See turtle-arena-code README for how to build and run it.
- Code: turtle-arena-code
- Data: turtle-arena-data
###Extraordinary Beat X
EBX (based on Turtle Arena) is unplayable due to lack of player models (the client errors on level load). Very exciting, yes. ._.
##GNU/Linux Install the libSDL 1.2 or libSDL 2 development and runtime packages for your distro.
###Terminal
Run make
.
Binaries will be in build/release-linux-ARCHNAME/
.
##Mac OS X ###Terminal ####App Bundle Build Universal Bundle: Recommend to build on Mac OS X 10.6 with 10.5 SDK installed.
- Run
./make-macosx-ub.sh
App will be in build/release-darwin-ub/
Build single platform .app bundle:
- Run
./make-macosx.sh x86_64
- Run
./make-macosx.sh ppc
- Run
./make-macosx.sh x86
App will be in build/release-darwin-ARCHNAME/
####Unpackaged
- Run
make
Binaries will be in build/release-darwin-x86/
(x86 or x86_64 Mac) or build/release-darwin-ppc/
(PowerPC Mac).
You'll need to copy the SDL runtime DYLIB from code/libs/macosx/
into the directory containing the client (i.e., build/release-darwin-*/
) to be able to run it.
##Windows MSYS (a command line shell) is the recommended build method.
###mingw-w64
- Using MSYS; Change to the top-directory of the source code, then run
make
- Using Cygwin; Change to the top-directory of the source code, then run
make PLATFORM=mingw32
Binaries will be in build/release-mingw-x86/
or build/release-mingw-x86_64/
.
You'll need to copy the SDL runtime DLL from code/libs/win32/
or code/libs/win64/
into the directory containing the client (i.e., build/release-mingw-*/
) to be able to run it.