Build STK on Linux

(refactoring)
m (Installing dependencies)
 
Line 12: Line 12:
* Fedora
* Fedora
-
<code>yum install gcc-c++ autoconf automake git-core libogg-devel libvorbis-devel openal-soft-devel fribidi-devel subversion libcurl-devel cmake libbluedevil-devel.x86_64</code>
+
<code>yum install gcc-c++ autoconf automake git-core libogg-devel libvorbis-devel libXrandr-devel mesa-libGL-devel mesa-libGLU-devel openal-soft-devel fribidi-devel subversion libcurl-devel cmake libbluedevil-devel</code>
* Ubuntu/Debian
* Ubuntu/Debian
-
<code>sudo apt-get install autoconf automake build-essential cmake git libogg-dev libvorbis-dev libopenal-dev libxxf86vm-dev libgl1-mesa-dev libglu1-mesa-dev libcurl4-openssl-dev libfribidi-dev libbluetooth-dev subversion libxrandr-dev</code>
+
<code>sudo apt-get install autoconf automake build-essential cmake git libogg-dev libvorbis-dev libopenal-dev libxxf86vm-dev libgl1-mesa-dev libglu1-mesa-dev libcurl4-openssl-dev libfribidi-dev libfreetype6-dev libbluetooth-dev subversion libxrandr-dev zlib1g-dev libpng12-dev libjpeg-turbo8-dev libsm-dev</code>
== Obtain code and assets ==
== Obtain code and assets ==
Line 34: Line 34:
== Building SuperTuxKart ==
== Building SuperTuxKart ==
-
Then build SuperTuxKart using CMake:
+
Next, build SuperTuxKart using CMake:
<code>cd stk-code
<code>cd stk-code
Line 45: Line 45:
You can speed up compilation heavily by changing the number behind <tt>-j</tt> to the number of cores you have.
You can speed up compilation heavily by changing the number behind <tt>-j</tt> to the number of cores you have.
-
There is a varity of possible CMake options. THe most important ones are listed below:
+
=== CMake Options ===
 +
There is a varity ofCMake options. The most important ones are listed below:
* To make a debug build add <tt>-DCMAKE_BUILD_TYPE=Debug</tt> like this: <code>cmake .. -DCMAKE_BUILD_TYPE=Debug</code>
* To make a debug build add <tt>-DCMAKE_BUILD_TYPE=Debug</tt> like this: <code>cmake .. -DCMAKE_BUILD_TYPE=Debug</code>
-
* Another option is to build the regular release version with its optimizations, but with debugging symbols still enabled. Replace the <tt>Debug</tt> with <tt>RelWithDebInfo</tt> for that.
+
* Another option is to build the regular release version with its optimizations, but with debugging symbols still enabled. Replace the <tt>Debug</tt> with <tt>RelWithDebInfo</tt> for that, ie: <code>cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo</code>
* wiiuse can be enable with <code>-DUSE_WIIUSE=yes</code>
* wiiuse can be enable with <code>-DUSE_WIIUSE=yes</code>
Line 67: Line 68:
<code>cd stk-code
<code>cd stk-code
git pull
git pull
 +
cd cmake_build
make -j2
make -j2
-
cd ../stk-assets
+
cd ../../stk-assets
svn update</code>
svn update</code>

Latest revision as of 22:06, 18 March 2016

Retrieved from "http://supertuxkart.sourceforge.net/Build_STK_on_Linux"

User Tools