Difference between revisions of "HOW-TO:Compile Kodi for Debian or Ubuntu"

From Official Kodi Wiki
Jump to: navigation, search
m (syntaxhighlight fix)
 
Line 7: Line 7:
 
Development has moved to git, rather than subversion.  You will need git installed to do this.
 
Development has moved to git, rather than subversion.  You will need git installed to do this.
  
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang=bash>
 
sudo apt-get install git
 
sudo apt-get install git
 
git clone git://github.com/xbmc/xbmc.git
 
git clone git://github.com/xbmc/xbmc.git
Line 14: Line 14:
 
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":
 
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":
  
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang=bash>
 
sudo apt-get install git
 
sudo apt-get install git
 
git clone -b Jarvis git://github.com/xbmc/xbmc.git
 
git clone -b Jarvis git://github.com/xbmc/xbmc.git
Line 23: Line 23:
 
You'll have to install the necessary dependencies. First do this.
 
You'll have to install the necessary dependencies. First do this.
  
<syntaxhighlight lang="bash" enclose="div">
+
<syntaxhighlight lang=bash enclose="div">
 
sudo apt-get update
 
sudo apt-get update
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
Then
 
Then
<syntaxhighlight lang="bash" enclose="div">
+
<syntaxhighlight lang=bash enclose="div">
 
sudo apt-get build-dep kodi
 
sudo apt-get build-dep kodi
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 34: Line 34:
 
=== Configure ===
 
=== Configure ===
  
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang=bash>
 
cd xbmc
 
cd xbmc
 
./bootstrap
 
./bootstrap
Line 41: Line 41:
 
If you wish to use supported system libraries do this instead.
 
If you wish to use supported system libraries do this instead.
  
<syntaxhighlight lang="bash">./configure</syntaxhighlight>
+
<syntaxhighlight lang=bash>./configure</syntaxhighlight>
  
 
In either case, with the above installed packages this should go smoothly.
 
In either case, with the above installed packages this should go smoothly.
Line 47: Line 47:
 
=== Build ===
 
=== Build ===
  
<syntaxhighlight lang="bash">make</syntaxhighlight>
+
<syntaxhighlight lang=bash>make</syntaxhighlight>
  
 
=== Install ===
 
=== Install ===
  
<syntaxhighlight lang="bash">sudo make install</syntaxhighlight>
+
<syntaxhighlight lang=bash>sudo make install</syntaxhighlight>
  
 
When this completes you are done!
 
When this completes you are done!
Line 60: Line 60:
 
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
 
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
  
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang=bash>
 
cd /usr/lib
 
cd /usr/lib
 
sudo ln -s libcurl-gnutls.so.4 libcurl.so.4
 
sudo ln -s libcurl-gnutls.so.4 libcurl.so.4

Latest revision as of 12:43, 10 July 2018

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://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

Then

sudo apt-get build-dep kodi

3 Configure

cd xbmc
./bootstrap
./configure

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

./configure

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

4 Build

make

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 libcurl-gnutls.so.4 libcurl.so.4

6 See also