Compiling Kodi-Game: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
m (CamelCase RetroPlayer)
Line 3: Line 3:
This tutorial will show you the necessary steps to compile and run the Kodi-Game branch on an Ubuntu system.  
This tutorial will show you the necessary steps to compile and run the Kodi-Game branch on an Ubuntu system.  


== Compile Kodi ==
== Compiling Kodi and binary add-ons ==
 
Start by following the steps in the [[HOW-TO:Compile_Kodi_for_Linux|Kodi compile HOWTO]]. The only difference is you will need to clone the RetroPlayer branch


Follow the steps in the [[HOW-TO:Compile_Kodi_for_Linux|Kodi compile HOWTO]]. The only difference is to check out the correct branch. Instead of
<source lang="bash">
<source lang="bash">
git clone git://github.com/xbmc/xbmc.git
git clone https://github.com/garbear/xbmc.git
</source>
</source>
you will have to clone
 
 
It is recommended that you build add-ons out-of-tree (other compiling options are available [https://github.com/kodi-game/game.libretro here]).
 
<source lang="bash">
<source lang="bash">
git clone git://github.com/kodi-game/xbmc.git
mkdir binary-addons
</source>
cd binary-addons


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. For this guide we will install kodi to your users home directory.
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


<source lang="bash">
make
make install DESTDIR=$HOME/kodi
</source>
</source>



Revision as of 22:14, 20 April 2015

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.