hiker 90f4855938 Only do default assignments of stk- to steam-accounts on first | 7 лет назад | |
---|---|---|
android | 7 лет назад | |
cmake | 7 лет назад | |
data | 7 лет назад | |
doc | 8 лет назад | |
lib | 7 лет назад | |
src | 7 лет назад | |
tools | 7 лет назад | |
.appveyor.yml | 7 лет назад | |
.gitignore | 7 лет назад | |
.travis.yml | 7 лет назад | |
CHANGELOG.md | 8 лет назад | |
CMakeLists.txt | 7 лет назад | |
COPYING | 12 лет назад | |
README.md | 7 лет назад | |
sources.cmake | 7 лет назад |
SuperTuxKart is a free kart racing game. It focuses on fun and not on realistic kart physics. Instructions can be found on the in-game help page.
The SuperTuxKart homepage can be found at https://supertuxkart.net/. There is also our FAQ and information on how get in touch with the community
This software is released under the GNU General Public License (GPL) which can be found in the file COPYING
in the same directory as this file. Information about the licenses for artwork are contained in data/licenses
.
A reminder for those looking at the code and 3d models:
STK : X right, Y up, Z forwards
Blender: X right, Y forwards, Z up
The exporters perform the needed transform, so in Blender you just work with XY plane as ground, and things will appear fine in STK (using XZ as ground in the code, obviously).
First, you need both the code and the assets (See https://supertuxkart.net/Source_control for more information):
git clone https://github.com/supertuxkart/stk-code
svn checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets
Install the following packages:
Ubuntu command:
sudo apt-get install build-essential cmake libbluetooth-dev \
libcurl4-gnutls-dev libfreetype6-dev libfribidi-dev libgl1-mesa-dev \
libjpeg-dev libogg-dev libopenal-dev libpng-dev libvorbis-dev libxrandr-dev \
mesa-common-dev pkg-config zlib1g-dev
In order to build the in-game recorder for STK, you have to install
libopenglrecorder from your distribution or compile it yourself, get it here.
Compilation instruction is explained there, if you don't need such feature,
pass -DBUILD_RECORDER=off
to cmake.
Compile SuperTuxKart:
mkdir cmake_build
cd cmake_build
cmake ..
make -j4
STK can then be run from the build directory with bin/supertuxkart
To create a debug version of STK, use:
cmake .. -DCMAKE_BUILD_TYPE=Debug
You can install your build system-wide:
sudo make install
The default install location is /usr/local
, i.e. the data files will
be written to /usr/local/share/games/supertuxkart
, the executable
will be copied to /usr/local/bin
. To change the default installation
location, specify CMAKE_INSTALL_PREFIX
when running cmake, e.g.:
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/stk
Install developer tools, either from the OS X Install DVD or from Apple's website.
If you have never built anything before, you have create /usr/local/include/
first:
sudo mkdir -p /usr/local/include/
Symlink the include
-folder of OpenGL framework to /usr/local/include/GL
(Unix programs have an easier time finding it this way):
sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ /usr/local/include/GL
On OS X 10.9.5, you might need the following workaround:
sudo ln -s `xcrun --show-sdk-path`/usr/include/ /usr/include
sudo ln -s `xcrun --show-sdk-path`/System/Library/Frameworks/OpenGL.framework/Headers/ /usr/local/include/OpenGL
The first link is required in order to find libcurl, the second to find opengl.
Download pre-built dependencies from here and put the frameworks in [hard disk root]/Library/Frameworks
CMake is used to build STK. At this time CMake will not make a binary that is ready for distribution.
You'll have to run these commands inside your stk-code directory.
With clang:
mkdir cmake_build
cd cmake_build
cmake ..
make
With GCC :
mkdir cmake_build
cd cmake_build
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_C_COMPILER=/usr/bin/gcc
make
Building on 10.10 with 10.9 compat
cmake .. -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
Place an additional copy of the dependencies into Users/<YOUR_USERNAME>/Library/Frameworks
.
Then cd to your cloned stk-code directory and execute the following commands:
mkdir xcode_build && cd xcode_build
cmake .. -GXcode
Use Finder to navigate to your stk-code/xcode_build folder and open the newly generated Xcode project (SuperTuxKart.xcodeproj).
You can then build the project in Xcode using Product -> Build
Note: Xcode is much less well tested than makefiles, so there may be issues when trying to use Xcode.