1 (edited by Detructor2 2009-01-11 02:07:48)

Topic: bam throws an error while trying to compile teeworlds 0.5

Hi,

I'm getting an error, while trying to compile teeworlds.

I've downloaded the trunk and cd'ed into "trunk" output of ls:

data     default.bam  license.txt  other       scripts
datasrc  docs         objs         readme.txt  src

I've downloaded and compiled bam, too.

Now I'm typing the following command to compile teeworlds:

../bam/src/bam debug

and I'm getting the following error:

bam: syntax error
bam: default.bam:22: unexpected symbol near `...'
strack traceback:
bam: error during build

It seems, that there is something wrong with this code

local inputs = FlatternTable({...})

Or do I've something done wrong?!

2

Re: bam throws an error while trying to compile teeworlds 0.5

You need the newest version of bam too. The same way u donwloaded trunk for tw, download trunk for bam.

We will meet again when the flowers spread their glorious scent of victory and the birds sing us the melody of justice...

3

Re: bam throws an error while trying to compile teeworlds 0.5

Make sure that you got all the dependencies listed at http://www.teeworlds.com/?page=docs& … Everything

Download bam 0.2, which can be found at http://teeworlds.com/trac/bam

4

Re: bam throws an error while trying to compile teeworlds 0.5

@Somerunce thanks for answer, I had an older version of bam...now it works

5 (edited by shmafoozius 2009-01-11 20:25:18)

Re: bam throws an error while trying to compile teeworlds 0.5

I have tried to compile bam 0.2 as well. I'm using XP SP2, tried dmc AND MinGW.
DMC:

E:\tw050\bam-0.2.0>make_win32_dmc.bat
link txt2c,src\tools\txt2c,,user32+kernel32/noi/NOL;

E:\tw050\bam-0.2.0\src\context.c:
E:\tw050\bam-0.2.0\src\dep_cpp.c:
E:\tw050\bam-0.2.0\src\main.c:
{"src\driver_gcc.bam", internal_file_2 },
      ^
E:\tw050\bam-0.2.0\src\internal_base.h(1772) : Lexical error: undefined escape sequence
{"src\driver_cl.bam", internal_file_3 },
      ^
E:\tw050\bam-0.2.0\src\internal_base.h(1773) : Lexical error: undefined escape sequence
--- errorlevel 1
E:\tw050\bam-0.2.0>

MinGW (gcc) starts with the following (too much to post everything):

E:\tw050\bam-0.2.0>make_win32_mingw.bat
gcc: src/lua/src/*.c: No such file or directory
gcc: src/lua/src/lib/*.c: No such file or directory
src/context.c:1:17: lua.h: No such file or directory
src/context.c:2:21: lauxlib.h: No such file or directory
In file included from src/context.c:5:
src/context.h:12: error: syntax error before "lua_State"
src/context.h:12: warning: no semicolon at end of struct or union
src/context.h:27: error: syntax error before '}' token
src/context.h:27: warning: ISO C does not allow extra `;' outside of a function
src/context.h:29: error: syntax error before '*' token
src/context.h:30: error: syntax error before '*' token
src/context.c:15: error: syntax error before '*' token
src/context.c: In function `context_get_pointer':

/edit:
I start wondering how you guys even get bam to compile.
Downloaded everything without to change anything, and it won't compile. Even when fixing an error the compiler is telling me, there are even more to come after it's fixed. ARGH!
Isn't there a manual to this? I'd love to help testing 0.5.0, but it's not possible without bam... <_<

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

6

Re: bam throws an error while trying to compile teeworlds 0.5

You need msvc to compile Teeworlds the official way. As simple as that.

7 (edited by shmafoozius 2009-01-11 21:26:34)

Re: bam throws an error while trying to compile teeworlds 0.5

Urgs... ok. But why are the other batch files there, when it's not even working?
K, guess I won't get a serious answer, so I better start downloading msvc..

/edit: Forgot the important stuff: Thanks!

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

8

Re: bam throws an error while trying to compile teeworlds 0.5

mingw and dmc is really untested and isn't really used.