Difference between revisions of "Build for Windows"

From X-Moto
Jump to: navigation, search
(Build from GNU/Linux)
(Install libs headers and objects)
Line 10: Line 10:
 
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.
 
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 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto co -P xmoto
+
  cvs -z3 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto export -r HEAD xmoto/mingw_dev.zip
 +
mv xmoto/mingw_dev.zip ~
 
  cd /usr/i586-mingw32msvc
 
  cd /usr/i586-mingw32msvc
  unzip /path/to/xmoto/sources/mingw_dev.zip
+
  unzip ~/mingw_dev.zip
+
rm ~/mingw_dev.zip
 +
 
 
==Build from GNU/Linux==
 
==Build from GNU/Linux==
 
  tar jxf xmoto-x.y.z.tar.bz2
 
  tar jxf xmoto-x.y.z.tar.bz2

Revision as of 13:52, 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.

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

Prerequites

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 -d:pserver:anonymous@xmoto.cvs.sourceforge.net:/cvsroot/xmoto export -r HEAD xmoto/mingw_dev.zip
mv xmoto/mingw_dev.zip ~
cd /usr/i586-mingw32msvc
unzip ~/mingw_dev.zip
rm ~/mingw_dev.zip

Build from GNU/Linux

tar jxf xmoto-x.y.z.tar.bz2
cd xmoto-x.y.z
./configure_mingw_from_linux.sh
make

You can found xmoto.exe into the src dir.

Build from Windows