Build STK on Linux

(CMake: Add mention of IRRLICHT_INCLUDE_DIR)
Line 40: Line 40:
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht</code>
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht</code>
-
to make a debug build add '''-DCMAKE_BUILD_TYPE=Debug''' like this:
+
Note: if Irrlicht is installed system-wide, it may sometimes be necessary to also add <tt>-DIRRLICHT_INCLUDE_DIR</tt>. This would then be set to the <tt>include</tt> directory in your Irrlicht directory, eg
 +
 
 +
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht -DIRRLICHT_INCLUDE_DIR=/full/path/to/irrlicht/include</code>
 +
 
 +
to make a debug build add <tt>-DCMAKE_BUILD_TYPE=Debug</tt> like this:
<code>cmake .. -DCMAKE_BUILD_TYPE=Debug</code>
<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 ''Debug'' with ''RelWithDebInfo'' 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.
And (optionally) to install:
And (optionally) to install:
Line 55: Line 59:
Our CMake build system is younger so we welcome success/failure stories :)
Our CMake build system is younger so we welcome success/failure stories :)
-
 
=== Autotools ===
=== Autotools ===

Revision as of 19:39, 12 June 2012

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

User Tools