Compiling Kodi-Game

From Official Kodi Wiki
Revision as of 12:23, 4 April 2015 by Dippo (talk | contribs) (Created page with "This tutorial will show you the necessary steps to compile and run the Kodi-Game branch on an Ubuntu system. == Compile Kodi == Follow the steps in the [[HOW-TO:Compile_Kod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This tutorial will show you the necessary steps to compile and run the Kodi-Game branch on an Ubuntu system.

Compile Kodi

Follow the steps in the Kodi compile HOWTO. The only difference is to check out the correct branch. Instead of

git clone git://github.com/xbmc/xbmc.git

you will have to clone

git clone git://github.com/kodi-game/xbmc.git

For a development setup you do not need to install kodi to your root directory so you can stop right after the make command was successful.

Compile Addons

Game addons can be found at kodi-game github repository. You need at least the game.libretro addon and an emulator core e.g game.libretro.nestobia to test your setup and play some games. If you followed the howto you should now have a xbmc directory in your home directory containing the kodi.bin binary.

change to that directory

cd $HOME/xbmc

and start compiling addons

make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi/usr/local ADDONS="game.libretro"
make -C tools/depends/target/binary-addons cleanmake -C tools/depends/target/binary-addons clean

make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi/usr/local ADDONS="game.libretro.nestopia"
cp /home/markus/kodi/usr/local/lib/kodi/addons/game.libretro.nestopia/* $HOME/kodi/usr/local/share/kodi/addons/game.libretro.nestopia

Steps you have to perform because the Makefile is not complete at the moment

  • The clean step is required because the current Makefile refuses to build another addon if one has been built successful.
  • The copy step (last one) is required because kodi is searching for the nestopia binary in the share addon direcotry and not in the lib addon directory.

Run Kodi

Now you can start kodi with

$HOME/kodi/usr/local/lib/kodi/kodi.bin

You should now have a working kodi that can play nes roms (video + sound). Input is not working at the moment so unfortunately you cannot play.

If you have troubles following this guide please write to the forum or ask for help in the IRC channel. This page will then be updated to be more helpful.