{"id":604,"date":"2015-02-21T03:51:22","date_gmt":"2015-02-21T01:51:22","guid":{"rendered":"http:\/\/wp.oktay.com\/?p=604"},"modified":"2015-02-21T03:52:33","modified_gmt":"2015-02-21T01:52:33","slug":"build-kodi-xbmc-from-source","status":"publish","type":"post","link":"https:\/\/wp.oktay.com\/?p=604","title":{"rendered":"Build kodi \/ xbmc from source"},"content":{"rendered":"<p><code> git clone git:\/\/github.com\/OpenELEC\/OpenELEC.tv.git<\/code><br \/>\n<code> cd OpenELEC.tv<\/code><br \/>\n<code> time PROJECT=RPi2 ARCH=arm make image<\/code><br \/>\n (get few cups of coffee&#8230;)<\/p>\n<p>look under <code>target\/<\/code> there should be the image<\/p>\n<p>if you want to rebuild kodi only<br \/>\n<code>time PROJECT=RPi2 ARCH=arm make kodi<\/code><\/p>\n<p>\/\/ if libraries missing, use below apt-get shopping-cart<br \/>\n<code>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 libcec1 libcrystalhd-dev libcrystalhd3 libcurl3 libcurl4-gnutls-dev libcwiid-dev libcwiid1 libdbus-1-dev libenca-dev libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-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 mesa-utils nasm pmount python-dev python-imaging python-sqlite swig unzip yasm zip zlib1g-dev<\/code><\/p>\n<p>more info here.<br \/>\n<code>http:\/\/wiki.openelec.tv\/index.php?title=Building_and_Installing_OpenELEC_for_Raspberry_Pi<\/code><\/p>\n<p>in my case I edit<br \/>\n<code>vi build.OpenELEC-RPi2.arm-devel\/kodi-14-b5dbdb5\/xbmc\/input\/linux\/LinuxInputDevices.cpp<br \/>\n<\/code><br \/>\nadded the home key for rii i7.<\/p>\n<p>and here is the resulting patch<br \/>\n<code>diff -Naur kodi-14-b5dbdb5.orig\/xbmc\/input\/linux\/LinuxInputDevices.cpp kodi-14-b5dbdb5\/xbmc\/input\/linux\/LinuxInputDevices.cpp<br \/>\n--- kodi-14-b5dbdb5.orig\/xbmc\/input\/linux\/LinuxInputDevices.cpp\t2015-02-21 01:21:47.530234565 +0100<br \/>\n+++ kodi-14-b5dbdb5\/xbmc\/input\/linux\/LinuxInputDevices.cpp\t2015-02-21 01:23:11.903724410 +0100<br \/>\n@@ -255,6 +255,7 @@<br \/>\n   { 378               , XBMCK_RIGHT       }, \/\/ Green<br \/>\n   { 381               , XBMCK_UP          }, \/\/ Yellow<br \/>\n   { 366               , XBMCK_DOWN        }, \/\/ Blue<br \/>\n+  { KEY_HOMEPAGE      , XBMCK_HOME        }, \/\/ for Rii i7 and Co. home key 172<br \/>\n };<\/p>\n<p> typedef enum<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>git clone git:\/\/github.com\/OpenELEC\/OpenELEC.tv.git cd OpenELEC.tv time PROJECT=RPi2 ARCH=arm make image (get few cups of coffee&#8230;) look under target\/ there should be the image if you want to rebuild kodi only time PROJECT=RPi2 ARCH=arm make kodi \/\/ if libraries missing, use below apt-get shopping-cart apt-get install automake autopoint bison build-essential ccache cmake curl cvs default-jre fp-compiler&hellip; <a class=\"more-link\" href=\"https:\/\/wp.oktay.com\/?p=604\">Continue reading <span class=\"screen-reader-text\">Build kodi \/ xbmc from source<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,36,37],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-kodi","category-raspberry-pi","category-xbmc","entry"],"_links":{"self":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":2,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.oktay.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}