1

Topic: Compile under Linux

When i compile i have error.
“SDL.h” no such file or directory found' when compiling

2

Re: Compile under Linux

Which Teeworlds version are you trying to compile?

Not Luck, Just Magic.

3

Re: Compile under Linux

Dune wrote:

Which Teeworlds version are you trying to compile?

0.6.3

4

Re: Compile under Linux

Try executing `bam -c config` and trying again.

5

Re: Compile under Linux

I had to install libsdl1.2-dev.

A is for Apple.

6

Re: Compile under Linux

Oblique. wrote:

I had to install libsdl1.2-dev.

I already install it.

heinrich5991. wrote:

Try executing `bam -c config` and trying again.

I try "bam -c config" but command not found,
I try "./bam -c config" but i have this error : "bam: error opening 'bam.lua'

7

Re: Compile under Linux

wrong section ? (Support)

Agreed, moved topic. // Dune

There are three kinds of lies: lies, damned lies, and benchmarks.

8 (edited by 2015-11-17 22:55:17)

Re: Compile under Linux

I change OS to ubuntu 15 and now i have this problem:

/bam client_release
[1/1] #1 link teeworlds
objs/game/client/components/menus.o: In function `CMenus::DoEditBox(void*, CUIRect const*, char*, unsigned int, float, float*, bool, int)':
menus.cpp:(.text+0x123f): undefined reference to `CLineInput::Manipulate(IInput::CEvent, char*, int, int, int*, int*, int*)'
objs/game/editor/editor.o: In function `CEditor::DoEditBox(void*, CUIRect const*, char*, unsigned int, float, float*, bool, int)':
editor.cpp:(.text+0x2237): undefined reference to `CLineInput::Manipulate(IInput::CEvent, char*, int, int, int*, int*, int*)'
objs/game/editor/popups.o: In function `CEditor::PopupGroup(CEditor*, CUIRect)':
popups.cpp:(.text+0x93f): undefined reference to `CLayerSwitch::CLayerSwitch(int, int)'
popups.cpp:(.text+0x951): undefined reference to `CEditorMap::MakeSwitchLayer(CLayer*)'
popups.cpp:(.text+0xb63): undefined reference to `CLayerTele::CLayerTele(int, int)'
popups.cpp:(.text+0xb75): undefined reference to `CEditorMap::MakeTeleLayer(CLayer*)'
popups.cpp:(.text+0x11f4): undefined reference to `CLayerSpeedup::CLayerSpeedup(int, int)'
popups.cpp:(.text+0x1206): undefined reference to `CEditorMap::MakeSpeedupLayer(CLayer*)'
popups.cpp:(.text+0x130b): undefined reference to `CLayerFront::CLayerFront(int, int)'
popups.cpp:(.text+0x131d): undefined reference to `CEditorMap::MakeFrontLayer(CLayer*)'
collect2: error: ld returned 1 exit status
bam: 'teeworlds' error 256
bam: error: a build step failed

bam -c config:

AUTO  compiler             gcc
AUTO  stackprotector       yes
AUTO  minmacosxsdk         no
AUTO  macosxppc            no
AUTO  zlib                 (in system path)
AUTO  sdl                  using sdl-config
AUTO  freetype             using freetype-config

TeeWrorlds version - 0.6.3

9

Re: Compile under Linux

Try `bam -c all`.

10

Re: Compile under Linux

oh, ty now done! smile