1 (edited by bluelightzero 2013-05-20 15:40:38)

Topic: [solved] Problem Compiling server

I am using Ubuntu 13.04 and 12.04 (two computers)
on both computers I have downloaded the source for teeworlds and antempted to compile
(both through apt-get source and instructions from the site)
both seem to just get stuck on "bam -c" and don't give any output.
I have left both for over 2 hours now and still nothing

Please could someone tell me what to expect after this output? or at least any pointers as to what is wrong?

thanks big_smile

2 (edited by KChris 2013-05-14 17:50:46)

Re: [solved] Problem Compiling server

did you do
../bam/bam -c all
from
"Q: How do I get rid of these errors?"
of the FAQ?

i never had such an error, so I never did what was written below it

Little Guide

just install everything below "On Linux" at "Linux / Mac
Setup"
(python alsa (asound) gl glu x11 libsdl freetype)
get bam (bam 0.4.0 https://github.com/downloads/matricks/bam/bam-0.4.0.zip
get the source (i use 0.6.2 http://www.teeworlds.com/files/teeworld … rce.tar.gz
unzip both somewhere
and do what is written below "Compiling bam" and "Compiling teeworlds"

Lazy dev

3

Re: [solved] Problem Compiling server

I followed the guide on website and at the same time on another computer used "apt-get source" to see if it made a differnece.

I have an 'ok' computer but how long should it take to compile?

and when it has what does the output look like?

thanks for reply

4

Re: [solved] Problem Compiling server

compilation shouldn't take too long
you'll have the binaries in the teeworlds source folder

Lazy dev

5

Re: [solved] Problem Compiling server

No Binaries appear in the source folder.

I think that the problem is bam itself, i can type:

../bam/bam whatever

and it will sit there and use cpu.

no errors, no output, no message.

is there an alternative to bam? can i manually compile with g++?

I only need the server.

6

Re: [solved] Problem Compiling server

please tell me exactly what you did and i'll bee able to help better.

as teeworlds is done to be compiled with bam, it can't be done with another tool or manually with g++

Lazy dev

7

Re: [solved] Problem Compiling server

Ofc no output in bam if there are no sources located!
If you already have compiled urself bam binary, put it into the folder with tw sources, near 'src'(NOT into it, NEAR) folder, and only then run this bam binary

8 (edited by bluelightzero 2013-05-20 11:20:38)

Re: [solved] Problem Compiling server

I started by making myself a directory to work in:

cd ~/teeworlds

Downloaded bam-0.4.0.zip and latest teeworlds.zip
extracted them both.

I now have:

bam-0.4.0
bam-0.4.0.zip 
teeworlds-0.6.2
teeworlds-0.6.2.zip
cd bam-0.4.0
sh make_unix.sh
cd ..

I rename 'bam-0.4.0' to 'bam' due to  '../bam/bam' not '../bam-0.4.0/bam'

cd teeworlds-VERSION
../bam/bam release

At this point my first CPU goes to 100% and no output is shown, I can leave this for ages and expect nothing new.

the above steps were performed on two computers both with ubuntu.
they were also performed on teworlds-0.6.2/ 0.6.0 /zCatch

I am at the point to believe that bam doesn’t correctly run on ubuntu,

System 1 specs

os: ubuntu 13.04 (fresh install)
dual core 2.4 ghz Intel pentium 4 HT
1 GB ram

System 2 specs

os: ubuntu 12.04 (upgraded form 11.10)
single core 1.6 ghz Intel
1 GB ram

as a separate test i tried using Ubuntu’s built in apt-get source to retrieve the source code and automate build, same problem.

just as a note, my goal is to make a custom server but I cannot get this thing compiled so I am stuck.

Thank you to all have posted so far.

Edit:

I don't even know how long a build could take, my computer might just be slow and take hours to build =P

9 (edited by Shahan 2013-05-20 14:50:44)

Re: [solved] Problem Compiling server

Maybe i missed smth, but u didn't copy bam binary to teeworlds folder.
So, i made short manual for you. I hope that you already have required packages installed.

Download bam 0.4.0 and teeworlds 0.6.2 sources, extract them, and make sure that you have smth like that(looks like you done it):

shahan@ubu:~/compile tutorial$ 
shahan@ubu:~/compile tutorial$ ls -a
.   bam-0.4.0      teeworlds-0.6.2-source
..  bam-0.4.0.zip  teeworlds-0.6.2-source.tar.gz
shahan@ubu:~/compile tutorial$ cd bam-0.4.0/
shahan@ubu:~/compile tutorial/bam-0.4.0$ ls -a
.         license.txt         make_win32_dmc.bat        scripts
..        make_beos.sh        make_win32_mingw.bat      src
docs      make_unix_clang.sh  make_win32_msvc.bat       tests
examples  make_unix.sh        make_winx64_msvc2005.bat  windows_plugin.def
shahan@ubu:~/compile tutorial/bam-0.4.0$ cd ../teeworlds-0.6.2-source/
shahan@ubu:~/compile tutorial/teeworlds-0.6.2-source$ ls -a
.        configure.lua  docs         objs        scripts
..       data           .gitignore   other       src
bam.lua  datasrc        license.txt  readme.txt  storage.cfg

Then compile bam(looks like you done it):

shahan@ubu:~/compile tutorial/teeworlds-0.6.2-source$ cd ../bam-0.4.0/
shahan@ubu:~/compile tutorial/bam-0.4.0$ ./make_unix.sh

Make sure, that created new file 'bam'(looks like you done it):

shahan@ubu:~/compile tutorial/bam-0.4.0$ ls -a
.         license.txt         make_win32_mingw.bat      tests
..        make_beos.sh        make_win32_msvc.bat       windows_plugin.def
bam       make_unix_clang.sh  make_winx64_msvc2005.bat
docs      make_unix.sh        scripts
examples  make_win32_dmc.bat  src

'bam' is a binary file, now we should copy it to the folder with teeworlds sources(looks like you missed that):

shahan@ubu:~/compile tutorial/bam-0.4.0$ cp -f bam ../teeworlds-0.6.2-source

Check that it was copied successfully:

shahan@ubu:~/compile tutorial/bam-0.4.0$ cd ../teeworlds-0.6.2-source/
shahan@ubu:~/compile tutorial/teeworlds-0.6.2-source$ ls -a
.    bam.lua        datasrc     license.txt  readme.txt  storage.cfg
..   configure.lua  docs        objs         scripts
bam  data           .gitignore  other        src

Done. Now let's compile.
Compile everything:

shahan@ubu:~/compile tutorial/teeworlds-0.6.2-source$ ./bam release

Then you'll have a long output smth like this one: http://pastebin.com/8dzHm71P
Check for new files:

shahan@ubu:~/compile tutorial/teeworlds-0.6.2-source$ ls -a
.              crapnet      license.txt  readme.txt         tileset_borderfix
..             data         map_resave   scripts            tileset_borderrem
bam            datasrc      map_version  src                tileset_borderset
.bam           dilate       mastersrv    storage.cfg        versionsrv
bam.lua        docs         objs         teeworlds
config.lua     fake_server  other        teeworlds_srv
configure.lua  .gitignore   packetgen    tileset_borderadd

That's all.
If you want to compile only client, use

./bam client_release

If you want to compile only server, use

./bam server_release

10

Re: [solved] Problem Compiling server

Thanks for all the help you have given me, I have figured out the problem that I had.

I decided to make a sub folder in '.teeworlds' called mods, apparently bam doen't like hidden folders.

moved everything out to the desktop worked fine big_smile.

Time to mod big_smile

11

Re: [solved] Problem Compiling server

Can you help me?!:( i don't know why i can't play:( i'm new! and i speek german better than english!!

12

Re: [solved] Problem Compiling server

Thread outdated and unrelated to your problem, closed.

Not Luck, Just Magic.