1

Topic: I can't compile BAM on linux

Hi all,

I'm running on ubuntu 8.04 for a few month and I met some problems with the compilation of BAM sad
In fact, I followed the compiling section in the support part, but once I start compiling, an enormous list of errors is displayed and the folder bam/src/bam is not created.

I don't know why this happend and i hope you'll be able to help me.

Thanks and sorry for my bad english.

2

Re: I can't compile BAM on linux

Donut wrote:

Hi all,

I'm running on ubuntu 8.04 for a few month and I met some problems with the compilation of BAM sad
In fact, I followed the compiling section in the support part, but once I start compiling, an enormous list of errors is displayed and the folder bam/src/bam is not created.

I don't know why this happend and i hope you'll be able to help me.

hmm tried to run as root ? big_smile
can you make a screen of the error list?

Donut wrote:

sorry for my bad english.

its quite ok wink..

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

3 (edited by Donut 2009-05-01 20:38:54)

Re: I can't compile BAM on linux

Hum, i'm already executing it as root.
The error list is too long, i tried to save it in shell : http://dc104.2shared.com/download/55815 … 6-635919d7

Maybe that's because i need to install packets related to C++ library or something like that big_smile

4

Re: I can't compile BAM on linux

Donut wrote:

Maybe that's because i need to install packets related to C++ library or something like that big_smile

yeah maybe.. but i dont know ..

latest bam and src version?

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

5

Re: I can't compile BAM on linux

Dani wrote:

latest bam and src version?

I use bam 2.0 and 0.4.0 & 0.5.0 src version. I want to make some tests with servers.

6

Re: I can't compile BAM on linux

Did you put the bam folder in the src folder? (sry for stupid question).

Bye.

7 (edited by Donut 2009-05-01 23:18:32)

Re: I can't compile BAM on linux

dinosmoothie wrote:

Did you put the bam folder in the src folder? (sry for stupid question).

The problem isn't with src compiling (yet tongue), but with BAM compilling. When i type in shell :

sudo ./make_unix.sh

It stars compiling but i have around 1000 errors in the shell oO

8

Re: I can't compile BAM on linux

You don't need to be root for compiling.

As i understood it correctly (please translate at least the first errors next time), you're missing math.h.
Make sure you have the package build-essential installed. It should also install libc6-dev which provides math.h.

9

Re: I can't compile BAM on linux

When i build i dont compile bam, i dont need to! I just compile teeworlds.

Bye.

10 (edited by Donut 2009-05-03 16:20:41)

Re: I can't compile BAM on linux

Yggdrasil wrote:

As i understood it correctly (please translate at least the first errors next time), you're missing math.h.
Make sure you have the package build-essential installed. It should also install libc6-dev which provides math.h.

I'm so stupid... I forgot to install this package hmm  Thanks a lot, now it works big_smile

dinosmoothie wrote:

When i build i dont compile bam, i dont need to! I just compile teeworlds.

How can you build teeworlds without compiling bam ? You must compile it frist time, isn't it ?


I tried to compile teeworlds with bam : It works perfectly with 0.5.X but i can't compile 0.4.X. I have this list of errors in shell :

$ ./bam/src/bam server_release
add_job: incorrect number of arguments
stack traceback:
  default.bam(125): DataCompile global
    datafile = 'datasrc/data.ds'
    scriptfile = 'datasrc/server.dts'
    headerfile = 'src/game/generated/gs_data.h'
    sourcefile = 'src/game/generated/gs_data.cpp'
    outputdatafile = 'src/game/generated/gs_internaldata.cpp'
  default.bam(147): (null) 
bam: error during build

(bam is in the same directory as teeworlds src)

11

Re: I can't compile BAM on linux

You need an older version of bam to build 0.4.x. Get it from the SVN history from the time 0.4.x was released

12

Re: I can't compile BAM on linux

I already tried to download and compile an older version of bam (0.1.0) but i have the same problems.
Is there another versions of bam ?

Thanks for your help.

13

Re: I can't compile BAM on linux

Why do you want to build an older version of teeworlds anyway?! Ive only built bam once and it works fine.

Bye.

14

Re: I can't compile BAM on linux

Older than 0.1.0. Check out the bam svn at a date about the same time as 0.4.

15

Re: I can't compile BAM on linux

dinosmoothie wrote:

Why do you want to build an older version of teeworlds anyway?! Ive only built bam once and it works fine.

I'm learning C / C++ and linux, so i use teeworlds as "concrete project". I modify source and i try to understand how it works and "what does what" to progress. So I take a look at all versions.

Somerunce wrote:

Older than 0.1.0. Check out the bam svn at a date about the same time as 0.4.

Where can i find Subversion history ? Do i must looking for it on the internet or is there a place where i can download olders versions ?