Instructions (Tested on Pi2 and Pi3):
- Clone repository
git clone https://github.com/popcornmix/xbmc cd xbmc
- Apply ffmpeg patch
Edit: tools/depends/target/ffmpeg/autobuild.sh
and add the following between line 132 & 133--cpu=cortex-a7 \
- install dependencies
sudo apt-get install automake autopoint bison build-essential ccache cmake curl cvs default-jre fp-compiler gawk gdc gettext git-core gperf libasound2-dev libass-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libbluetooth-dev libbluray-dev libbluray1 libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcec-dev libcec3 libcurl3 libcurl4-gnutls-dev libcwiid-dev libcwiid1 libdbus-1-dev libenca-dev libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libgnutls28-dev librtmp-dev libglew-dev libiso9660-dev libjasper-dev libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev libmicrohttpd-dev libmodplug-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev libmysqlclient-dev libnfs-dev libogg-dev libpcre3-dev libplist-dev libpng-dev libpostproc-dev libpulse-dev libsamplerate-dev libsdl-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libshairport-dev libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev libva-egl1 libva-tpi1 libvdpau-dev libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev libegl1-mesa-dev libgles2-mesa-dev libtag1-dev libcrossguid-dev uuid-dev mesa-utils nasm pmount python-dev python-imaging python-sqlite swig unzip yasm zip zlib1g-dev
- Run Bootstrap
./bootstrap
- Run configure, this will take a long time
./configure --prefix=/usr/local --enable-ccache --enable-external-libraries --disable-goom --disable-hal --disable-vaapi --disable-vdpau --enable-avahi --disable-libbluray --disable-dvdcss --disable-debug --disable-joystick --enable-mid --disable-nfs --disable-profiling --enable-rsxs --enable-rtmp --disable-vaapi --disable-vdadecoder --disable-external-ffmpeg --disable-optical-drive
- Make, DO NOT use make -j4, 1GB ram is not enough for compiling with four cores
./make -j3
- Get some coffee or Beer, Its going to take a long time
- Install
sudo make install
- Run
kodi
Thank you for this!
But I’ve got one problem – too slowly interface.. CPU load over 80% on all cores.
(RPi2, Ubuntu Mate 16.04)
Do you have the gpu driver enabled?
To check:
sudo apt-get mesa-utils
and then run
glxgears
If they work smoothly gpu driver is installed.
I am getting an error like this in Pi 3
Could not find a required library. Please see the README for your platform.
Are bootstrap, configure, and make files supposed to be in ffmpeg? They were not there after following the steps (assuming I didn’t mess up somehow), however I did find boostrap and configure in depends folder. No luck with make though.
Just a quick question: does this also apply to a current Raspbian version?
Thanks and Regards,
Xian
You can use Kodi on the raspberry pi since it is the open-source GPU driver which you will find very helpful. I have used this once but encountered with one problem then I have stopped using it.
It’s amazing for me to have a site, which is good in support of my know-how. thanks admin