Advertisement
Guest User

build kodi on pi 2

a guest
Feb 19th, 2015
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. ###this was done on a fresh 2015-01-31-raspbian.img
  2.  
  3. ##install some libs
  4. sudo apt-get install libboost-dev swig curl libgnutls-dev libxml2-dev libxslt1-dev libfreetype6-dev libfontconfig1-dev libfribidi-dev libmpeg2-4-dev libmad0-dev libjpeg8-dev libsamplerate0-dev libogg-dev libvorbis-dev libflac-dev libtiff4-dev liblzo2-dev cmake zip unzip libsqlite3-dev libpng12-dev libpcre3-dev libjasper-dev libsdl1.2-dev libsdl-image1.2-dev libass-dev libmodplug-dev libcdio-dev libtinyxml2-dev libyajl-dev libgpg-error-dev libgcrypt11-dev libmicrohttpd-dev autoconf libtool autopoint libudev-dev python-dev python-imaging libmysqlclient-dev libcurl4-gnutls-dev libbz2-dev libtinyxml-dev libssh-dev libxrandr-dev libsmbclient-dev libcap-dev gawk gperf debhelper libiso9660-dev
  5.  
  6. ###cloning master branch of kodi
  7. git clone git://github.com/xbmc/xbmc.git
  8.  
  9. ### apply manually in /configure.in and /tools/depends/configure.in to get new cpu optimizations
  10. http://www.intestinate.com/pilfs/patches/xbmc-14.1-Helix-rpi2-target.patch
  11. ###
  12.  
  13. ### optional, build new libcec (did not work afterwards, configure told cec support=yes, but cec not working in kodi!)
  14. git clone git://github.com/Pulse-Eight/libcec.git
  15. cd libcec
  16. ./bootstrap
  17. ./configure
  18. make -j4
  19. sudo make install
  20. ###
  21.  
  22. ### do yourself a favor an do NEVER install libtag from repo, this took me quite some time to mess around with)
  23. ### more info http://forum.kodi.tv/showthread.php?tid=143269
  24. ### instead build included libtag
  25. cd xbmc/lib/taglib
  26. make -j4
  27. sudo make install
  28. cd
  29. ###
  30.  
  31.  
  32. ### and so it begins
  33. cd xbmc
  34. ./bootstrap
  35.  
  36. ### those options include way too much, but just wanted to check some things out, you may need to --disable-libcec
  37. ### takes some time due building ffmpeg
  38. CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" CXXFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" LDFLAGS="-L/opt/vc/lib" ./configure --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --enable-player=omxplayer --disable-avahi --enable-libcec
  39.  
  40. ## yay 4 cores :-)
  41. make -j4
  42.  
  43. ##aaand install
  44. sudo make install
  45. ###
  46.  
  47. ###make keyboard work for non-root (here user 'pi' inside search-fields)
  48. sudo usermod -aG tty pi
  49. sudo su -c 'echo "KERNEL==\"tty[0-9]*\", GROUP=\"tty\", MODE=\"0660\"" >> /etc/udev/rules.d/99-input.rules'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement