Compiling Kodi-Game

From Official Kodi Wiki
Jump to navigation Jump to search
Home icon grey.png   ▶ Kodi Game ▶ Compiling Kodi-Game

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

Compiling Kodi and binary add-ons

Start by following the steps in the Kodi compile HOWTO. The only difference is you will need to clone the RetroPlayer branch

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


It is recommended that you build add-ons out-of-tree (other compiling options are available here).

mkdir binary-addons
cd binary-addons

cmake -DADDONS_TO_BUILD="peripheral.joystick game.libretro game.libretro.nestopia" \
      -DCMAKE_BUILD_TYPE=Debug \
      -DCMAKE_INSTALL_PREFIX=$HOME/workspace/xbmc/addons \
      -DPACKAGE_ZIP=1 \
      $HOME/workspace/xbmc/project/cmake/addons

make

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 clean

make -C tools/depends/target/binary-addons PREFIX=$HOME/kodi/usr/local ADDONS="game.libretro.nestopia"
cp $HOME/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.