2011-03-03, 18:48
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:
Change to root:
You are now the proud owner of superuser superpowers. Use them wisely!
Installing XBMC build dependencies
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
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
Change to building directory and clone XBMC git
Change to XBMC directory
You are in XBMC git master branch but check it anyway
Building XBMC
The -j3 make switch controls how many cores to use when compiling. Set accordingly.
Done! Go to Applications >> Sound & Video >> XBMC Media Center.
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:
Quote:su
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
Quote:./bootstrap
./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.