1

Topic: Compiling 0.5.0 on Windows - Help

Hey,
I'm having trouble getting to the "compiling" stage...

I've followed the steps described at the Wiki -> http://teeworlds.com/?page=docs&wik … Everything

I did:

1. Download and install Visual C/C++ Express (http://www.microsoft.com/express/download/default.aspx)
2. Download and install Python (http://www.python.org/download/). the 2.x version, not 3.x
3. Download and unzip bam 0.2.0 (http://teeworlds.com/trac/bam/browser/r … format=raw)
4. Download and unzip teeworlds (http://www.teeworlds.com/?page=downloads)

Then I did what it said under "Compiling bam", but I think something went wrong there, here is the output:

E:\Teeworlds\bam-0.2.0>make_win32_msvc.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
txt2c.c
lapi.c
lauxlib.c
lbaselib.c
lcode.c
ldblib.c
ldebug.c
ldo.c
ldump.c
lfunc.c
lgc.c
linit.c
liolib.c
llex.c
lmathlib.c
lmem.c
loadlib.c
src/lua/loadlib.c(92) : fatal error C1083: Cannot open include file: 'windows.h'
: No such file or directory
lobject.c
lopcodes.c
loslib.c
lparser.c
Generating Code...
Compiling...
lstate.c
lstring.c
lstrlib.c
ltable.c
ltablib.c
ltm.c
lundump.c
lvm.c
lzio.c
print.c
context.c
dep_cpp.c
main.c
e:\teeworlds\bam-0.2.0\src\internal_base.h(1772) : warning C4129: 'd' : unrecogn
ized character escape sequence
e:\teeworlds\bam-0.2.0\src\internal_base.h(1773) : warning C4129: 'd' : unrecogn
ized character escape sequence
src/main.c(1077) : warning C4090: 'function' : different 'const' qualifiers
mem.c
node.c
path.c
support.c
src/support.c(19) : fatal error C1083: Cannot open include file: 'windows.h': No
such file or directory
Generating Code...
E:\Teeworlds\bam-0.2.0>

Then the next step is to:

Run in cmd (start->run->cmd):

%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86

And when I do that:

C:\Documents and Settings\Eca>%comspec% /k ""C:\Program Files\Microsoft Visual S
tudio 9.0\VC\vcvarsall.bat"" x86
'"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"' is not recogni
zed as an internal or external command,
operable program or batch file.

There simply is not such file "vcvarsall.bat" in the VC folder.

Any help is much appreciated!

2

Re: Compiling 0.5.0 on Windows - Help

Seems like you haven't installed Visual C++ express edition correctly. I've tested this setup on 3 computers and it worked without any problems (1 week ago).

3

Re: Compiling 0.5.0 on Windows - Help

Thanks for the quick reply Somerunce!

I'm an idiot -- I installed the VB IDE instead of the C++ IDE.

It works now smile

But I've got one question: Is it possible to make a batch file which will compile everything?

Right now I've got:

echo ..\bam-0.2.0\src\bam release
%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86

So I have to copy and paste "..\bam-0.2.0\src\bam release", which is a bit tedious. Is there a way to do it all automatically?

Cheers!

4

Re: Compiling 0.5.0 on Windows - Help

Modify the vcvarsall.bat-file that you've included in the .bat-file and but the command there. Not the nicest solution, but it works.

5

Re: Compiling 0.5.0 on Windows - Help

Somerunce wrote:

Modify the vcvarsall.bat-file that you've included in the .bat-file and but the command there. Not the nicest solution, but it works.

Yeah, not the nicest solution, but it is a solution!

Thanks a lot big_smile