Build for Windows

From X-Moto
Revision as of 18:14, 4 February 2007 by Nadenislamarre (talk | contribs) (Build from GNU/Linux)
Jump to: navigation, search

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.

This howto has been made under Ubuntu, but it's easy to adapt it to your distribution.


Install mingw

sudo apt-get install mingw32 mingw32-binutils mingw32-runtime

Install libs headers and objects

The required files to compile are available on internet on the website of each library. However, to make it easier, a pack is available on the xmoto cvs.

cvs -z3 export -r HEAD xmoto/
mv xmoto/ ~
cd /usr/i586-mingw32msvc
unzip ~/
rm ~/

Build from GNU/Linux

tar jxf xmoto-x.y.z.tar.bz2
cd xmoto-x.y.z
i586-mingw32msvc-strip src/xmoto.exe

You can found xmoto.exe into the src dir. To get the dll required to play xmoto :

cvs -z3 export -r HEAD xmoto/

Build from Windows