Compiling Teeworlds
Compiling Teeworlds
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
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 /(^_^)\
- 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
- 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
https://www.teeworlds.com/?page=docs&wi ... everything1.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)
„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
- Fifi
- Posts: 298
- Joined: Fri Jan 23, 2015 11:57 pm
- Location: Cracow, Poland
- Player profile: http://ddnet.org/players/Fifi/
Re: Compiling Teeworlds
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
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".
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
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".
- 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
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
Re: Compiling Teeworlds
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
You can also simply call
Code: Select all
call "%VC120COMNTOOLS%..\vc\vcvarsall.bat" x86
Who is online
Users browsing this forum: Amazon [Bot] and 80 guests