1 (edited by DarkWiiPlayer 2011-06-07 21:40:30)

Topic: Can't compile teeworlds :(

Hello world!
I want to make some teeworlds mods (Not upload them, just to learn some C++ (learning by doing smile)) but i can't compile the sourcecode.
I have read the tutorial, but it doesn't work. At least not that way.
Can you help me? Is there another way to compile it?


Edit:
What i did is this:
1. Download and install Visual C/C++ Express
2. Download and install Python
3. Download and unzip bam
4. Download and unzip teeworlds

Compiling bam

Run in cmd (start>run>cmd):
cd bam
make_win32_msvc.bat
cd ..

Compiling teeworlds

Run in cmd (start->run->cmd):
%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86

(An this is where the problems start)
What does cd teeworlds-version-src  mean? backus naur form? no?
I guess it's the path to the teeworlds sourcecode...
Problem solved!
Problem 2 (The real problem):
..\bam\bam release
That just doesn't work. The bam folder doesn't have to be in the same folder as the courcecode folder. And the tutorial doesn't say anything like that. It just says: "Download and unzip bam" and "Download and unzip teeworlds"
And after i've copyed the bam and teeworlds folders to the desktop, and when i try again it says "no c++ compiler found"

2

Re: Can't compile teeworlds :(

  • cd is the command to Change the Directory of the console.

  • You need to either put the bam folder near the teeworlds source or change "..\bam\bam release" to reach bam. Youre right though, the tut doesn't say so.

  • Change "%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86" to the actual path to your visual c++. Maybe you are using version 10 or its in a different directory.

I hope this solves some of your questions.

void ..

3

Re: Can't compile teeworlds :(

I know what CD is lol
I'm just saying that the tutorial could use the backus naur form, and change
"teeworlds-version-src" to "teeworlds-<version>-src". That would be easyer to understand.

Anyway, now it words. I don't know what i did different this time, but it's working.
But thank you anyway.