1

Topic: [Compile HELP] MinGW Compiler

hi my friends
i compile bam with:
make_win32_mingw.bat

now i donn't know how to compile Teeworlds by MinGW or gcc
can enyone help me step by step?
thanks smile

2

Re: [Compile HELP] MinGW Compiler

You need install MinGW and GCC Compiler...

1. Open Terminal
2. Go to source folder
3. Type: <folder bam>/bam -c all
4. Open config.lua (I dont remember the file know... i edit this later..)
5. Change the line that call to cl compiler to gcc
6. Run bam with compile params

3

Re: [Compile HELP] MinGW Compiler

so in step 6:
whats the compile params? can you explain that for me?
thanks

4 (edited by unsigned char* 2015-11-24 01:51:28)

Re: [Compile HELP] MinGW Compiler

All that you need know: https://www.teeworlds.com/?page=docs&am … everything
wink

bam params for teeworlds:
- server_release
- server_debug
- client_release
- client_debug
- Other that not need...

5

Re: [Compile HELP] MinGW Compiler

i install the MinGW but where is the terminal of MinGW? CMD of windows?
when i wanna compile with bam show error gcc not found neutral
how can i do that?

i install Code::Block MinGW and when i wanna compile the mod show to me this error:
g++: error: unrecognized command line option '-static-libstdc++'

whats this? can you help me?
thanks

6

Re: [Compile HELP] MinGW Compiler

start by making sure in CMD you can do 'gcc' and it does not say 'command not found' etc.

Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

7

Re: [Compile HELP] MinGW Compiler

i using compile via Bam...
but in config.lua i change "cl" to "gcc"
what do you say to me? 'gcc' in CMD? !
i dont use it like that
if you can teach me say to me how can i load gcc CMD in windows? like VC that we use a command to change CMD to VC CMD... is there any command?
thanks

8

Re: [Compile HELP] MinGW Compiler

1. Install MinGW: http://sourceforge.net/projects/mingw/f … urce=files
http://dl.dropboxusercontent.com/u/30566237/imgs/mingw.png
2. Install ZLib: http://gnuwin32.sourceforge.net/downlinks/zlib.php
3. Download Bam: https://github.com/matricks/bam/archive/master.zip
4. Update 'PATH' windows environment variable including MinGW and zlib bin folders
Dafult locations:
- zlib: C:\Program Files (x86)\GnuWin32\bin
- MinGW: C:\MinGW\bin
http://dl.dropboxusercontent.com/u/30566237/imgs/envvar.png
5. Now can compile bam using 'make_win32_mingw.bat'
6. Install Python (2.7.x or 3.x): https://www.python.org/downloads/
----------[ Python need restart computer.... ]-----------
7. Launch compilation process
- Open Terminal -> Go to source directory -> launch:
    <bam_folder>\bam.exe client_release

9

Re: [Compile HELP] MinGW Compiler

oh thank you

i have an other little problem
error boost in Compile

i install C:\boost\boost_1_59_0\
now
how can i fix Boost error in CMD? is it like gcc?
and my bam error massage is:

[1/5] [1] c++ src/game/server/gamecontext.cpp
[2/5] [2] c++ src/game/server/ddracecommands.cpp
In file included from other/mysql/include/mysql_connection.h:30:0,
                 from src/game/server/score/sql_score.h:7,
                 from src/game/server/gamecontext.cpp:30:
other/mysql/include/cppconn/connection.h:31:29: fatal error: boost/variant.hpp:
No such file or directory
 #include <boost/variant.hpp>
                             ^
compilation terminated.
In file included from other/mysql/include/mysql_connection.h:30:0,
                 from src/game/server/score/sql_score.h:7,
                 from src/game/server/ddracecommands.cpp:10:
other/mysql/include/cppconn/connection.h:31:29: fatal error: boost/variant.hpp:
No such file or directory
 #include <boost/variant.hpp>
                             ^
bam: 'c++ src/game/server/gamecontext.cpp' error 1
[3/5] [1] c++c osmrpci/lgaatmieo/ns etrevremri/ndadtreadc.e
chat.cpp
bam: 'c++ src/game/server/ddracecommands.cpp' error 1
[4/5] [2] c++ src/game/server/score/sql_score.cpp
In file included from other/mysql/include/mysql_connection.h:30:0,
                 from src/game/server/score/sql_score.h:7,
                 from src/game/server/ddracechat.cpp:11:
other/mysql/include/cppconn/connection.h:31:29: fatal error: boost/variant.hpp:
No such file or directory
 #include <boost/variant.hpp>
                             ^
compilation terminated.
bam: 'c++ src/game/server/ddracechat.cpp' error 1
In file included from other/mysql/include/mysql_connection.h:30:0,
                 from src/game/server/score/sql_score.h:7,
                 from src/game/server/score/sql_score.cpp:12:
other/mysql/include/cppconn/connection.h:31:29: fatal error: boost/variant.hpp:
No such file or directory
 #include <boost/variant.hpp>
                             ^
compilation terminated.
bam: 'c++ src/game/server/score/sql_score.cpp' error 1
bam: error: a build step failed

10

Re: [Compile HELP] MinGW Compiler

install boost lib in "other\mysql\include" it will be fix I guess.

11

Re: [Compile HELP] MinGW Compiler

this might help you:
https://www.teeworlds.com/forum/viewtopic.php?id=11811

There are three kinds of lies: lies, damned lies, and benchmarks.