Building and packaging on OSX

This page will explain how to build and packaged SuperTuxKart on mac OS X.

Please note that this is meant for developers and not casual users.

Also see Source control to obtain the source code from git.

Getting Started

sudo ln -s /System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ /usr/local/include/GL (you might need to create /usr/local/include/ first if you never built and installed anything from source! sudo mkdir -p /usr/local/include/)

On OSX 10.9.5 I had to use (FIXME): $ xcrun --show-sdk-path /Applications/ $ sudo ln -s /Applications/ /usr/include $ sudo ln -s /Applications/ /usr/local/include/OpenGL The first link in order to find libcurl, the second to find opengl.



You can use the CMake build system 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. The stk-assets directory has to be in the parent directory of stk-code


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/ -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9

You can generate a Xcode project by replacing the "cmake .." line with "cmake .. -GXcode"

This is not recommended because Xcode needs much more space on the disk than CMake with make

Retrieved from ""

User Tools