1 (edited by DarkEVolution268 2010-11-28 16:10:01)

Topic: Compiling Problem

Hello,

sry for my bad englisch.

I have a Problem.

I do

cd C:\Users\MyPc\Desktop\Programmieren\bam-0.2.0

than

make_win32_msvc.bat

but than come the error

You need Microsoft Visual Studio 8 or 9 installed

i have version 10.0

than i do

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

than

cd C:\Users\MyPc\Desktop\Programmieren\teeworlds

and

..\bam\src\bam release

but the error is

C:\Users\MyPc\Desktop\Programmieren\teeworlds>..\bam\src\bam release
Das System kann den angegebenen Pfad nicht finden.

2 (edited by jxsl13 2010-11-28 16:25:29)

Re: Compiling Problem

thats the problem i got when i tried to compile teeworlds with the visual c++ express 2010 version, so i opened the following topic : Visual Studio 2008... Topic

Teeworlds [ friends ] clan
Some YouTube Stuff about Teeworlds

3

Re: Compiling Problem

Just replace the 09 in the batch file with a 10 or use this:
@echo off
@echo === Setup by BotoX ===
ping -n 2 localhost >nul
color 0a

:: Check if we already have the tools in the environment
if exist "%VCINSTALLDIR%" (
    goto compile
)


:: Check for Visual Studio
if exist "%VS100COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto set_env
)
if exist "%VS90COMNTOOLS%" (
    set VSPATH="%VS90COMNTOOLS%"
    goto set_env
)
if exist "%VS80COMNTOOLS%" (
    set VSPATH="%VS80COMNTOOLS%"
    goto set_env
)

echo You need Microsoft Visual Studio 8, 9 or 10 installed
pause
exit

:: Setup the environment
:set_env
call %VSPATH%vsvars32.bat
ping -n 1 localhost >nul

::Check for bam
if exist "../bam-0.4.0/bam.exe" (
    set BAM="../bam-0.4.0/bam.exe"
    goto setbampar
)
if exist "../bam/bam.exe" (
    set BAM="../bam/bam.exe"
    goto compile
)
if exist "./bam.exe" (
    set BAM="./bam.exe"
    goto compile
)
if exist "../bam/src/bam.exe" (
    set BAM="../bam/src/bam.exe"
    goto compile
)
if exist "../bam-0.2.0/src/bam.exe" (
    set BAM="../bam-0.2.0/src/bam.exe"
    goto compile
)
else goto nobam
pause

:nobam
cls
echo.
echo [ERROR]No bam found!
echo.
pause >nul
exit

:: Compile
:compile
@echo === Building Teeworlds Server===
@call %BAM% server_release
@echo === Finished ===
echo.

:: Ending/Or not big_smile
echo Press any Key to Compile again...
pause >nul
color 0c
echo === Again big_smile ===
ping -n 2 localhost >nul
color 0a
cls
goto compile
exit

Paste the whole code in a .bat file

4 (edited by Sushi Tee 2010-11-30 00:02:05)

Re: Compiling Problem

Botox: the problem is... he cant compile bam but its pretty much the same problem.

open the "make_win32_msvc.bat" with any editor u like... u will find the following code:

@echo off

:: Check for Visual Studio
if exist "%VS90COMNTOOLS%" (
    set VSPATH="%VS90COMNTOOLS%"
    goto compile
)
if exist "%VS80COMNTOOLS%" (
    set VSPATH="%VS80COMNTOOLS%"
    goto compile
)

echo You need Microsoft Visual Studio 8 or 9 installed
pause
exit

:compile

call %VSPATH%vsvars32.bat

@cl /D_CRT_SECURE_NO_DEPRECATE /O2 /nologo src/tools/txt2c.c /Fesrc/tools/txt2c.exe
@src\tools\txt2c src\base.bam src\driver_gcc.bam src\driver_cl.bam > src\internal_base.h
@cl /D_CRT_SECURE_NO_DEPRECATE /W3 /TC /O2 /nologo /I src/lua src/lua/*.c src/*.c /Fesrc/bam.exe
@del *.obj

u need to change it like this:

@echo off

:: Check for Visual Studio
if exist "%VS100COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto compile
)
if exist "%VS90COMNTOOLS%" (
    set VSPATH="%VS90COMNTOOLS%"
    goto compile
)
if exist "%VS80COMNTOOLS%" (
    set VSPATH="%VS80COMNTOOLS%"
    goto compile
)

echo You need Microsoft Visual Studio 8, 9 or 10 installed
pause
exit

:compile

call %VSPATH%vsvars32.bat

@cl /D_CRT_SECURE_NO_DEPRECATE /O2 /nologo src/tools/txt2c.c /Fesrc/tools/txt2c.exe
@src\tools\txt2c src\base.bam src\driver_gcc.bam src\driver_cl.bam > src\internal_base.h
@cl /D_CRT_SECURE_NO_DEPRECATE /W3 /TC /O2 /nologo /I src/lua src/lua/*.c src/*.c /Fesrc/bam.exe
@del *.obj

to show u whats new in this:

if exist "%VS100COMNTOOLS%" (
    set VSPATH="%VS100COMNTOOLS%"
    goto compile
)

after u changed the file bam should compile just fine with vc++ 2010
no need to use an older version of vc++

uptee - a simple web interface for hosting and maintaining teeworlds servers
teerace - a website gathering results of trusted Race-mod servers providing global ranking and statistics
*gV* rox ^^

5

Re: Compiling Problem

Yes Suhi is right, sorry BotoX tongue

I think someone can close here