1

Topic: [HELP] Error durring compiling

I tried to compile both teeworlds 0.5.1 and 0.5.2 with Bam 0.2 and bam 0.3.2.
With bam 0.3.2 I get: "..\bam\src\bam release" - "Error openning 'bam.lua'.

The information for compiling teeworlds is so much outdated that I tried to follow it with bam 0.2. There is better progress ,but still one error at the end:

C:\Users\???? ????????\Documents\Downloads\root-tw-folder\teeworlds-version-src>
..\bam_old\src\bam release
bam: building 'release'
[  1/140] #1 c src/engine/external/zlib/zutil.c
zutil.c
[  2/140] #1 c src/engine/external/zlib/uncompr.c
uncompr.c
[  3/140] #1 c src/engine/external/zlib/trees.c
trees.c
[  4/140] #1 c src/engine/external/zlib/inftrees.c
inftrees.c
[  5/140] #1 c src/engine/external/zlib/inflate.c
inflate.c
[  6/140] #1 c src/engine/external/zlib/inffast.c
inffast.c
[  7/140] #1 c src/engine/external/zlib/infback.c
infback.c
[  8/140] #1 c src/engine/external/zlib/gzio.c
gzio.c
[  9/140] #1 c src/engine/external/zlib/deflate.c
deflate.c
[ 10/140] #1 c src/engine/external/zlib/crc32.c
crc32.c
[ 11/140] #1 c src/engine/external/zlib/compress.c
compress.c
[ 12/140] #1 c src/engine/external/zlib/adler32.c
adler32.c
[ 13/140] #1 c src/base/system.c
system.c
[ 14/140] #1 c src/engine/e_snapshot.c
e_snapshot.c
[ 15/140] #1 c src/engine/e_ringbuffer.c
e_ringbuffer.c
[ 16/140] #1 c src/engine/e_packer.c
e_packer.c
[ 17/140] #1 c src/engine/e_network_server.c
e_network_server.c
[ 18/140] #1 c src/engine/e_network_conn.c
e_network_conn.c
[ 19/140] #1 c src/engine/e_network_client.c
e_network_client.c
[ 20/140] #1 c src/engine/e_network.c
e_network.c
[ 21/140] #1 c src/engine/e_msg.c
e_msg.c
[ 22/140] #1 c src/engine/e_memheap.c
e_memheap.c
[ 23/140] #1 c src/engine/e_map.c
e_map.c
[ 24/140] #1 c src/engine/e_linereader.c
e_linereader.c
[ 25/140] #1 c src/engine/e_keynames.c
e_keynames.c
[ 26/140] #1 c src/engine/e_jobs.c
e_jobs.c
[ 27/140] #1 c src/engine/e_huffman.c
e_huffman.c
[ 28/140] #1 c src/engine/e_engine.c
e_engine.c
[ 29/140] #1 c src/engine/e_demorec.c
e_demorec.c
[ 30/140] #1 c src/engine/e_datafile.c
e_datafile.c
[ 31/140] #1 c src/engine/e_console.c
e_console.c
[ 32/140] #1 c src/engine/e_config.c
e_config.c
[ 33/140] #1 c src/engine/e_compression.c
e_compression.c
[ 34/140] #1 c src/tools/tileset_borderfix.c
tileset_borderfix.c
c:\users\???? ????????\documents\downloads\root-tw-folder\teeworlds-version-src\
src\tools\../engine/external/pnglite/pnglite.c(116) : warning C4028: formal para
meter 1 different from declaration
[ 35/140] #1 link tileset_borderfix.exe
[ 36/140] #1 c src/tools/packetgen.c
packetgen.c
[ 37/140] #1 link packetgen.exe
[ 38/140] #1 c src/tools/map_resave.c
map_resave.c
[ 39/140] #1 link map_resave.exe
[ 40/140] #1 c src/tools/fake_server.c
fake_server.c
[ 41/140] #1 link fake_server.exe
[ 42/140] #1 c src/tools/dilate.c
dilate.c
c:\users\???? ????????\documents\downloads\root-tw-folder\teeworlds-version-src\
src\tools\../engine/external/pnglite/pnglite.c(116) : warning C4028: formal para
meter 1 different from declaration
[ 43/140] #1 link dilate.exe
[ 44/140] #1 c++ src/tools/crapnet.cpp
crapnet.cpp
[ 45/140] #1 link crapnet.exe
[ 46/140] #1 c++ src/mastersrv/mastersrv.cpp
mastersrv.cpp
[ 47/140] #1 link mastersrv.exe
[ 48/140] #1 c++ src/versionsrv/versionsrv.cpp
versionsrv.cpp
[ 49/140] #1 link versionsrv.exe
[ 50/140] #1 server_content_header > src/game/generated/gs_data.hpp
Traceback (most recent call last):
  File "C:\Users\???? ????????\Documents\Downloads\root-tw-folder\teeworlds-vers
ion-src\datasrc\compile.py", line 84, in <module>
    EmitEnum(["SPRITE_%s"%i.name.value.upper() for i in content.container.sprite
s.items], "NUM_SPRITES")
  File "C:\Users\???? ????????\Documents\Downloads\root-tw-folder\teeworlds-vers
ion-src\datasrc\compile.py", line 30, in EmitEnum
    print "\t%s,"%name
IOError: [Errno 9] Bad file descriptor
close failed in file object destructor:
Error in sys.excepthook:

Original exception was:
bam: command returned error: 1
bam: error during build

It links most server files, but I need the client executable. With bam 0.2 I tried teeworlds 0.5.2 and 0.5.1 - same error.
Please help me!

2

Re: [HELP] Error durring compiling

Seems like you've not installed Python or it's not the right version of Python. Check it.

Support Staff - ESL.eu Teeworlds Admin

3 (edited by qwerty1 2010-05-26 15:22:57)

Re: [HELP] Error durring compiling

Python 2.6.5

What must be the right version?

4

Re: [HELP] Error durring compiling

The same error is described (and solved) in this topic.

aka cheesy