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
You are not logged in. Please login or register.
Teeworlds Forum → Support → [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
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
so in step 6:
whats the compile params? can you explain that for me?
thanks
All that you need know: https://www.teeworlds.com/?page=docs&am … everything
bam params for teeworlds:
- server_release
- server_debug
- client_release
- client_debug
- Other that not need...
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
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
start by making sure in CMD you can do 'gcc' and it does not say 'command not found' etc.
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
1. Install MinGW: http://sourceforge.net/projects/mingw/f … urce=files
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
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
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
install boost lib in "other\mysql\include" it will be fix I guess.
this might help you:
https://www.teeworlds.com/forum/viewtopic.php?id=11811
Teeworlds Forum → Support → [Compile HELP] MinGW Compiler
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.