1 (edited by shock 2012-11-18 14:18:06)

Topic: Need Help - Linux Compiler Error

Hey all,

I recently switched to Linux and decided to build a Teeworlds (0.6.1) client... I followed instructions on there, but with my compiler i get the following errors:

[150/167] #1 c src/engine/external/wavpack/wputils.c
sh: 1: cl: not found
bam: 'objs/engine/external/wavpack/wputils.obj' error 32512
[151/167] #1 c src/engine/external/wavpack/bits.c
sh: 1: cl: not found
bam: 'objs/engine/external/wavpack/bits.obj' error 32512
[152/167] #1 c src/engine/external/wavpack/metadata.c
sh: 1: cl: not found
bam: 'objs/engine/external/wavpack/metadata.obj' error 32512
[153/167] #1 c src/engine/external/wavpack/float.c
sh: 1: cl: not found
bam: 'objs/engine/external/wavpack/float.obj' error 32512
bam: error: a build step failed

(I just copied the last few errors)

Please help me...

Thanks,
shock

2

Re: Need Help - Linux Compiler Error

You copied that from Windows, it still has the Windows settings. Delete .bam & config.lua and run bam -c all, then try again.

3

Re: Need Help - Linux Compiler Error

I get:

auto configuration

configuration:
configure.lua:368: no c/c++ compiler found
bam: script error (-t for more detail)

But I found no .bam, I only found config.lua...

Thanks in advance.

4

Re: Need Help - Linux Compiler Error

If you are using Ubuntu, Debian, Kubuntu or any other distribution with apt-get, run this command and then try again:
sudo apt-get build-dep teeworlds

5 (edited by Dune 2012-11-18 15:32:38)

Re: Need Help - Linux Compiler Error

sudo apt-get install g++

on Ubuntu.

Should be yum on Fedora, I'm no expert of that, but I guess you know the command for your packet manager.

Edit: Wups, hi kottizen.

Not Luck, Just Magic.

6 (edited by shock 2012-11-18 19:44:22)

Re: Need Help - Linux Compiler Error

It doesn't work... here's what my terminal says:

[129/149] #1 c++ src/engine/client/graphics.cpp
src/engine/client/graphics.cpp:7:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/graphics.o' error 256
[130/149] #1 c++ src/engine/client/client.cpp
[131/149] #1 c++ src/engine/client/friends.cpp
[132/149] #1 c++ src/engine/client/sound.cpp
src/engine/client/sound.cpp:8:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/sound.o' error 256
[133/149] #1 c++ src/engine/client/text.cpp
src/engine/client/text.cpp:16:20: fatal error: GL/gl.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/text.o' error 256
[134/149] #1 c++ src/engine/client/serverbrowser.cpp
[135/149] #1 c++ src/engine/client/input.cpp
src/engine/client/input.cpp:3:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/input.o' error 256

Please help...

7

Re: Need Help - Linux Compiler Error

sudo apt-get install libsdl-dev

(Just a guess.)

8 (edited by shock 2012-11-19 06:45:59)

Re: Need Help - Linux Compiler Error

No work still sad

shock@00shock00 ~/Desktop/Teeworlds $-Client!/$ Client Source $ sudo bam release[sudo] password for shock:
bam: warning: cache file is invalid, generating new one
[1/5] #1 c++ src/engine/client/graphics.cpp
src/engine/client/graphics.cpp:7:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/graphics.o' error 256
[2/5] #1 c++ src/engine/client/sound.cpp
src/engine/client/sound.cpp:8:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/sound.o' error 256
[3/5] #1 c++ src/engine/client/text.cpp
src/engine/client/text.cpp:16:20: fatal error: GL/gl.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/text.o' error 256
[4/5] #1 c++ src/engine/client/input.cpp
src/engine/client/input.cpp:3:17: fatal error: SDL.h: No such file or directory
compilation terminated.
bam: 'objs/engine/client/input.o' error 256
bam: error: a build step failed

Does anyone maybe have a copy of XXLDDRace source, Normal source, or DDRace source (with bam compiled) that I can copy from them??

Thanks

9 (edited by Niki49 2012-11-29 14:53:05)

Re: Need Help - Linux Compiler Error

sudo apt-get install libsdl1.2-dev libfreetype6-dev zlib1g-dev