Difference between revisions of "Build for Unix (like GNU/Linux)"
m (Apt-get updated stuff) |
Wiki.xmoto (talk | contribs) m (Reverted edits by Opofefemucu (Talk) to last revision by Spydon) |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
= Normal steps = | = Normal steps = | ||
== Get the sources == | == Get the sources == | ||
− | The tarball is avaible on [http://xmoto. | + | 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 19: | Line 19: | ||
== Did you install a compiler? == | == Did you install a compiler? == | ||
== Some libraries 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''' | '''SDL_mixer''' | ||
Line 25: | Line 40: | ||
configure: error: SDL_mixer required | configure: error: SDL_mixer required | ||
− | In Ubuntu type: | + | In Debian/Ubuntu type: |
sudo apt-get install libsdl-mixer1.2-dev | sudo apt-get install libsdl-mixer1.2-dev | ||
Line 33: | Line 48: | ||
configure: error: liblua5.1 | configure: error: liblua5.1 | ||
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install liblua5.1-0-dev | sudo apt-get install liblua5.1-0-dev | ||
Line 41: | Line 56: | ||
configure: error: libode or libode0 required | configure: error: libode or libode0 required | ||
− | in Ubuntu type (should work?): | + | in Debian/Ubuntu type (should work?): |
sudo apt-get install libode0-dev | sudo apt-get install libode0-dev | ||
Line 49: | Line 64: | ||
configure: error: compiler can not create exectables | configure: error: compiler can not create exectables | ||
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install build-essential | sudo apt-get install build-essential | ||
Line 55: | Line 70: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: "sqlite3 required" | + | configure: error: "sqlite3 required" |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libsqlite3-dev | sudo apt-get install libsqlite3-dev | ||
Line 63: | Line 78: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: zlib required | + | configure: error: zlib required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install zlib1g-dev | sudo apt-get install zlib1g-dev | ||
Line 72: | Line 87: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: libjpeg required | + | configure: error: libjpeg required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libjpeg62-dev | sudo apt-get install libjpeg62-dev | ||
Line 80: | Line 95: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: libpng required | + | configure: error: libpng required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libpng12-dev | sudo apt-get install libpng12-dev | ||
Line 88: | Line 103: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: libbz2 required | + | configure: error: libbz2 required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libbz2-dev | sudo apt-get install libbz2-dev | ||
Line 96: | Line 111: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: glu required | + | configure: error: glu required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libglu1-mesa-dev | sudo apt-get install libglu1-mesa-dev | ||
Line 104: | Line 119: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: SDL_ttf lib required | + | configure: error: SDL_ttf lib required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install libsdl-ttf2.0-dev | sudo apt-get install libsdl-ttf2.0-dev | ||
Line 112: | Line 127: | ||
if this error message appears: | if this error message appears: | ||
− | configure: line 7589: exit: liblualib50: numeric argument required | + | configure: line 7589: exit: liblualib50: numeric argument required |
− | in Ubuntu type: | + | in Debian/Ubuntu type: |
sudo apt-get install liblualib50 | sudo apt-get install liblualib50 | ||
Line 121: | Line 136: | ||
if this error message appears: | if this error message appears: | ||
− | configure: error: libcurl required | + | 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 | + | 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
Contents
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