Xonotic Forums
[NEEDS INFO] Compiling Xonotic from GIT-Repo under Windows. - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [NEEDS INFO] Compiling Xonotic from GIT-Repo under Windows. (/showthread.php?tid=304)



Compiling Xonotic from GIT-Repo under Windows. - ArgeadGER - 04-18-2010

Im trying to build Xonotic under Windows.
I`ve already downloaded the GIT-repo and everything, but I cant compile, as make isn´t a windows command.

Downloading make for Windows also didnt help much, I got the error "Unexpected token in "nexuiz""

Any Ideas? If someone explains it to me, Id also be willing to wright a guide and edit it into this post.

Edit: I set the path to the minigw and makeforwindows into the PATH Variable. Now I´m getting this error:
$ ./all compile
+ cd /f/Program Files (x86)/Xonotic/fteqcc
+ make
c:\X\GnuWin32\bin\make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr
= 0x4227d3)

Im using the GIT Bash.


RE: Compiling Xonotic from GIT-Repo under Windows. - ArgeadGER - 04-23-2010

*push*

somebody on this forum has to know how to compile on windows, could you help please?


RE: Compiling Xonotic from GIT-Repo under Windows. - Silverburn - 04-25-2010

Whether it's SVN or GIT, it each time means you get an amount of data of the net and put it on your computer.

With the old SVN version, there was a command-line script that did it all for you.
This was the code in it:

Code:
@echo off echo. echo Setting up environment... echo Long path name: %CD% for %%f in ("%CD%") do set BASE=%%~sf set PATH=%BASE%\bin;%BASE%\msys\bin;%BASE%\unxutils\usr\local\wbin;%BASE%\svn-bin;%BASE%\SDL\bin cd %BASE% echo Short path name: %BASE% if exist run-wgl.bat ren run-wgl.bat run-wgl.dontrun if exist run-sdl.bat ren run-sdl.bat run-sdl.dontrun echo. echo Downloading fteqcc... call getsvn https://fteqw.svn.sourceforge.net/svnroot/fteqw/trunk/engine/qclib fteqcc if errorlevel 1 goto bork echo. echo Building fteqcc... cd fteqcc make if errorlevel 1 goto bork copy /b fteqcc.bin fteqcc.exe cd .. set PATH=%PATH%;%BASE%/fteqcc echo. echo Downloading DarkPlaces... call getsvn svn://svn.icculus.org/twilight/trunk/darkplaces/ darkplaces if errorlevel 1 goto bork echo. echo Building DarkPlaces... cd darkplaces make debug DP_MAKE_TARGET=mingw SDL_PREFIX="../SDL" CC=gcc if errorlevel 1 goto bork cd .. echo. echo Downloading Nexuiz... call getsvn svn://svn.icculus.org/nexuiz/branches/nexuiz-2.0/ nexuiz :call getsvn svn://svn.icculus.org/nexuiz/trunk/ nexuiz if errorlevel 1 goto bork echo. echo Building Nexuiz... cd nexuiz\data make FTEQCC="fteqcc" NEX_BUILDSYSTEM=1 clean all if errorlevel 1 goto bork cd ..\.. ren run-wgl.dontrun run-wgl.bat ren run-sdl.dontrun run-sdl.bat echo. echo Done. You can double click run-wgl.bat or run-sdl.bat to start the game now! goto end :bork echo An error has occurred (see above). :end pause

First it gets fteqcc and sets a PATH variable for it, then it gets darkplaces and does a "make debug". Then it gets the SVN repo. Then it uses fteqcc to build to whole thing.

Then you can run it via a .bat file that looks like this:

Code:
@echo off cd nexuiz set PATH=..\SDL\bin;misc\buildfiles\w32;%PATH% ..\darkplaces\darkplaces-sdl -nexuiz -mygames -condebug +cvar_check_default bypass cd ..

So, someone with some more knowledge of commandline on windows than me should be able to do this.