Build STK on Linux

(Using Eclipse)
(Using Eclipse)
Line 61: Line 61:
If you want to use the eclipse ide, use the following approach:
If you want to use the eclipse ide, use the following approach:
-
In cmake_build :
+
In the trunk :
     mkdir cmake_build
     mkdir cmake_build
     cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
     cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
Line 67: Line 67:
This will generate project files based on the cmake files.
This will generate project files based on the cmake files.
-
Now open Eclipse, Import -> Existing projects into workspace, browse to the trunk and import the project.
+
Now you can open Eclipse, Import -> Existing projects into workspace, browse to the trunk and import the build project.
-
Right-click the project -> New -> Convert to C++ Project
+
I recommend making a new project, with the trunk as directory, so that you can actually browse the source in the IDE and use the SVN plugins.
 +
 
 +
Now right-click on this project -> New -> Convert to C++ Project (Possibly not needed if you made a C++ project in the previous step.)
Right-click the project -> properties -> C/C++ Build
Right-click the project -> properties -> C/C++ Build
* Uncheck "Use default build command"
* Uncheck "Use default build command"
* Enter as build command "make VERBOSE=1 -j2" (replace 2 by the number of cores)
* Enter as build command "make VERBOSE=1 -j2" (replace 2 by the number of cores)
 +
 +
Now you can build the project by :
 +
* Right-click project -> Build Project
 +
* Or by using the build button at the top
 +
 +
For easier code browsing an making use of Eclipse features :
 +
C/C++ Build -> Discovery options
C/C++ Build -> Discovery options
* Automate discovery of path and symbols
* Automate discovery of path and symbols
Line 80: Line 89:
Right-click project -> index -> rebuild
Right-click project -> index -> rebuild
-
 
-
Now you can build the project by :
 
-
* Right-click project -> Build Project
 
-
* Or by using the build button at the top
 

Revision as of 19:28, 17 June 2013

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

User Tools