1 (edited by juancarlos.bodoque 2009-12-22 20:13:34)

Topic: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

OS: Ubuntu 9.04
Version: 0.5.2

While trying to build with bam i get the following output

 vio@vio-desktop:~/teeworlds-0.5.2-src$ ../bam-0.2.0/src/bam release
bam: building 'release'
[ 1/45] #1 c src/engine/client/ec_snd.c
src/engine/client/ec_snd.c:7:17: error: SDL.h: No existe el fichero ó directorio
src/engine/client/ec_snd.c:244: error: expected declaration specifiers or ‘...’ before ‘Uint8’
src/engine/client/ec_snd.c: En la función ‘sdlcallback’:
src/engine/client/ec_snd.c:246: error: ‘stream’ no se declaró aquí (primer uso en esta función)
src/engine/client/ec_snd.c:246: error: (Cada identificador no declarado solamente se reporta una vez
src/engine/client/ec_snd.c:246: error: para cada funcion en la que aparece.)
src/engine/client/ec_snd.c: En la función ‘snd_init’:
src/engine/client/ec_snd.c:251: error: ‘SDL_AudioSpec’ no se declaró aquí (primer uso en esta función)
src/engine/client/ec_snd.c:251: error: expected ‘;’ before ‘format’
src/engine/client/ec_snd.c:261: error: ‘format’ no se declaró aquí (primer uso en esta función)
src/engine/client/ec_snd.c:262: error: ‘AUDIO_S16’ no se declaró aquí (primer uso en esta función)
src/engine/client/ec_snd.c:269: aviso: declaración implícita de la función ‘SDL_OpenAudio’
src/engine/client/ec_snd.c:271: aviso: declaración implícita de la función ‘SDL_GetError’
src/engine/client/ec_snd.c:277: aviso: declaración implícita de la función ‘SDL_PauseAudio’
src/engine/client/ec_snd.c: En la función ‘snd_shutdown’:
src/engine/client/ec_snd.c:304: aviso: declaración implícita de la función ‘SDL_CloseAudio’
bam: command returned error: 256
bam: error during build 

I already tried reinstalling libsdl1.2-all and libsdl1.2-dev but it didn't help.

Any idea?

Would appreciate any help.

edit:

ok, here's the same code in english

 vio@vio-desktop:~/teeworlds-0.5.2-src$ LANG=english ../bam-0.2.0/src/bam release
bam: building 'release'
[ 1/45] #1 c src/engine/client/ec_snd.c
src/engine/client/ec_snd.c:7:17: error: SDL.h: No such file or directory
src/engine/client/ec_snd.c:244: error: expected declaration specifiers or '...' before 'Uint8'
src/engine/client/ec_snd.c: In function 'sdlcallback':
src/engine/client/ec_snd.c:246: error: 'stream' undeclared (first use in this function)
src/engine/client/ec_snd.c:246: error: (Each undeclared identifier is reported only once
src/engine/client/ec_snd.c:246: error: for each function it appears in.)
src/engine/client/ec_snd.c: In function 'snd_init':
src/engine/client/ec_snd.c:251: error: 'SDL_AudioSpec' undeclared (first use in this function)
src/engine/client/ec_snd.c:251: error: expected ';' before 'format'
src/engine/client/ec_snd.c:261: error: 'format' undeclared (first use in this function)
src/engine/client/ec_snd.c:262: error: 'AUDIO_S16' undeclared (first use in this function)
src/engine/client/ec_snd.c:269: warning: implicit declaration of function 'SDL_OpenAudio'
src/engine/client/ec_snd.c:271: warning: implicit declaration of function 'SDL_GetError'
src/engine/client/ec_snd.c:277: warning: implicit declaration of function 'SDL_PauseAudio'
src/engine/client/ec_snd.c: In function 'snd_shutdown':
src/engine/client/ec_snd.c:304: warning: implicit declaration of function 'SDL_CloseAudio'
bam: command returned error: 256
bam: error during build 

2

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

Install the SDL dev files.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

3

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

should that be the libsdl1.2-dev package?

cause I already installed it

thx anyway

4

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

is in src/engine/client/ec_snd.c the line #include "SDL.h" ?

5

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

yep

7th line

6

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

Did you install the libsdl1.2-dev after trying to compile teeworlds and then retry?
If yes, I think bam looked for the SDL files the fisrt time, didn't find them and saved a null path for SDL in its config.
I dont remember if the bam -c all removes the config file. If not, delete it by hand (name config.bam or something like this) and retry to compile.

spl0k, aka Al`. From the HuH clan.
Noobing pwns since 01/01/1970.
TeeViewer - TeeComp

7

Re: [SOLVED] Problems compilIng in Ubuntu Jaunty Jackalope

thx, splOK!

that did the trick!