Update Linux README file (#28)

Lauri Niskanen 2010-04-19 22:20:20 +02:00
parent 92088274de
commit bb1dae18af
1 changed files with 49 additions and 16 deletions

View File

@ -1,23 +1,46 @@
Requirements
============
To build on DEB-based Linux distributions (Debian, Ubuntu etc.) you need the following packages:
make gcc g++
automake autoconf
libc6-dev libx11-dev libxxf86vm-dev libxrandr-dev libxpm-dev libglew1.5-dev
libgl1-mesa-dev libpng12-dev libssl-dev libsdl1.2-dev libsdl-mixer1.2-dev
libgtk2.0-dev libjpeg62-dev zlib1g-dev libboost-dev
To build on DEB-based Linux distributions (Debian, Ubuntu etc.) you need the
following packages:
To build on RPM-based Linux distributions (Red Hat, Fedora, Mandariva, SuSE etc.) you need the following packages:
make gcc gcc-c++
automake autoconf
libX11-devel libXxf86vm-devel libXrandr-devel libXpm-devel glew-devel
mesa-libGL-devel libpng-devel openssl-devel SDL-devel SDL_mixer1.2-dev
gtk2-devel libjpeg-devel zlib-devel boost-devel
make gcc g++
cmake OR automake autoconf
libc6-dev libx11-dev libxxf86vm-dev libxrandr-dev libxpm-dev libglew1.5-dev
libgl1-mesa-dev libpng12-dev libssl-dev libsdl1.2-dev libsdl-mixer1.2-dev
libgtk2.0-dev libjpeg62-dev zlib1g-dev libboost-dev
To build on RPM-based Linux distributions (Red Hat, Fedora, Mandariva,
SuSE etc.) you need the following packages:
make gcc gcc-c++
cmake OR automake autoconf
libX11-devel libXxf86vm-devel libXrandr-devel libXpm-devel glew-devel
mesa-libGL-devel libpng-devel openssl-devel SDL-devel SDL_mixer1.2-dev
gtk2-devel libjpeg-devel zlib-devel boost-devel
Build
=====
Build using cmake
=====================
To build OpenClonk, execute the following command inside of the source tree:
cmake . && make
By default, the binary will be built without debugging support. If you want
to generate a debug build, pass the parameter -DCMAKE_BUILD_TYPE=Debug to
your cmake invocation.
Please note that you do not need to build a Debug binary if you only want to
debug C4Script code.
You can see other build variables with:
cmake . -N -L
Build using autotools
=====================
If you build from version control, you need to run this:
@ -27,8 +50,18 @@ To build from tarball, run this:
./configure && make
If you want a debug build, pass --enable-debug to configure, for the developer mode
--with-gtk. Other options are listed by ./configure --help.
If you want a debug build, pass --enable-debug to configure, for the developer
mode --with-gtk. Other options are listed by ./configure --help.
On subsequent build runs, you only have to execute make.
Running
=======
You need to move the compiled binary to the data folder before running. I
recommend using a symbolic link like this:
cd planet/
ln -s ../clonk
./clonk