-
-
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 in various ways.
##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/
.
###Code::Blocks (gcc)
- Open
misc/code_blocks/spearmint.workspace
- Build Release Linux ARCH or Debug Linux ARCH
Select build for x86 or x86_64 based on system arch. Building for different arch is not supported.
Binaries will be in build/release-codeblocks-ARCHNAME/
.
##Mac OS X ###Terminal ####App Bundle Build Universal Bundle: Recommend to build on Max OS X 10.6 or later 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-*/
.
###Xcode
Project directory: misc/xcode
##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.
###Code::Blocks (MinGW)
- Open
misc/code_blocks/spearmint.workspace
- Build Release Win32 or Debug Win32
Binaries will be in build/release-codeblocks-ARCHNAME/
.
You'll need to download SDL 1.2.15 runtime DLL and copy into the build/release-codeblocks-*/
directory. The x64 runtime must be renamed to SDL64.dll.
###Visual C++ (2008) Building does not work.
- SDL lib needs updating?
- Need to update for cgame-ui VM merger.
Project directory: misc/msvc/
###Visual C++ (2010) Building does not work. There are project files from ioq3 that could be updated for Spearmint though.
Project directory: misc/msvc10/