IMPORTANT NOTE: Teeworlds 0.5.2 and earlier requires python 2.x to compile. Python 3.0 will not work. Python 3.0 support is introduced with Teeworlds 0.6.0.
Run in cmd (start>run>cmd):
cd bam make_win32_msvc.bat cd ..
Run the following commands in cmd (start->run->cmd) while replacing <target> with your desired target from the table at the bottom of this page:
Replace VERSION in teeworlds-VERSION-src.zip with the version you want (probably the latest, 0.6.2)!
%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86 cd teeworlds-VERSION-src ..\bam\bam <target>
%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86 cd teeworlds-VERSION-src ..\bam\src\bam <target>
Use your package manager to install the following packages(you need the header/development files):
python (2.x for 0.5.2 and earlier)
alsa (asound)
gl
glu
x11
libsdl (1.2)
freetype
(python is the only one which is required to build the server)
Use your package maneger to install bam (0.4.0). Alternatively install bam (0.4.0) manually by running the following commands:
$ wget --no-check-certificate https://www.teeworlds.com/files/bam-0.4.0.zip $ unzip bam-0.4.0.zip $ rm bam-0.4.0.zip $ cd bam-0.4.0 $ ./make_unix.sh $ sudo mv bam /usr/local/bin/
Install bam (0.2.0) manually by running the following commands:
$ wget --no-check-certificate https://www.teeworlds.com/files/bam-0.2.0.zip $ unzip bam-0.2.0.zip $ rm bam-0.2.0.zip $ cd bam-0.2.0 $ ./make_unix.sh $ sudo mv src/bam /usr/local/bin/
Run the following commands to download teeworlds:
Replace VERSION in teeworlds-VERSION-src.zip with the version you want (probably the latest, 0.6.2)!
$ wget --no-check-certificate https://www.teeworlds.com/files/teeworlds-VERSION-src.zip $ unzip teeworlds-VERSION-src.zip $ rm teeworlds-VERSION-src.zip
Run the following commands while replacing <target> with your desired target from the table at the bottom of this page:
$ cd teeworlds-VERSION-src $ bam <target>
Install the Xode tools from apple. Use MacPorts or Homebrew to install FreeType:
$ sudo port install freetype
$ brew install freetypeor
$ sudo port install freetype +universal
$ brew install freetype --universal
if you want to build universal binaries.
Download SDL 1.2 from http://libsdl.org and put SDL.framework in /Library/Frameworks
Use MacPorts or Homebrew to install SDL 1.2 (when using MacPorts, make sure to not install the X11 variant):
$ sudo port install libsdl -x11
$ brew install sdlor
$ sudo port install libsdl -x11 +universal
$ brew install sdl --universal
if you want to build universal binaries.
Use MacPorts or Homebrew to install bam (0.4.0):
$ sudo port install bam
$ brew install bam
Alternatively you can install bam (0.4.0) manually by entering the following commands:
$ curl https://www.teeworlds.com/files/bam-0.4.0.zip > bam-0.4.0.zip $ unzip bam-0.4.0.zip $ rm bam-0.4.0.zip $ cd bam-0.4.0 $ ./make_unix.sh $ sudo mv bam /usr/local/bin/
Install bam (0.2.0) manually by running the following commands:
$ curl https://www.teeworlds.com/files/bam-0.2.0.zip > bam-0.2.0.zip $ unzip bam-0.2.0.zip $ rm bam-0.2.0.zip $ cd bam-0.2.0 $ ./make_unix.sh $ sudo mv src/bam /usr/local/bin/
Run the following commands to download teeworlds:
Replace VERSION in teeworlds-VERSION-src.zip with the version you want (probably the latest, 0.6.2)!
$ curl https://www.teeworlds.com/files/teeworlds-VERSION-src.zip > teeworlds-VERSION-src.zip $ unzip teeworlds-VERSION-src.zip $ rm teeworlds-VERSION-src.zip
Run the following commands while replacing <target> with your desired target from the table at the bottom of this page:
$ cd teeworlds-VERSION-src $ bam <target>
| Target | Description |
| release | All binaries (crapnet, dilate, fake_server, map_resave, map_version, mastersrv, packetgen, serverlaunch (only on Mac OS X), teeworlds, teeworlds_srv, tileset_borderop, versionsrv) in release version |
| client_release | Client (teeworlds) in release version |
| server_release | Server (serverlaunch (only on Mac OS X), teeworlds_srv) in release version |
| debug | All binaries (crapnet, dilate, fake_server, map_resave, map_version, mastersrv, packetgen, serverlaunch (only on Mac OS X), teeworlds, teeworlds_srv, tileset_borderop, versionsrv) in release version |
| client_debug | Client (teeworlds) in release version |
| server_debug | Server (serverlaunch (only on Mac OS X), teeworlds_srv) in release version |
On Mac OS X you can append "_x86", "_x86_64" or "_ppc" to the targetname in order to only create binaries for that specific architecture.