{"id":9715,"date":"2018-04-20T15:14:53","date_gmt":"2018-04-20T06:14:53","guid":{"rendered":"https:\/\/www.hardkernel.com\/?p=9715"},"modified":"2018-12-10T11:11:32","modified_gmt":"2018-12-10T02:11:32","slug":"supertuxkart-on-odroid-xu4","status":"publish","type":"post","link":"https:\/\/www.hardkernel.com\/ko\/blog-2-ko\/supertuxkart-on-odroid-xu4\/","title":{"rendered":"SuperTuxKart on ODROID-XU4"},"content":{"rendered":"<p>Karts. Nitro. Action!\u00a0<b>SuperTuxKart<\/b>(STK) is a 3D open-source arcade racer with a variety characters, tracks, and modes to play.<br \/>\nSuperTuxKart is a free kart racing game. It focuses on fun and not on realistic kart physics.<\/p>\n<p><span style=\"font-family: arial;\">Recently, STK developers updated their source code to support the OpenGL-ES 3.x and we can play the nice game on the ODROID-XU4 natively.<br \/>\n<img decoding=\"async\" src=\"https:\/\/supertuxkart.net\/images\/thumb\/f\/f9\/Stk093_CandelaCity.jpg\/800px-Stk093_CandelaCity.jpg\" \/><\/span><\/p>\n<p>Let&#8217;s try to compile the source code and build it! This instruction was tested on the official Ubuntu 16.04 image version 20171212.<br \/>\n<span style=\"font-family: arial;\">If you are an OGST image user, simply install it with &#8220;apt-get install supertuxkart-odroid&#8221;.<\/span><\/p>\n<p>1. Install required packages to build the source code.<\/p>\n<pre>sudo apt install git 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 libtool subversion<\/pre>\n<p>2. Download the latest STK source code from the official Github.<\/p>\n<pre>git clone https:\/\/github.com\/supertuxkart\/stk-code stk-code<\/pre>\n<p>You have to download the game assets too from SVN. It took quite long time.<\/p>\n<pre>svn co https:\/\/svn.code.sf.net\/p\/supertuxkart\/code\/stk-assets stk-assets<\/pre>\n<p>3. Apply a patch to fix the color depth issue and OpenGL ES 3.x support.<\/p>\n<pre>cd stk-code\r\nwget -O supertuxkart.patch https:\/\/pastebin.com\/raw\/ZpB2CjZy\r\npatch -p0 &lt; supertuxkart.patch<\/pre>\n<p>The patch was made by @AreaScout forum member.<\/p>\n<p>4. Compiling<\/p>\n<pre>mkdir cmake_build\r\ncd cmake_build\r\ncmake .. -DUSE_GLES2=1\r\nmake -j8<\/pre>\n<p>Compiling took around 30 minutes.<\/p>\n<p>5. Test and install<br \/>\nRun the game with this command since 720p mode shows much better performance than 1080p.<\/p>\n<pre>DISPLAY=:0.0 .\/bin\/supertuxkart --screensize=1280x720 --fullscreen<\/pre>\n<p>You can install your build system-wide:<\/p>\n<pre>sudo make install<\/pre>\n<p>OpenGL ES 3.x shows more detail and beautiful 3D rendering than 2.0. Look at the racing circuit floor.<\/p>\n<p><span style=\"font-family: arial;\">OpenGL ES3.x<\/span><br \/>\n<span style=\"font-family: arial;\"><img decoding=\"async\" src=\"https:\/\/oph.mdrjr.net\/meveric\/other\/pictures\/STK\/GLESv3.png\" alt=\"Image\" \/><\/span><\/p>\n<p><span style=\"font-family: arial;\">OpenGL ES2.0<br \/>\n<\/span><span style=\"font-family: arial;\"><img decoding=\"async\" src=\"https:\/\/oph.mdrjr.net\/meveric\/other\/pictures\/STK\/GLESv2.png\" alt=\"Image\" \/><\/span><\/p>\n<p>References.<br \/>\nSource code :\u00a0<a href=\"https:\/\/github.com\/supertuxkart\/stk-code\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/supertuxkart\/stk-code<\/a><br \/>\nDiscussion\u00a0\u00a0 :\u00a0<a href=\"https:\/\/forum.odroid.com\/viewtopic.php?f=98&amp;t=29319\" target=\"_blank\" rel=\"noopener\">https:\/\/forum.odroid.com\/viewtopic.php?f=98&amp;t=29319<\/a><br \/>\ndeb package :\u00a0<a href=\"https:\/\/forum.odroid.com\/viewtopic.php?f=91&amp;t=29366\" target=\"_blank\" rel=\"noopener\">https:\/\/forum.odroid.com\/viewtopic.php?f=91&amp;t=29366<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Karts. Nitro. Action!\u00a0SuperTuxKart(STK) is a 3D open-source arcade racer with a variety characters, tracks, and modes to play. SuperTuxKart is a free kart racing game. It focuses on fun and not on realistic kart physics. Recently, STK developers updated their source code to support the OpenGL-ES 3.x and we can play the nice game on [&#8230;]\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20906],"tags":[20878],"class_list":["post-9715","post","type-post","status-publish","format-standard","hentry","category-blog-2-ko","tag-odroid-xu4"],"_links":{"self":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/comments?post=9715"}],"version-history":[{"count":2,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9715\/revisions"}],"predecessor-version":[{"id":12100,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/posts\/9715\/revisions\/12100"}],"wp:attachment":[{"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/media?parent=9715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/categories?post=9715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hardkernel.com\/ko\/wp-json\/wp\/v2\/tags?post=9715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}