data['title']); if($title_nice != "Main Page") { echo "

"; echo $title_nice; echo "

"; } ?>

Català - Español - Norsk - Francais


Contents

Quick compilation

Linux / Ubuntu

  • Install prerequisites
sudo apt-get install subversion build-essential automake1.9 libsqlite3-dev libjpeg62-dev libbz2-dev libsdl-mixer1.2-dev
sudo apt-get install libsdl-net1.2-dev liblua5.1-0-dev libode-dev zlib1g-dev libpng12-dev libglu1-mesa-dev libsdl-ttf2.0-dev
sudo apt-get install libcurl3-openssl-dev libxdg-basedir-dev libxml2-dev gettext
  • Get X-Moto sources
svn co svn://svn.tuxfamily.org/svnroot/xmoto/xmoto/trunk xmoto_trunk
  • Compile sources
cd xmoto_trunk
./configure --prefix=$HOME/xmoto_install --with-unoptimized=1
make
make install
  • Run X-Moto
./src/xmoto


Windows

X-Moto for windows (xmoto.exe) is built from a linux system.

  • Install VirtualBox or any virtualisation system
  • Install Linux/Ubuntu inside
  • Install prerequisites
  • Install mingw_lib.zip
  • Compile sources

SVN ?

X-Moto uses SVN to develop the game. With SVN files, you have access to new features and... new bugs. Use svn files only if you know what you are doing. otherwise just go download the stable release from the main page http://xmoto.tuxfamily.org

You must know that sources downloaded from SVN should not be compiled sometimes !

http://en.wikipedia.org/wiki/Subversion_%28software%29

Download latest files with SVN

The first time you download the svn version you will need to download all the files under "xmoto/" :

svn co svn://svn.tuxfamily.org/svnroot/xmoto/xmoto/trunk xmoto

or if you are a developer

svn co svn+ssh://$USER@svn.tuxfamily.org/svnroot/xmoto/xmoto/trunk xmoto

(you can upload you public ssh keys to the root of your ftp account on ftp://$USER@ftp.tuxfamily.org/ in a file called ssh_keys)

Note that there are a lot of graphical clients to use svn if you're afraid of the command line.

Update the files

When you have already download from svn once, you can update the files with this command :

# svn update

Web access

http://svn.tuxfamily.org/viewvc.cgi/?root=xmoto_xmoto

Notification via rss

http://svnweb.tuxfamily.org/rss.php?repname=xmoto+%28xmoto%29&path=%2F&rev=0&sc=0&isdir=1

Build

Dependencies

X-Moto must have the following to compile properly :

  • Latest gcc and g++
  • SDL development libraries and headers
  • OpenGL development libraries and headers
  • SDL_mixer with headers
  • SDL_net with headers
  • libjpeg with headers
  • libpng with headers
  • zlib with headers
  • libbzip2 with headers
  • liblua50 with headers
  • liblualib50 with headers
  • libode with headers
  • libcurl3 with headers
  • libxml2 development libraries
  • automake >= 1.9
sudo apt-get install subversion build-essential automake1.9 libsqlite3-dev libjpeg62-dev libbz2-dev libsdl-mixer1.2-dev
sudo apt-get install libsdl-net1.2-dev liblua5.1-0-dev libode-dev zlib1g-dev libpng12-dev libglu1-mesa-dev libsdl-ttf2.0-dev
sudo apt-get install libcurl3-openssl-dev libxdg-basedir-dev libxml2-dev gettext

To build windows version from linux, you'll need the following extra packages

sudo apt-get install tofrodos nsis mingw32
Use mingw32 3.4.5.20060117.1.dfsg-3 from gusty for ubuntu otherwise, .exe built are instables

But with the new features, new dependencies can be asked.

automatic builds

sudo apt-get install devscripts libcurl4-gnutls-dev debhelper
mkdir $HOME/xm/builds
cd $HOME/xm/builds
cp /path/to/svn/tools/tuxfamily_fullBuild.sh .
cp /path/to/svn/tools/buildPackages.sh .
svn co svn://svn.tuxfamily.org/svnroot/xmoto/xmoto/trunk trunk
mkdir sources
mkdir windows
# edit the 5 first lines of tuxfamily_fullBuild.sh to change the path and the username for the scp
./tuxfamily_fullBuild.sh

Ok, I can build it !

$ cd xmoto
$ sh ./bootstrap
$ ./configure
$ make
# make install

Right now, you can start xmoto with "src/xmoto".

If sh ./bootstrap failed, you have to edit the ./bootstrap file manually:

aclocal -I config $ACLOCAL_FLAGS\
&& automake --gnu --add-missing --copy \

so it looks like that:

aclocal-1.9 -I config $ACLOCAL_FLAGS\
&& automake-1.9 --gnu --add-missing --copy \

Doesn't work ?

xmoto.bin not found !

You probably reconfigure without making clean. Do:

make clean
./configure
make
sudo make install

Problems with translations:

make[1]: Entering directory `/home/yourusername/xmoto-dev-folder/po'
rm -f fr_FR.gmo && : -c --statistics -o fr_FR.gmo fr_FR.po
mv: cannot stat `t-fr_FR.gmo': No such file or directory
make[1]: *** [fr_FR.gmo] Error 1
make[1]: Leaving directory `/home/tuhoojabotti/xmoto-dev-folder/po'
make: *** [update-po] Error 2

SOLUTION (ought to work):
sudo apt-get install gettext
./configure
cd po/
make update-po
cd ..
make
sudo make install

Need help ?

Join us on IRC, the channel is #xmoto on the freenode servers. irc://irc.freenode.net/xmoto


This page was last modified on 1 June 2014, at 11:35. This page has been accessed 17,507 times.

  

Copyright © 2006