<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Super+mario</id>
	<title>Spring - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Super+mario"/>
	<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/wiki/Special:Contributions/Super_mario"/>
	<updated>2026-11-08T22:09:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_Windows&amp;diff=3710</id>
		<title>Building Spring on Windows</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_Windows&amp;diff=3710"/>
		<updated>2015-01-02T05:09:42Z</updated>

		<summary type="html">&lt;p&gt;Super mario: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Engine_Development|Development]] &amp;lt; [[Building_spring|Building Spring]] &amp;lt; {{FULLPAGENAME}}&lt;br /&gt;
{{#css:&lt;br /&gt;
  code * {margin:inherit;}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If you only want to produce your own Spring game and not contribute to the core engine, compilation is not necessary. Check out [[Gamedev:Main]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=warning&amp;gt;Warning:&amp;lt;/span&amp;gt; Of the active developers nobody uses windows for developing. So they might not be able to help as effectively as on Linux. Thus compiling on windows is rarely tested and possibly leads to some unintentional errors.&lt;br /&gt;
&lt;br /&gt;
If you do wish to use Windows, the best place to get real-time help is the #sy lobby channel, or #sy on [[IRC]].&lt;br /&gt;
&lt;br /&gt;
=Compiling with MinGW=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
Install [http://www.cmake.org/ CMake] and [http://msysgit.github.io/ msysGit] and MinGW-w64:&lt;br /&gt;
&lt;br /&gt;
When installing msysGit you should select the option to &amp;quot;Run Git from the Windows Command Prompt&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
[[File:Msysgit6.png|400px]]&lt;br /&gt;
&lt;br /&gt;
This is in order to automatically add Git to PATH making it easy for CMake to find.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW-w64 ==&lt;br /&gt;
&lt;br /&gt;
Download and run the &amp;quot;Mingw-builds project - native toolchains using trunk&amp;quot; installer from [http://mingw-w64.sourceforge.net/download.php MinGW-w64].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the following options:&lt;br /&gt;
&lt;br /&gt;
[[File:InstallingMinGW-w64.png|400px]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Version:&#039;&#039;&#039; Any version above 4.8.x should work, 4.9.x+ may not have been tested as thoroughly.&lt;br /&gt;
* &#039;&#039;&#039;Architecture:&#039;&#039;&#039; i686&lt;br /&gt;
* &#039;&#039;&#039;Threads:&#039;&#039;&#039; posix&lt;br /&gt;
* &#039;&#039;&#039;Exception:&#039;&#039;&#039; sjlj &amp;lt;span class=&amp;quot;note&amp;quot;&amp;gt;This is the only setting which needs to be changed from the default&amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Build Revision:&#039;&#039;&#039; The latest one&lt;br /&gt;
&lt;br /&gt;
== Adding to PATH ==&lt;br /&gt;
&lt;br /&gt;
Once installed, you should add the MinGW directory to your PATH variable so that Cmake can find the relevant binaries. &lt;br /&gt;
&lt;br /&gt;
* Go to System properties (either via Control Panel\System and Security\System or by right clicking &#039;Computer&#039; on the desktop), then click &#039;Advanced System Settings&#039;. &lt;br /&gt;
* Click the &#039;Environment Variables&#039; button at the bottom. &lt;br /&gt;
* Find Path in the &#039;System Variables&#039; scrollbox, add an extra &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; to the end and then copy-paste in the MinGW directory (e.g. default is &amp;lt;code&amp;gt;C:\Program Files (x86)\mingw-w64\i686-4.9.1-posix-sjlj-rt_v3-rev0\mingw32\bin&amp;lt;/code&amp;gt;). &lt;br /&gt;
* Alternative instructions with images are easy to find online, for example [http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx here].&lt;br /&gt;
&lt;br /&gt;
= Get the Source Code =&lt;br /&gt;
&lt;br /&gt;
* use git&#039;s bash (you find it in the right click context menu when clicking the folder), &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; into your spring source dir&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone --recursive git://github.com/spring/spring.git -b develop&lt;br /&gt;
cd spring&lt;br /&gt;
git clone https://github.com/spring/mingwlibs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* update it from time to time with: &amp;lt;code&amp;gt;git pull --rebase&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure you install the package in the checkout directory, so the path is: /spring/mingwlibs. If done right, it will look like:&lt;br /&gt;
** */spring/&lt;br /&gt;
** */spring/...&lt;br /&gt;
** */spring/mingwlibs&lt;br /&gt;
** */spring/rts&lt;br /&gt;
&lt;br /&gt;
* Note: if you install the package somewhere else (preferably outside of the source tree), and pass its location with the &#039;&#039;MINGDIR&#039;&#039; option to CMake in the configure step (see further down, in the quick instructions).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== configure using CMake ==&lt;br /&gt;
&lt;br /&gt;
* run the &#039;&#039;cmake-gui&#039;&#039; and select a source and a build directory&lt;br /&gt;
* configure and follow the instructions, and adjust variables to your needs (defaults are OK)&lt;br /&gt;
* press &#039;&#039;&#039;Generate&#039;&#039;&#039;&lt;br /&gt;
* open a console (&#039;&#039;cmd.exe&#039;&#039;), &#039;&#039;cd&#039;&#039; into your &#039;&#039;&#039;build&#039;&#039;&#039; directory&lt;br /&gt;
* &#039;&#039;optional:&#039;&#039; for multi-threaded compilation, the &#039;&#039;mingw32-make&#039;&#039; part may differ on your system: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;set MAKE_COMMAND=mingw32-make -j2&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt; (use -j4 for 4 threads)&lt;br /&gt;
* compile with: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;mingw32-make install-spring&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
* compile just the engine (spring.exe) with: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;mingw32-make engine-legacy&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Generating the AI Sources/Wrappers===&lt;br /&gt;
&lt;br /&gt;
you can either build the wrapper:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make Cpp-AIWrapper&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or generate all sources, in case you don&#039;t need the binary:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make generateSources&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Possible Problems===&lt;br /&gt;
* If you get &amp;lt;span class=warning&amp;gt;undefined reference to `_Unwind_Resume&#039;&amp;lt;/span&amp;gt; linking errors, deinstall &#039;&#039;whole&#039;&#039; MinGW and reinstall it with &#039;&#039;sjlj&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* When you installed an old version of MinGW/TDM and forgot to deinstall it correctly, &amp;lt;code&amp;gt;gcc.exe&amp;lt;/code&amp;gt; &amp;amp; &amp;lt;code&amp;gt;g++.exe&amp;lt;/code&amp;gt; will be named &amp;lt;code&amp;gt;gcc-dw2.exe&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;g++-dw2.exe&amp;lt;/code&amp;gt;. CMake will then fail to find the correct one, first try to deinstall anything mingw related and reinstall everything. If that didn&#039;t helped just rename the files. If even that doesn&#039;t help open cmake-gui and click the advanced button and set the paths to the correct files yourself (&amp;lt;code&amp;gt;CMAKE_C_COMPILER&amp;lt;/code&amp;gt; &amp;amp; &amp;lt;code&amp;gt;CMAKE_CXX_COMPILER&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
You can still use Visual Studio 2012 as described below to edit the code. This is very useful because it allows excellent code navigation, and it highlights syntax errors and trivial mistakes before compiling. &lt;br /&gt;
&lt;br /&gt;
For debugging mingw builds, you can aquire a windows build of gdb from http://www.equation.com/servlet/equation.cmd?fa=gdb&lt;br /&gt;
&lt;br /&gt;
To start debugging, copy &#039;&#039;gdb.exe&#039;&#039; to your build output directory, and launch it with &#039;&#039;gdb spring.exe&#039;&#039;. You can supply command line arguments to &#039;&#039;spring.exe&#039;&#039; with &#039;&#039;gdb --args spring.exe myreplayfile.sdf&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Compiling with Visual Studio (not officially supported!)=&lt;br /&gt;
Currently Visual Studio lacks some c++ features it doesn&#039;t compile spring!&lt;br /&gt;
&lt;br /&gt;
==General Visual Studio Notes==&lt;br /&gt;
When developing using Visual Studio keep in mind:&lt;br /&gt;
*&amp;lt;span class=&amp;quot;warning&amp;quot;&amp;gt;It&#039;s experimental and not proved to compile or run!&amp;lt;/span&amp;gt;&lt;br /&gt;
*&amp;lt;span class=&amp;quot;warning&amp;quot;&amp;gt;Your VS build won&#039;t sync with GCC builds in multiplayer mode&amp;lt;/span&amp;gt;&lt;br /&gt;
*AIs built with Visual Studio will work with the mingw32 release builds thanks to the C AI Interface, however this interface may change when newer releases are made&lt;br /&gt;
*Running any non-LUA AI on VS built Spring will crash it&lt;br /&gt;
&lt;br /&gt;
===2012 (v11)===&lt;br /&gt;
&lt;br /&gt;
Install [http://www.microsoft.com/visualstudio/eng/downloads#d-express-windows-desktop Visual Studio 2012 Express for Windows Desktop], [http://www.microsoft.com/en-us/download/confirmation.aspx?id=35515 Visual C++ Compiler November 2012 CTP], [http://www.cmake.org/ cmake], [http://www.7-zip.org 7-zip] and [http://msysgit.github.io/ msysgit].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the Startmenu run &amp;quot;VS2012 x86 Native Tools Command Prompt&amp;quot; and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
set PATH=%PATH%;%PROGRAMFILES%\git\bin;%PROGRAMFILES%\cmake 2.8\bin\&lt;br /&gt;
git clone git://github.com/spring/spring.git&lt;br /&gt;
cd spring&lt;br /&gt;
git clone git://github.com/spring/vclibs11.git vclibs&lt;br /&gt;
cmake -G &amp;quot;Visual Studio 11&amp;quot; .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start visual studio &amp;amp; open Spring.sln. Select &amp;quot;engine-legacy&amp;quot; as default project, as AIs and ofter stuff are known to fail to compile on visual studio.&lt;br /&gt;
&lt;br /&gt;
In the Project Properties, make sure to [http://stackoverflow.com/questions/13238408/variadic-template-in-vs-2012-visual-c-november-2012-ctp select the Microsoft Visual C++ Compiler Nov 2012 CTP].&lt;br /&gt;
&lt;br /&gt;
Note: Visual Studio 2012 Express for Windows Desktop is for free, but requires a registration after 30 days (to get a free license).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Super mario</name></author>
	</entry>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_Windows&amp;diff=3709</id>
		<title>Building Spring on Windows</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Building_Spring_on_Windows&amp;diff=3709"/>
		<updated>2015-01-02T05:08:36Z</updated>

		<summary type="html">&lt;p&gt;Super mario: Remove subjective option concerning the reasoning of the warning&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Engine_Development|Development]] &amp;lt; [[Building_spring|Building Spring]] &amp;lt; {{FULLPAGENAME}}&lt;br /&gt;
{{#css:&lt;br /&gt;
  code * {margin:inherit;}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If you only want to produce your own Spring game and not contribute to the core engine, compilation is not necessary. Check out [[Gamedev:Main]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=warning&amp;gt;Warning:&amp;lt;/span&amp;gt; Of the active developers nobody uses windows for developing. So they might not be able to help as effectively as on Linux. Thus compiling on windows is rarely tested possibly leads to some unintentional errors.&lt;br /&gt;
&lt;br /&gt;
If you do wish to use Windows, the best place to get real-time help is the #sy lobby channel, or #sy on [[IRC]].&lt;br /&gt;
&lt;br /&gt;
=Compiling with MinGW=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
Install [http://www.cmake.org/ CMake] and [http://msysgit.github.io/ msysGit] and MinGW-w64:&lt;br /&gt;
&lt;br /&gt;
When installing msysGit you should select the option to &amp;quot;Run Git from the Windows Command Prompt&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
[[File:Msysgit6.png|400px]]&lt;br /&gt;
&lt;br /&gt;
This is in order to automatically add Git to PATH making it easy for CMake to find.&lt;br /&gt;
&lt;br /&gt;
== Installing MinGW-w64 ==&lt;br /&gt;
&lt;br /&gt;
Download and run the &amp;quot;Mingw-builds project - native toolchains using trunk&amp;quot; installer from [http://mingw-w64.sourceforge.net/download.php MinGW-w64].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the following options:&lt;br /&gt;
&lt;br /&gt;
[[File:InstallingMinGW-w64.png|400px]]&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Version:&#039;&#039;&#039; Any version above 4.8.x should work, 4.9.x+ may not have been tested as thoroughly.&lt;br /&gt;
* &#039;&#039;&#039;Architecture:&#039;&#039;&#039; i686&lt;br /&gt;
* &#039;&#039;&#039;Threads:&#039;&#039;&#039; posix&lt;br /&gt;
* &#039;&#039;&#039;Exception:&#039;&#039;&#039; sjlj &amp;lt;span class=&amp;quot;note&amp;quot;&amp;gt;This is the only setting which needs to be changed from the default&amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;Build Revision:&#039;&#039;&#039; The latest one&lt;br /&gt;
&lt;br /&gt;
== Adding to PATH ==&lt;br /&gt;
&lt;br /&gt;
Once installed, you should add the MinGW directory to your PATH variable so that Cmake can find the relevant binaries. &lt;br /&gt;
&lt;br /&gt;
* Go to System properties (either via Control Panel\System and Security\System or by right clicking &#039;Computer&#039; on the desktop), then click &#039;Advanced System Settings&#039;. &lt;br /&gt;
* Click the &#039;Environment Variables&#039; button at the bottom. &lt;br /&gt;
* Find Path in the &#039;System Variables&#039; scrollbox, add an extra &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; to the end and then copy-paste in the MinGW directory (e.g. default is &amp;lt;code&amp;gt;C:\Program Files (x86)\mingw-w64\i686-4.9.1-posix-sjlj-rt_v3-rev0\mingw32\bin&amp;lt;/code&amp;gt;). &lt;br /&gt;
* Alternative instructions with images are easy to find online, for example [http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx here].&lt;br /&gt;
&lt;br /&gt;
= Get the Source Code =&lt;br /&gt;
&lt;br /&gt;
* use git&#039;s bash (you find it in the right click context menu when clicking the folder), &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; into your spring source dir&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone --recursive git://github.com/spring/spring.git -b develop&lt;br /&gt;
cd spring&lt;br /&gt;
git clone https://github.com/spring/mingwlibs&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* update it from time to time with: &amp;lt;code&amp;gt;git pull --rebase&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Make sure you install the package in the checkout directory, so the path is: /spring/mingwlibs. If done right, it will look like:&lt;br /&gt;
** */spring/&lt;br /&gt;
** */spring/...&lt;br /&gt;
** */spring/mingwlibs&lt;br /&gt;
** */spring/rts&lt;br /&gt;
&lt;br /&gt;
* Note: if you install the package somewhere else (preferably outside of the source tree), and pass its location with the &#039;&#039;MINGDIR&#039;&#039; option to CMake in the configure step (see further down, in the quick instructions).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== configure using CMake ==&lt;br /&gt;
&lt;br /&gt;
* run the &#039;&#039;cmake-gui&#039;&#039; and select a source and a build directory&lt;br /&gt;
* configure and follow the instructions, and adjust variables to your needs (defaults are OK)&lt;br /&gt;
* press &#039;&#039;&#039;Generate&#039;&#039;&#039;&lt;br /&gt;
* open a console (&#039;&#039;cmd.exe&#039;&#039;), &#039;&#039;cd&#039;&#039; into your &#039;&#039;&#039;build&#039;&#039;&#039; directory&lt;br /&gt;
* &#039;&#039;optional:&#039;&#039; for multi-threaded compilation, the &#039;&#039;mingw32-make&#039;&#039; part may differ on your system: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;set MAKE_COMMAND=mingw32-make -j2&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt; (use -j4 for 4 threads)&lt;br /&gt;
* compile with: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;mingw32-make install-spring&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
* compile just the engine (spring.exe) with: &amp;lt;code&amp;gt;&#039;&#039;&amp;lt;pre&amp;gt;mingw32-make engine-legacy&amp;lt;/pre&amp;gt;&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Generating the AI Sources/Wrappers===&lt;br /&gt;
&lt;br /&gt;
you can either build the wrapper:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make Cpp-AIWrapper&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or generate all sources, in case you don&#039;t need the binary:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make generateSources&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Possible Problems===&lt;br /&gt;
* If you get &amp;lt;span class=warning&amp;gt;undefined reference to `_Unwind_Resume&#039;&amp;lt;/span&amp;gt; linking errors, deinstall &#039;&#039;whole&#039;&#039; MinGW and reinstall it with &#039;&#039;sjlj&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
* When you installed an old version of MinGW/TDM and forgot to deinstall it correctly, &amp;lt;code&amp;gt;gcc.exe&amp;lt;/code&amp;gt; &amp;amp; &amp;lt;code&amp;gt;g++.exe&amp;lt;/code&amp;gt; will be named &amp;lt;code&amp;gt;gcc-dw2.exe&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;g++-dw2.exe&amp;lt;/code&amp;gt;. CMake will then fail to find the correct one, first try to deinstall anything mingw related and reinstall everything. If that didn&#039;t helped just rename the files. If even that doesn&#039;t help open cmake-gui and click the advanced button and set the paths to the correct files yourself (&amp;lt;code&amp;gt;CMAKE_C_COMPILER&amp;lt;/code&amp;gt; &amp;amp; &amp;lt;code&amp;gt;CMAKE_CXX_COMPILER&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
You can still use Visual Studio 2012 as described below to edit the code. This is very useful because it allows excellent code navigation, and it highlights syntax errors and trivial mistakes before compiling. &lt;br /&gt;
&lt;br /&gt;
For debugging mingw builds, you can aquire a windows build of gdb from http://www.equation.com/servlet/equation.cmd?fa=gdb&lt;br /&gt;
&lt;br /&gt;
To start debugging, copy &#039;&#039;gdb.exe&#039;&#039; to your build output directory, and launch it with &#039;&#039;gdb spring.exe&#039;&#039;. You can supply command line arguments to &#039;&#039;spring.exe&#039;&#039; with &#039;&#039;gdb --args spring.exe myreplayfile.sdf&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=Compiling with Visual Studio (not officially supported!)=&lt;br /&gt;
Currently Visual Studio lacks some c++ features it doesn&#039;t compile spring!&lt;br /&gt;
&lt;br /&gt;
==General Visual Studio Notes==&lt;br /&gt;
When developing using Visual Studio keep in mind:&lt;br /&gt;
*&amp;lt;span class=&amp;quot;warning&amp;quot;&amp;gt;It&#039;s experimental and not proved to compile or run!&amp;lt;/span&amp;gt;&lt;br /&gt;
*&amp;lt;span class=&amp;quot;warning&amp;quot;&amp;gt;Your VS build won&#039;t sync with GCC builds in multiplayer mode&amp;lt;/span&amp;gt;&lt;br /&gt;
*AIs built with Visual Studio will work with the mingw32 release builds thanks to the C AI Interface, however this interface may change when newer releases are made&lt;br /&gt;
*Running any non-LUA AI on VS built Spring will crash it&lt;br /&gt;
&lt;br /&gt;
===2012 (v11)===&lt;br /&gt;
&lt;br /&gt;
Install [http://www.microsoft.com/visualstudio/eng/downloads#d-express-windows-desktop Visual Studio 2012 Express for Windows Desktop], [http://www.microsoft.com/en-us/download/confirmation.aspx?id=35515 Visual C++ Compiler November 2012 CTP], [http://www.cmake.org/ cmake], [http://www.7-zip.org 7-zip] and [http://msysgit.github.io/ msysgit].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the Startmenu run &amp;quot;VS2012 x86 Native Tools Command Prompt&amp;quot; and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
set PATH=%PATH%;%PROGRAMFILES%\git\bin;%PROGRAMFILES%\cmake 2.8\bin\&lt;br /&gt;
git clone git://github.com/spring/spring.git&lt;br /&gt;
cd spring&lt;br /&gt;
git clone git://github.com/spring/vclibs11.git vclibs&lt;br /&gt;
cmake -G &amp;quot;Visual Studio 11&amp;quot; .&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now start visual studio &amp;amp; open Spring.sln. Select &amp;quot;engine-legacy&amp;quot; as default project, as AIs and ofter stuff are known to fail to compile on visual studio.&lt;br /&gt;
&lt;br /&gt;
In the Project Properties, make sure to [http://stackoverflow.com/questions/13238408/variadic-template-in-vs-2012-visual-c-november-2012-ctp select the Microsoft Visual C++ Compiler Nov 2012 CTP].&lt;br /&gt;
&lt;br /&gt;
Note: Visual Studio 2012 Express for Windows Desktop is for free, but requires a registration after 30 days (to get a free license).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Compiling]]&lt;/div&gt;</summary>
		<author><name>Super mario</name></author>
	</entry>
</feed>