Difference between revisions of "Build for Windows"

From X-Moto
Jump to: navigation, search
Line 1: Line 1:
[[de:Erstellen für Windows|Deutsch]] - [[Ca:Compilacio Windows|Català]] - [[Es:Compilacion Windows|Español]] - [[No:Kompilere_i_Windows|Norsk]]
+
Since xmoto 0.2.5, Visual Studio c++ is no more required. You can build X-Moto from free software. You can build xmoto.exe from windows or even from GNU/Linux with cross-compilation.
  
Currently a version of Visual Studio .NET 2003 (or later) is required to build Xmoto on Windows, although if you really know what you're doing, it should be possible to use something like Dev-C++ or maybe even the free C++ compiler suite from Microsoft.
+
==Prerequites==
  
If you got the Visual Studio .NET 2003 compiler, simply download the latest xmoto-VERSION-win32-src.zip package from the SourceForge page [http://sourceforge.net/project/showfiles.php?group_id=139914], and unzip it to somewhere. The .sln file is located in the vcnet/ directory together with all the required library files; simply load it into the IDE and hit ''Build'' to compile everything. When done, the executables should have been created in the bin/ directory, where you'll also find all the Xmoto data files.
+
==Build from GNU/Linux==
  
==Debug Builds==
+
==Build from Windows==
One of the two available build types is the debug build. This will produce executables with a ''d'' suffix; bin/xmotod.exe and bin/xmoto-editd.exe. These will generally run quite slow, but they include debug information and other nice treats. You'll also notice that they will track memory usage. When the game or the editor is exited, you'll find a file called memleaks.log, detailing whether or not you've leaked memory.
 
 
 
==Release Builds==
 
Can be identified by lack of ''d'' suffices on executables. These are the same as the ones released officially.
 
 
 
If you want to create a self-extracting installer, there's a file called xmoto.nsi in the bin/ directory which is a script for NSIS [http://nsis.sourceforge.net/Main_Page]. Note that you'll need to make DOS copies (\r\n line endings) of some of the text files in the root first. Read the error messages for details :).
 

Revision as of 11:57, 3 February 2007

Since xmoto 0.2.5, Visual Studio c++ is no more required. You can build X-Moto from free software. You can build xmoto.exe from windows or even from GNU/Linux with cross-compilation.

Prerequites

Build from GNU/Linux

Build from Windows