]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - Outdated_Compiling_In_Windows.textile
(Commit created by redmine exporter script from page "Dpmodel" version 4)
[xonotic/xonotic.wiki.git] / Outdated_Compiling_In_Windows.textile
index 17af54cafa6805a47dd64e8d8a82fc658e8ceda2..75a2a3e581d1ebe4f2b9cc318765f933f34de204 100644 (file)
@@ -2,6 +2,8 @@ h1. Compiling in Windows
 
 {{>toc}}
 
+*THIS IS OUTDATED*: the versions of MinGW and MSYS are not recent enough to compile Xonotic. *Do not use xonpatch.* If you want to set up a build environment, you will need the tools mentioned in this deprecated article in more recent versions. Feel free to ask for assistance on the forums or on ouc IRC channels. If you succeed, please consider updating this page.
+
 *NOTE*: there is an experimental automated building pack for Windows that uses a portable version of the tools mentioned in this article.
 If you are planning on contributing to the project, it is best to follow the tutorial. If you are just interested in running and testing the game, you can find the build system "here":http://forums.xonotic.org/showthread.php?tid=666.
 
@@ -16,6 +18,7 @@ It can be found "here":http://sourceforge.net/projects/mingw/files/ . Run the au
 Next, you need to install MSYS. The recent versions don't have an installer, so it is easier to install "version 1.0.11":http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe .
 *Important*: again, the installation path should contain no spaces. The default is c:\msys
 After it is done installing, a terminal will pop up, asking you to run the post-install script. Answer yes, and when it asks for the MinGW install path, input it as c:/mingw .
+*Note*: If the terminal window instantly closed it self and you never got a chance to input the mingw path etc (And if you're on Vista or Win7). Then go to c:\msys\1.0\postinstall\ and right-click pi.bat and choose 'Run as administrator'.
 
 h3. msysGit
 
@@ -38,7 +41,7 @@ This will install the Xonotic root repository in c:\msys\1.0\xonotic
 When the download is done, type
 <pre>
 cd xonotic
-./all update
+./all update -l best
 </pre>
 
 This will download approximately 2 gigabytes of data, and use 4 gigabytes in disk space.
@@ -47,33 +50,15 @@ This will take a while, but you can already get started on the next step.
 
 h2. Setting up the environment
 
-To run the "all" script and compile Xonotic, you need to set up MSYS to be able to use msysGit from it.
-The /etc/profile file in the msys directory has to be modified to include msysGit in its search path. To do this, use a text editor that supports Unix line endings (LF), for example "Notepad++":http://notepad-plus-plus.org/ .
-If your text editor shows a two-line file, it probably does not support Unix line endings.
-
-Look for those lines (lines 19 to 20 in MSYS 1.0.11)
-<pre>
-if [ $MSYSTEM == MINGW32 ]; then
-  export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
-</pre>
-
-And change them to:
-<pre>
-PATH="/c/Program Files/Git/bin:$PATH"
-if [ $MSYSTEM == MINGW32 ]; then
-  export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
-</pre>
+To run and compile Xonotic, the "all" script must be able to access msysGit from MSYS, as well as wget and unzip. The xonpatch bundle patches your MSYS installation to sort this out.
 
-*NOTE*: If you're using a 64-bit Windows, it is possible that Git was installed in c:\Program Files (x86)\Git. The inserted line in the profile file should then be:
-<pre>
-PATH="/c/Program Files (x86)/Git/bin:$PATH"
-</pre>
+*Important*: if you have followed a previous version of this guide where the "profile" file had to be edited manually, download the original msys1.0.11 profile file from the attachments on this page (or from "this link":http://dev.xonotic.org/attachments/84/profile.zip), and unzip it in c:\msys\1.0\etc before applying the xonpatch.
 
-Alternatively, you can get the modified profile file in the attachments at the bottom of this page.
+The process is simple: download the latest xonpatch from the attachments (or from "this link":http://dev.xonotic.org/attachments/91/xonpatch_1-2.zip), and extract it in c:\msys\1.0 . Then, launch xonpatch.bat. This will make msysGit visible from MSYS, and add wget as well as unzip.
 
 h2. Compiling and running the game
 
-When the cloning of all the repositories is done, open MSYS and type:
+When the cloning of all the repositories is done, open *MSYS* (not git bash this time) and type:
 <pre>
 cd /xonotic
 ./all compile