<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=DarkRadiant_-_Compiling_in_MinGW</id>
	<title>DarkRadiant - Compiling in MinGW - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=DarkRadiant_-_Compiling_in_MinGW"/>
	<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=DarkRadiant_-_Compiling_in_MinGW&amp;action=history"/>
	<updated>2026-04-17T23:51:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=DarkRadiant_-_Compiling_in_MinGW&amp;diff=6278&amp;oldid=prev</id>
		<title>Greebo: New page: {{important|headline=Note|text=MinGW support is discontinued. This page stays merely as an archive.}}  == Compiling in MinGW == You&#039;ll need to download these pieces of software (these are ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=DarkRadiant_-_Compiling_in_MinGW&amp;diff=6278&amp;oldid=prev"/>
		<updated>2008-04-04T16:06:01Z</updated>

		<summary type="html">&lt;p&gt;New page: {{important|headline=Note|text=MinGW support is discontinued. This page stays merely as an archive.}}  == Compiling in MinGW == You&amp;#039;ll need to download these pieces of software (these are ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{important|headline=Note|text=MinGW support is discontinued. This page stays merely as an archive.}}&lt;br /&gt;
&lt;br /&gt;
== Compiling in MinGW ==&lt;br /&gt;
You&amp;#039;ll need to download these pieces of software (these are all free, you don&amp;#039;t need to pay for anything):&lt;br /&gt;
* [http://tortoisesvn.tigris.org &amp;#039;&amp;#039;&amp;#039;TortoiseSVN&amp;#039;&amp;#039;&amp;#039;] for obtaining the sources&lt;br /&gt;
* [http://www.mingw.org/download.shtml &amp;#039;&amp;#039;&amp;#039;MinGW&amp;#039;&amp;#039;&amp;#039;] the actual compiler&lt;br /&gt;
* [http://www.activestate.com/store/activepython/download &amp;#039;&amp;#039;&amp;#039;ActivePython&amp;#039;&amp;#039;&amp;#039;] to run scons (other Python releases should work as well)&lt;br /&gt;
* [http://www.scons.org/download.php &amp;#039;&amp;#039;&amp;#039;scons&amp;#039;&amp;#039;&amp;#039;] to run the compilation scripts&lt;br /&gt;
&lt;br /&gt;
== Step 1: Install the Tools ==&lt;br /&gt;
First, download and install &amp;#039;&amp;#039;&amp;#039;TortoiseSVN&amp;#039;&amp;#039;&amp;#039;. Nothing special here, just install it into any folder of your preference. After installation it probably will ask to reboot your machine, as Tortoise integrates into the Explorer shell. (You can do that later, when all the other components have been installed).&lt;br /&gt;
&lt;br /&gt;
Second, install the compiler &amp;#039;&amp;#039;&amp;#039;MinGW&amp;#039;&amp;#039;&amp;#039;. Launch the setup and choose the package &amp;#039;&amp;#039;&amp;#039;Current&amp;#039;&amp;#039;&amp;#039;, then be sure to check the box of the &amp;#039;&amp;#039;&amp;#039;g++&amp;#039;&amp;#039;&amp;#039; compiler. Choose &amp;#039;&amp;#039;&amp;#039;Download and Install&amp;#039;&amp;#039;&amp;#039; in the next steps and let setup do the rest.&lt;br /&gt;
&lt;br /&gt;
Third, install the &amp;#039;&amp;#039;&amp;#039;ActivePython&amp;#039;&amp;#039;&amp;#039; interpreter, which is needed to run the SconScript. Nothing spectacular here as well. After Python has been installed, run the &amp;#039;&amp;#039;&amp;#039;scons&amp;#039;&amp;#039;&amp;#039; installer (version 0.96.1 and 0.97 work for sure, don&amp;#039;t know about others). Reboot the machine, to make sure everything is properly set up.&lt;br /&gt;
&lt;br /&gt;
=== Set the Path to the MinGW Compiler ===&lt;br /&gt;
If scons complains about gcc and g++ missing, you will have to add the path to the compiler to your PATH environment variable:&lt;br /&gt;
* Press &amp;#039;&amp;#039;&amp;#039;Win-Break&amp;#039;&amp;#039;&amp;#039; or right-click on &amp;quot;My Computer&amp;quot; and choose &amp;quot;Properties&amp;quot;. Go to advanced and seek the button for the Environment Variables. I&amp;#039;m not sure if it&amp;#039;s called like this, because I&amp;#039;m running a German version of WinXP, but the Window should be something like this:&lt;br /&gt;
&lt;br /&gt;
[http://img117.imageshack.us/img117/8184/drenvironmenthh3.jpg http://img117.imageshack.us/img117/8184/drenvironmenthh3.th.jpg]&lt;br /&gt;
&lt;br /&gt;
Look to the variable named &amp;quot;Path&amp;quot; in the lower part of the dialog and double click the property. A small window will pop-up containing the name and the value of the environment variable. You&amp;#039;ll have to add the path to the &amp;#039;&amp;#039;&amp;#039;MinGW\bin&amp;#039;&amp;#039;&amp;#039; folder to the end of the long string: &lt;br /&gt;
 ;C:\MinGW\bin;&lt;br /&gt;
Be sure that a semicolon divides the newly added path from the previous ones, as I indicated above. A double semicolon won&amp;#039;t hurt either, so if the above folder is matching to your installation, you can as well copy &amp;amp; paste it into that window. Close the dialogs by hitting OK, you&amp;#039;re done with that. The next time you&amp;#039;ll open a console the path should be functional. If not, please double-check your path for typos and/or post in the forums.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Compile the Sources ==&lt;br /&gt;
If you&amp;#039;re finished downloading the sources, open up the console by pressing &amp;#039;&amp;#039;&amp;#039;Win-R&amp;#039;&amp;#039;&amp;#039; or click &amp;#039;&amp;#039;&amp;#039;Start&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Run...&amp;#039;&amp;#039;&amp;#039;, then type &amp;#039;&amp;#039;&amp;#039;cmd&amp;#039;&amp;#039;&amp;#039; and confirm.&lt;br /&gt;
Once the DOS box is there, head to the according source folder by typing&lt;br /&gt;
 cd C:\DarkRadiant&lt;br /&gt;
or whatever your path is where you downloaded them. Now type:&lt;br /&gt;
 scons BUILD=&amp;quot;release&amp;quot;&lt;br /&gt;
and the sources should start to compile (in release mode).&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s likely that I forgot something here and you might get scons complaining about a missing compiler or something. In that case, please tell greebo to update this tutorial accordingly.&lt;br /&gt;
&lt;br /&gt;
The time neede to compile DarkRadiant strongly depends on your CPU power and may take up to ten minutes for a release build (a debug build may take much longer for whatever reasons).&lt;br /&gt;
&lt;br /&gt;
== Step 3: Run DarkRadiant ==&lt;br /&gt;
The readily compiled sources can be found in the &amp;#039;&amp;#039;&amp;#039;install/&amp;#039;&amp;#039;&amp;#039; folder beneath the DarkRadiant root (the folder you downloaded your sources to).&lt;br /&gt;
 C:\DarkRadiant\install\darkradiant.exe&lt;br /&gt;
Just create a shortcut by dragging the exe somewhere to your desktop with right mouse button and choose to create a link there. There is also an icon file located in the same folder you can use for this link to make it looking more pleasant.&lt;br /&gt;
&lt;br /&gt;
If you get an error during startup, please contact greebo, perhaps there is something missing in this tutorial.&lt;br /&gt;
&lt;br /&gt;
{{coding}}&lt;br /&gt;
{{darkradiant|sort=Compilation}}&lt;/div&gt;</summary>
		<author><name>Greebo</name></author>
	</entry>
</feed>