Compiling Teeworlds

Request help for teeworlds-related subjects (mapping, servers, ..).
For client issues, see our repositories (https://github.com/ddnet/ddnet/issues).
Post Reply
User avatar
TwItCh
Posts: 43
Joined: Sat Jun 14, 2014 12:49 am
Player profile: http://ddnet.org/players/TwItCh/

Compiling Teeworlds

Post by TwItCh »

When i try to compile teeworlds with bam using (c:\bam\bam release) it says no c/c++ compiler found but ive installed python and did both these steps :

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

I did this from https://www.teeworlds.com/?page=docs&wi ... everything
Peace, Love & Happiness /(^_^)\
User avatar
Alvin Risk
Posts: 440
Joined: Sat Oct 04, 2014 6:27 am
Player profile: http://ddnet.org/players/Alvin-32-Risk
Mapper profile: http://ddnet.tw/mappers/Alvin-32-Risk
Website: https://vk.com/ms_zn
YouTube: user/z2mex

Re: Compiling Teeworlds

Post by Alvin Risk »

Maybe u need Visual Studio 9 ?
Ya ebu tvou mamashu.
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Compiling Teeworlds

Post by Soreu »

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/). (for Teeworlds 0.5.2 and earlier the 2.x version, not 3.x)
3. Download and unzip bam (0.2.0 for Teeworlds 0.5.2 and earlier, 0.4.0 for Teeworlds 0.6.0 and later)
https://www.teeworlds.com/?page=docs&wi ... everything
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
User avatar
Fifi
Posts: 298
Joined: Fri Jan 23, 2015 11:57 pm
Location: Cracow, Poland
Player profile: http://ddnet.org/players/Fifi/

Re: Compiling Teeworlds

Post by Fifi »

TwItCh:
Maybe you forgot to install Visual Studio or its path is now different, because you have a newer version. Check if the directory from

Code: Select all

``` %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
exists and if the Visual Studio wasn't installed in different place.


If it won't help:
Maybe try using the MinGW version. You can install it using https://sourceforge.net/projects/mingw/ ... t/download by choosing MSYS and GCC for instalation and applying changes from the menu. Then you have to add it to your user (not system) PATH, as it's explained on its webpage (http://www.mingw.org/wiki/Getting_Started, section "Environment Settings") and correct the paths in bam's make_win32_mingw.bat - the last line should only compile this: "src/*.c src/lua/*.c".
Image
User avatar
Soreu
Posts: 1371
Joined: Fri Aug 22, 2014 2:47 pm
Location: Poland
Player profile: http://ddnet.org/players/Soreu
Mapper profile: http://ddnet.tw/mappers/Soreu
Clan: GSP

Re: Compiling Teeworlds

Post by Soreu »

you probably installed Visual studio 10.0, not 9.0 - try it

Code: Select all

%comspec% /k ""C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"" x86
„Vince te ipsum”

         :3             |     GSP Founder     Honorary iMTGmember
Graphic-guy     |     Website & Forum Team Leader (Ex)     [ToP] Leader (Dead)

Last truly active: Sun Aug 28, 2016 11:13 pm - having great DDNet in both memory and heart
BeaR
Posts: 54
Joined: Fri May 30, 2014 10:18 am
Player profile: http://ddnet.org/players/BeaR/

Re: Compiling Teeworlds

Post by BeaR »

Code: Select all

@echo off
if exist "%VCINSTALLDIR%" (
	goto end
)

if defined VS120COMNTOOLS (
	call set VSCOMN=%%VS120COMNTOOLS%%
	goto setup_environment
)

if defined VS110COMNTOOLS (
	call set VSCOMN=%%VS110COMNTOOLS%%
	goto setup_environment
)

if defined VS100COMNTOOLS (
	call set VSCOMN=%%VS100COMNTOOLS%%
	goto setup_environment
)

if defined VS90COMNTOOLS" (
	call set VSPATH=%%VS90COMNTOOLS%%
	goto setup_environment
)

echo Missing visual studio

:setup_environment
if exist "%VSCOMN%..\..\vc\vcvarsall.bat" (
	set arch = %1
	call "%VSCOMN%..\..\vc\vcvarsall.bat" %1
	echo Setup build environment.. Done!
	goto end
)

echo Failure on setting up build environment

:end
Usually using this batch script to setup the visual studio build environenment, works pretty fine with default installations. You can pass the arch as parameter on calling the script.

You can also simply call

Code: Select all

call "%VC120COMNTOOLS%..\vc\vcvarsall.bat" x86
(replace VC120COMNTOOLS with the path variable of your version, 120 == VS2013, 110 == VS2012, 100 = VS2010, 90 == VS2008 ..)
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 80 guests