Skip to content

Compiling

Zack Middleton edited this page Dec 16, 2013 · 39 revisions

Spearmint can be built on GNU/Linux, Mac OS X, and Windows.

##General

  • Get the source using git (see main page right column) or download a zip or tar.
  • Compile (using guides below).
  • Copy data files into subdirectories of the binaries directory listed for the compile method you used.
    • Copy your Quake III Arena data files (baseq3/pak[0-8].pk3) to baseq3 subdirectory.
    • Optionally copy Quake III: Team Arena data files (missionpack/pak[0-3].pk3) to missionpack subdirectory.
    • Download the Spearmint patch data (direct download: zip or tar) and copy the Quake III Arena and optionally Quake III: Team Arena data files to baseq3 and missionpack subdirectories.
  • Run spearmint binary in the binaries directory listed for the compile method you used.

If you don't own Quake III Arena or Quake III: Team Arena you can buy them on Steam, Amazon, eBay, etc.

##GNU/Linux Install the libsdl 1.2 dev 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 using Terminal.app)

  • 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 code/libs/macosx/libSDL-1.2.0.dylib to build/release-darwin-*/.

##Windows MSYS (a command line shell) is the recommended build method.

###MSYS (MinGW) Run make

Binaries will be in build/release-mingw-x86/ or build/release-mingw-x86_64/.

You'll need to download SDL 1.2.15 runtime DLL and copy into the build/release-mingw-*/ directory. The x64 runtime must be renamed to SDL64.dll.

###Cygwin (MinGW) Run make PLATFORM=mingw32

Binaries will be in build/release-mingw-x86/ or build/release-mingw-x86_64/.

You'll need to download SDL 1.2.15 runtime DLL and copy into the build/release-mingw-*/ directory. The x64 runtime must be renamed to SDL64.dll.

Clone this wiki locally