HOW-TO:Compile Kodi for Debian or Ubuntu

From Official Kodi Wiki
Revision as of 12:43, 10 July 2018 by Kibje (talk | contribs) (syntaxhighlight fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home icon grey.png   ▶ Development ▶ Compiling ▶ HOW-TO:Compile Kodi for Debian or Ubuntu
Warning: This page is deprecated.
Starting with Kodi v18 "Leia", Kodi's build guides are kept alongside the code, where it is much easier to keep them up-to-date with current code.

This is a tutorial on how to compile and install XBMC on Debian or Ubuntu

1 Checkout with Git

Development has moved to git, rather than subversion. You will need git installed to do this.

sudo apt-get install git
git clone git://

Note that the above will download the latest development version; if you want to compile a stable branch, you will need to name it explicitly. e.g. to clone Kodi 16.0 "Jarvis":

sudo apt-get install git
git clone -b Jarvis git://

2 Install Packages

You'll have to install the necessary dependencies. First do this.

sudo apt-get update


sudo apt-get build-dep kodi

3 Configure

cd xbmc

If you wish to use supported system libraries do this instead.


In either case, with the above installed packages this should go smoothly.

4 Build


5 Install

sudo make install

When this completes you are done!

You may either go into a terminal session or press Alt+F2. Then type 'xbmc'.

NOTE: On certain versions of Ubuntu, you may get a segmentation fault due to libcurl. This is resolved by creating a symbolic link in /usr/lib

cd /usr/lib
sudo ln -s

6 See also