How to build the Windows version

(Instructions for Compiling)
(Instructions for Compiling)
 
Line 4: Line 4:
* Install VS 2013 or later. The free express versions work fine. Visual Studio Community, a free version that is licensed for open-source projects, can be found [https://www.dreamspark.com/Product/Product.aspx?productid=89 here].
* Install VS 2013 or later. The free express versions work fine. Visual Studio Community, a free version that is licensed for open-source projects, can be found [https://www.dreamspark.com/Product/Product.aspx?productid=89 here].
* Download and install a source package - either a released package or from our [http://supertuxkart.sourceforge.net/Source_control git/svn repositories]. You can use [https://windows.github.com GitHub for Windows] to do this step.
* Download and install a source package - either a released package or from our [http://supertuxkart.sourceforge.net/Source_control git/svn repositories]. You can use [https://windows.github.com GitHub for Windows] to do this step.
-
* Download the latest dependency package, depdendencies_for_0.9.2.zip from [http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart%20Dependencies/Windows/dependencies_for_0.9.2.zip/downloadhere]. Unzip it in the root directory, so that the dependencies directory is next to the src and data directory (if you are updating from a previous dependency package, you can delete the .dll files in the root directory, they are not needed anymore).
+
* Download the latest dependency package, depdendencies_for_0.9.2.zip from [http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart%20Dependencies/Windows/dependencies_for_0.9.2.zip/download here]. Unzip it in the root directory, so that the dependencies directory is next to the src and data directory (if you are updating from a previous dependency package, you can delete the .dll files in the root directory, they are not needed anymore).
* Download the latest assets. You can use [http://www.sliksvn.com/en/download svn] or [http://tortoisesvn.net/downloads.html tortoisesvn]. Run this command in the folder where you want to put SuperTuxKart (needs to be right beside the git/svn repository you cloned in the second step). <code>svn checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets</code> These two repositories should be downloaded in the same folder, so that folders "stk-code" and "stk-assets" are next to each other.
* Download the latest assets. You can use [http://www.sliksvn.com/en/download svn] or [http://tortoisesvn.net/downloads.html tortoisesvn]. Run this command in the folder where you want to put SuperTuxKart (needs to be right beside the git/svn repository you cloned in the second step). <code>svn checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets</code> These two repositories should be downloaded in the same folder, so that folders "stk-code" and "stk-assets" are next to each other.
* Download [http://www.cmake.org cmake] and install it. Then start cmake-gui and select the STK code directory (stk-code by default) as 'Where is the source code', and a new directory in the root directory (next to src, data etc) as build directory. Use a folder name “bld” or “build” (for now I assume that this directory is called bld).
* Download [http://www.cmake.org cmake] and install it. Then start cmake-gui and select the STK code directory (stk-code by default) as 'Where is the source code', and a new directory in the root directory (next to src, data etc) as build directory. Use a folder name “bld” or “build” (for now I assume that this directory is called bld).

Latest revision as of 02:03, 23 October 2015

This page describes the build and packaging process on Windows. You need Visual Studio 2013 (or higher), the free express version works fine. Visual Studio Community, a free version that is licensed for open-source projects, can be found here. VS 2012 and earlier do not compile STK anymore. You have to follow the instructions in order – later steps will not work unless previous steps are completed.

Instructions for Compiling

You can also start STK from the command line: change into STK's root directory, and do: ./bld/Release/supertuxkart.exe

Instructions for Creating the Installer

Note that this step is only necessary if you want to create an installer package. To just run or debug STK, only the above Instructions for Compiling need to be followed.

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

User Tools