[HOW-TO] Compile XBMC git master branch on Linux - Bluray optional
Compile XBMC master branch on Linux

This guide was originally published on my site. For clarity and brevity, I removed a few things (recompiling XBMC, managing different compiled XBMC versions, compiling with VirtualBox to always have a clean compiling environment, etc). I also removed a bunch of stuff explaining what the commands do. Consider this to be the quick guide and the original to be the I-wish-to-find-out-more-about-this-stuff guide. Either way, you will end up with a compiled from master XBMC. Original guide can be found in the above link or on my signature. Drop me a line, suggestion, whatever, either here or on the site.

These instructions are for Ubuntu 10.10 Maverick 32bits Desktop but can help you compile on other Linux distributions or previous Ubuntu versions.

I don't like to use sudo. If you do, add sudo before every command.
In order to change to superuser (root), you need to give it a password. Open terminal and issue the following command:

Quote:sudo passwd root

Change to root:


You are now the proud owner of superuser superpowers. Use them wisely!

Installing XBMC build dependencies

Quote:apt-get install git-core autopoint checkinstall libvdpau-dev libvdpau1 make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxtst-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmpeg3-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libwavpack-dev libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext

Add (almost) all dependencies with a few lines. Last time I tried, it didn't work as expected. Want to give it a try? Run

Quote:add-apt-repository ppa:team-xbmc-svn/ppa
apt-get update
apt-get build-dep xbmc

Either way, install all the dependencies needed.

Compile XBMC with Bluray support. If you don't want it, ignore and remove --enable-libbluray from the configure command. Warning: does not provide the ability to play protected Blurays, only unprotected. Add libbluray to the system

Quote:add-apt-repository ppa:hackurx/libbluray
apt-get update
apt-get install libbluray

Change to building directory and clone XBMC git

Quote:cd /usr/local/src
git clone git://github.com/xbmc/xbmc.git

Change to XBMC directory

Quote:cd xbmc

You are in XBMC git master branch but check it anyway

Quote:git checkout master

Building XBMC

./configure --prefix=/usr --disable-pulse --enable-libbluray --enable-vdpau
make -j3

The -j3 make switch controls how many cores to use when compiling. Set accordingly.

Quote:checkinstall -y --fstrans=no --install=yes --pkgname=hudo-xbmc --pkgversion="git`date +%Y%m%d`.`git rev-list --abbrev-commit --max-count=1 HEAD`"

Done! Go to Applications >> Sound & Video >> XBMC Media Center.
f**k..... started editing without sudo | M.K.

Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Thread Rating:
  • 0 Vote(s) - 0 Average

Messages In This Thread
[HOW-TO] Compile XBMC git master branch on Linux - Bluray optional - by h.udo - 2011-03-03, 18:48
[No subject] - by jmarshall - 2011-03-03, 22:29
sudo friendly version - by h.udo - 2011-03-03, 22:58
libbluray - by cipher_ - 2011-03-04, 01:03
[No subject] - by h.udo - 2011-03-04, 17:55
sqlite - by Grenti - 2011-03-04, 19:59
[No subject] - by h.udo - 2011-03-04, 21:52
[No subject] - by Grenti - 2011-03-04, 22:22
[No subject] - by h.udo - 2011-03-04, 23:03
[No subject] - by jmarshall - 2011-03-05, 03:37
[No subject] - by h.udo - 2011-03-05, 04:05
[No subject] - by jmarshall - 2011-03-05, 04:22
[No subject] - by davilla - 2011-03-05, 04:55
[No subject] - by Grenti - 2011-03-05, 07:16
[No subject] - by h.udo - 2011-03-05, 14:24
[No subject] - by h.udo - 2011-03-05, 14:41
[No subject] - by Reptilian - 2011-03-05, 19:28
[No subject] - by h.udo - 2011-03-06, 22:18
[No subject] - by h.udo - 2011-03-06, 22:26
[No subject] - by ctrlbrk - 2011-03-07, 02:36
[No subject] - by ctrlbrk - 2011-03-07, 02:55
[No subject] - by h.udo - 2011-03-07, 12:54
[No subject] - by ctrlbrk - 2011-03-08, 04:23
[No subject] - by simplechords - 2011-03-08, 04:41
[No subject] - by h.udo - 2011-03-08, 14:28
[No subject] - by simplechords - 2011-03-08, 17:32
[No subject] - by spiff - 2011-03-08, 17:41
[No subject] - by simplechords - 2011-03-08, 17:47
[No subject] - by h.udo - 2011-03-08, 19:08
[No subject] - by koko1967k - 2011-03-23, 10:57
[No subject] - by Henkske - 2011-05-29, 13:09
[No subject] - by Henkske - 2011-06-22, 21:38

Logout Mark Read Team Forum Stats Members Help
[HOW-TO] Compile XBMC git master branch on Linux - Bluray optional00
This forum uses Lukasz Tkacz MyBB addons.