Build STK on Linux

(CMake: Add mention of IRRLICHT_INCLUDE_DIR)
(CMake: Add mention of IRRLICHT_LIBRARY as suggested by claymore)
Line 40: Line 40:
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht</code>
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht</code>
-
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
+
Note: if Irrlicht is installed system-wide, it may sometimes be necessary to also add <tt>-DIRRLICHT_INCLUDE_DIR</tt> and <tt>-DIRRLICHT_LIBRARY</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>
+
<code>cmake .. -DIRRLICHT_DIR=/full/path/to/irrlicht -DIRRLICHT_INCLUDE_DIR=/full/path/to/irrlicht/include -DIRRLICHT_LIBRARY=/full/path/to/irrlicht/lib/Linux/libIrrlicht.a</code>
to make a debug build add <tt>-DCMAKE_BUILD_TYPE=Debug</tt> like this:
to make a debug build add <tt>-DCMAKE_BUILD_TYPE=Debug</tt> like this:

Revision as of 19:27, 28 June 2012

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

User Tools