HOW-TO:Compile Kodi for Debian or Ubuntu
|Development||Compiling||HOW-TO:Compile Kodi for Debian or Ubuntu|
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://github.com/xbmc/xbmc.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://github.com/xbmc/xbmc.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
cd xbmc ./bootstrap ./configure
If you wish to use supported system libraries do this instead.
In either case, with the above installed packages this should go smoothly.
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 libcurl-gnutls.so.4 libcurl.so.4