日期:2014-05-16  浏览次数:20724 次

在ubuntu Linux上编译xbmc

1.下载最新的xbmc代码:

?

?# sudo apt-get install git-core

?# cd $HOME

?# git clone git://github.com/xbmc/xbmc.git xbmc

2.安装依赖包:

?

For Ubuntu (all versions >= 7.04):

?

? ?# sudo apt-get install git-core build-essential 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 libasound2-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 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 libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs python-dev libyajl-dev libboost-thread-dev libplist-dev libusb-dev libudev-dev libtinyxml-dev

?

For >= 10.10:

? ?# sudo apt-get install autopoint libltdl-dev

?

?

3.添加ppa的source list

打开:https://launchpad.net/~team-xbmc#ppas

?

XBMC PPA
XBMC Unstable

XBMC Build Dependencies PPA

libCEC

然后点击页面上的:

Technical details about this PPA

然后选择ubuntu版本

Display sources.list entries for:??Choose your Ubuntu version?Precise (12.04)?Oneiric (11.10)?Natty (11.04)?Maverick (10.10)?Lucid (10.04)?Karmic (9.10)?Jaunty (9.04)?Hardy (8.04)?

然后将:

?

deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main 
deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu lucid main 

添加到系统软件源中:

在系统工具中使用Ubuntu tweak进行添加

在XBMC Unstable页面上依赖libCEC?(included on 2011-11-15),将这个也使用上面的方法添加到软件源中。

4.下载依赖的库

$ sudo apt-get update

$ sudo apt-get build-dep xbmc

5.编译

$ ./bootstrap

$ ./configure?

$ make

6.安装运行

$ make install

?$ ./xbmc.bin

?

?

?