Difference between revisions of "Build for Unix (like GNU/Linux)"

From X-Moto
Jump to: navigation, search
m (Reverted edits by Opofefemucu (Talk) to last revision by Spydon)
 
(25 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 +
[[de:Erstellen für Unix (wie GNU/Linux)|Deutsch]] - [[Ca:Compilacio Unix|Català]] - [[Es:Compilacion Unix|Español]] - [[No:Kompilere_i_Unix_%28som_GNU/Linux%29|Norsk]]
 +
 
= Normal steps =
 
= Normal steps =
 
== Get the sources ==
 
== Get the sources ==
The tarball is avaible on http://xmoto.free.fr/index.php?page=news
+
The tarball is avaible on [http://xmoto.tuxfamily.org/index.php?page=news http://xmoto.tuxfamily.org/index.php?page=news].
  
 
== Uncompress the tarball ==
 
== Uncompress the tarball ==
Line 15: Line 17:
  
 
= Common errors =
 
= Common errors =
== Did you install a compiler ? ==
+
== Did you install a compiler? ==
== Some library are missing ? ==
+
== Some libraries are missing? ==
 +
 
 +
These commands should work in all debian based distros.
 +
List of debian based distros - http://distrowatch.com/dwres.php?resource=independence
 +
 
 +
In order to automatically install all the required packages (not including aclocal)
 +
in Debian/Ubuntu type:
 +
sudo apt-get build-dep xmoto
 +
 
 +
'''aclocal'''
 +
 
 +
if this error message appears:
 +
aclocal >= 1.9.6 is required !
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install automake
 +
 
 +
'''SDL_mixer'''
 +
 
 +
if this error message appears:
 +
configure: error: SDL_mixer required
 +
 
 +
In Debian/Ubuntu type:
 +
sudo apt-get install libsdl-mixer1.2-dev
 +
 
 +
'''liblua'''
 +
 
 +
if this error message appears:
 +
configure: error: liblua5.1
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install liblua5.1-0-dev
 +
 
 +
'''libode0'''
 +
 
 +
if this error message appears:
 +
configure: error: libode or libode0 required
 +
 
 +
in Debian/Ubuntu type (should work?):
 +
sudo apt-get install libode0-dev
 +
 
 +
'''build-essential'''
 +
 
 +
if this error message appears:
 +
configure: error: compiler can not create exectables
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install build-essential
 +
 
 +
'''sqlite3'''
 +
 
 +
if this error message appears:
 +
configure: error: "sqlite3 required"
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libsqlite3-dev
 +
 
 +
'''zlib'''
 +
 
 +
if this error message appears:
 +
configure: error: zlib required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install zlib1g-dev
 +
 
 +
 
 +
'''libjpeg'''
 +
 
 +
if this error message appears:
 +
configure: error: libjpeg required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libjpeg62-dev
 +
 
 +
'''libpng'''
 +
 
 +
if this error message appears:
 +
configure: error: libpng required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libpng12-dev
 +
 
 +
'''libbz2'''
 +
 
 +
if this error message appears:
 +
configure: error: libbz2 required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libbz2-dev
 +
 
 +
'''glu'''
 +
 
 +
if this error message appears:
 +
configure: error: glu required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libglu1-mesa-dev
 +
 
 +
'''SDL_ttf'''
 +
 
 +
if this error message appears:
 +
configure: error: SDL_ttf lib required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libsdl-ttf2.0-dev
 +
 
 +
'''liblualib50'''
 +
 
 +
if this error message appears:
 +
configure: line 7589: exit: liblualib50: numeric argument required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install liblualib50
 +
 
 +
 
 +
'''libcurl'''
 +
 
 +
if this error message appears:
 +
configure: error: libcurl required
 +
 
 +
in Debian/Ubuntu type:
 +
sudo apt-get install libcurl3-openssl-dev
 +
 
 +
 
 +
If you dont have any of these packages you can write this to install them all:
 +
sudo apt-get install libsdl-mixer1.2-dev liblua5.1-0-dev libode0-dev build-essential libsqlite3-dev zlib1g-dev libjpeg62-dev libpng12-dev libbz2-dev libglu1-mesa-dev libsdl-ttf2.0-dev liblualib50 libcurl3-openssl-dev automake libsdl-net1.2-dev

Latest revision as of 11:23, 26 November 2010

Deutsch - Català - Español - Norsk

Normal steps

Get the sources

The tarball is avaible on http://xmoto.tuxfamily.org/index.php?page=news.

Uncompress the tarball

tar zxf xmoto-x.y.z-src.tar.gz
cd xmoto-x.y.z

Compile

./configure [--prefix=/path_to_install]
make

Install

make install

Common errors

Did you install a compiler?

Some libraries are missing?

These commands should work in all debian based distros. List of debian based distros - http://distrowatch.com/dwres.php?resource=independence

In order to automatically install all the required packages (not including aclocal) in Debian/Ubuntu type:

sudo apt-get build-dep xmoto

aclocal

if this error message appears:

aclocal >= 1.9.6 is required !

in Debian/Ubuntu type:

sudo apt-get install automake

SDL_mixer

if this error message appears:

configure: error: SDL_mixer required

In Debian/Ubuntu type:

sudo apt-get install libsdl-mixer1.2-dev

liblua

if this error message appears:

configure: error: liblua5.1

in Debian/Ubuntu type:

sudo apt-get install liblua5.1-0-dev

libode0

if this error message appears:

configure: error: libode or libode0 required

in Debian/Ubuntu type (should work?):

sudo apt-get install libode0-dev

build-essential

if this error message appears:

configure: error: compiler can not create exectables

in Debian/Ubuntu type:

sudo apt-get install build-essential

sqlite3

if this error message appears:

configure: error: "sqlite3 required"

in Debian/Ubuntu type:

sudo apt-get install libsqlite3-dev

zlib

if this error message appears:

configure: error: zlib required

in Debian/Ubuntu type:

sudo apt-get install zlib1g-dev


libjpeg

if this error message appears:

configure: error: libjpeg required

in Debian/Ubuntu type:

sudo apt-get install libjpeg62-dev

libpng

if this error message appears:

configure: error: libpng required

in Debian/Ubuntu type:

sudo apt-get install libpng12-dev

libbz2

if this error message appears:

configure: error: libbz2 required

in Debian/Ubuntu type:

sudo apt-get install libbz2-dev

glu

if this error message appears:

configure: error: glu required

in Debian/Ubuntu type:

sudo apt-get install libglu1-mesa-dev

SDL_ttf

if this error message appears:

configure: error: SDL_ttf lib required

in Debian/Ubuntu type:

sudo apt-get install libsdl-ttf2.0-dev

liblualib50

if this error message appears:

configure: line 7589: exit: liblualib50: numeric argument required

in Debian/Ubuntu type:

sudo apt-get install liblualib50


libcurl

if this error message appears:

configure: error: libcurl required

in Debian/Ubuntu type:

sudo apt-get install libcurl3-openssl-dev


If you dont have any of these packages you can write this to install them all:

sudo apt-get install libsdl-mixer1.2-dev liblua5.1-0-dev libode0-dev build-essential libsqlite3-dev zlib1g-dev libjpeg62-dev libpng12-dev libbz2-dev libglu1-mesa-dev libsdl-ttf2.0-dev liblualib50 libcurl3-openssl-dev automake libsdl-net1.2-dev