1 (edited by TewiInaba 2015-09-12 11:44:06)

Topic: Can't compile 0.7

If i try bam target=release game:

[1/6] #1 c++ src/engine/client/backend_sdl.cpp
src/engine/client/backend_sdl.cpp(2) : fatal error C1083: Cannot open include fi
le: 'SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/backend_sdl.obj' error 2
[2/6] #1 c++ src/engine/client/client.cpp
src/engine/client/client.cpp(52) : fatal error C1083: Cannot open include file:
'SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/client.obj' error 2
[3/6] #1 c++ src/engine/client/input.cpp
src/engine/client/input.cpp(3) : fatal error C1083: Cannot open include file: 'S
DL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/input.obj' error 2
[4/6] #1 c++ src/engine/client/sound.cpp
src/engine/client/sound.cpp(11) : fatal error C1083: Cannot open include file: '
SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/sound.obj' error 2
[5/6] #1 c++ src/engine/client/text.cpp
src/engine/client/text.cpp(13) : fatal error C1083: Cannot open include file: 'f
t2build.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/text.obj' error 2
bam: error: a build step failed

if i try bam release

bam: target 'release' not found

if i try bam -s bam.lua

[1/6] #1 c++ src/engine/client/backend_sdl.cpp
src/engine/client/backend_sdl.cpp(2) : fatal error C1083: Cannot open include fi
le: 'SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/backend_sdl.obj' error 2
[2/6] #1 c++ src/engine/client/client.cpp
src/engine/client/client.cpp(52) : fatal error C1083: Cannot open include file:
'SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/client.obj' error 2
[3/6] #1 c++ src/engine/client/input.cpp
src/engine/client/input.cpp(3) : fatal error C1083: Cannot open include file: 'S
DL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/input.obj' error 2
[4/6] #1 c++ src/engine/client/sound.cpp
src/engine/client/sound.cpp(11) : fatal error C1083: Cannot open include file: '
SDL.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/sound.obj' error 2
[5/6] #1 c++ src/engine/client/text.cpp
src/engine/client/text.cpp(13) : fatal error C1083: Cannot open include file: 'f
t2build.h': No such file or directory
bam: 'build/x86/debug/objs/engine/client/text.obj' error 2
bam: error: a build step failed

so, how can I compile 0.7? or this github is wrong? if so, where can i find compiled 0.7 to try it out? thanks.
also, win10, visual studio 10, bam 0.4.0 and python 2.7.10

2

Re: Can't compile 0.7

Try `bam -c config`.

3 (edited by TewiInaba 2015-09-12 17:35:08)

Re: Can't compile 0.7

upd:
well, i tried downloading freetype2 and sdl2
extracted to ../other/freetype and sdl2 to ../other/sdl
now there is

[628/628] #1 link build/x86/debug/teeworlds.exe
LINK : fatal error LNK1181: cannot open input file 'freetype.lib'
bam: 'build/x86/debug/teeworlds.exe' error 1181
bam: error: a build step failed

how can I fix it?

4

Re: Can't compile 0.7

I have same problem

heinrich5991 wrote:

Try `bam -c config`.

Didn't help.

E' un Sole Nero!

5

Re: Can't compile 0.7

Same problem, cant compile 0.7 on windows

I will be banned if I troll again ...

6

Re: Can't compile 0.7

https://github.com/DevoteeTW/teeworlds/tree/0.7-fix

Added SDL2 and freetype so you can compile on windows.
You need to copy SDL2.dll and freetype.dll manually from other/sdl/lib/ and other/freetype/lib/.

7

Re: Can't compile 0.7

Snoooop wrote:

I have same problem

heinrich5991 wrote:

Try `bam -c config`.

Didn't help.

Which problem do you have? The first one or the second one?

8

Re: Can't compile 0.7

heinrich5991 wrote:
Snoooop wrote:

I have same problem

heinrich5991 wrote:

Try `bam -c config`.

Didn't help.

Which problem do you have? The first one or the second one?

Ehm.. there is only one problem. SDL2 and freetype are not included in the official repo (why?!)!

I will be banned if I troll again ...

9

Re: Can't compile 0.7

Deepfinder wrote:

Ehm.. there is only one problem. SDL2 and freetype are not included in the official repo (why?!)!

I think they were removed from the repository because you're usually not supposed to check in binaries – but if you want to have an automatic downloading script, you'd need to ask Oy about this, he says the developer can just download the libraries themselves.

10

Re: Can't compile 0.7

heinrich5991 wrote:
Deepfinder wrote:

Ehm.. there is only one problem. SDL2 and freetype are not included in the official repo (why?!)!

I think they were removed from the repository because you're usually not supposed to check in binaries – but if you want to have an automatic downloading script, you'd need to ask Oy about this, he says the developer can just download the libraries themselves.

Having to figure it out and download that separately makes it much more difficult to build 0.7 as a newcomer.
There should at least be a script or something imo.

Not Luck, Just Magic.

11

Re: Can't compile 0.7

Would someone care to clarify what steps should be taken to compile the sources now?
After trying Devotee's fix, that seems to include freetype and sdl2, I still get one other error:

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Since I have always been able to compile the sources before, even earlier versions of 0.7, I don't have a clue of what's wrong. It probably doesn't even have anything to do with those dlls. sad

Dune wrote:

Having to figure it out and download that separately makes it much more difficult to build 0.7 as a newcomer.
There should at least be a script or something imo.

check out these maps: infiltrate - choco - dustycloud

12

Re: Can't compile 0.7

Slinack wrote:

Would someone care to clarify what steps should be taken to compile the sources now?
After trying Devotee's fix, that seems to include freetype and sdl2, I still get one other error:

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

Since I have always been able to compile the sources before, even earlier versions of 0.7, I don't have a clue of what's wrong. It probably doesn't even have anything to do with those dlls. sad

Could you try running `bam -c all`?

13

Re: Can't compile 0.7

Slinack wrote:
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

There is a simple solution:
Just remove or rename file "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cvtres.exe"
Here is explanation why is it so: http://stackoverflow.com/a/14144713/5720164
Then run "bam -c all" and try to compile again.

14

Re: Can't compile 0.7

hahaha thanks, milk!

I figured it was something related to Visual Studio and uninstalled it... And just then realized the 2015 release has 12GB lol

check out these maps: infiltrate - choco - dustycloud