How to install KODI on LeMuntu

From BananaPro/Pi
Jump to: navigation, search

Other languages:
English • ‎中文(简体)‎

Introduction

Kodi(formerly known as XBMC) is an award-winning free and open source (GPL) software media center for playing videos, music, pictures, games, and more. Kodi runs on Linux, OS X, Windows, iOS, and Android, featuring a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet.

Lemuntu is a free operating system based on Debian Jessie optimized for LeMaker SBC and an official Linux distribution of LeMaker community. In order to take full advantage of SBC hardware resources and improve the user experience of SBC, it is necessary to optimize the operating system. The Lemuntu install the lightweight desktop environment LXDE by default.This tutorial will teach you how to install Kodi on Lemuntu.


GPU hardware acceleration

Reference wiki:http://wiki.lemaker.org/GPU_hardware_acceleration

Video decoder engine

Reference wiki:http://wiki.lemaker.org/Video_decoder_engine
After install video decode engine,you should copy Video decoder engine hearder files to /usr/local/include:

cp –a omx-include/* /usr/local/include


Compile and install KODI

Use kodi installation package to install

Step 1: Download and unzip the archive file

sudo wget http://mirror.lemaker.org/xbmc_Isengard_stable_install.tar.bz2
tar -xvf xbmc_Isengard_stable_install.tar.bz2

Step 2: Install the software package

cd xbmc_Isengard_stable_install/
sudo chown -R root:root ./*
sudo ./install.sh

Step 3: Give read and write access to all user

sudo nano /etc/udev/rules.d/50-kodi.rules
KERNEL=="mali0", GROUP="root",MODE="0666"
KERNEL=="ion", GROUP="root",MODE="0666"
KERNEL=="mem", GROUP="root",MODE="0666"

Step 4: Add Kodi icon shortcuts

sudo cp /usr/local/share/applications/kodi.desktop  /usr/share/applications/kodi.desktop

Use Kodi source code to install

Step 1: Install the necessary software libraries

apt-get build-dep xbmc
apt-get install libgif-dev

Step 2: Download and unzip the archive file

sudo git clone https://github.com/LeMaker/xbmc.git -b Isengard-Lemaker-Guitar

You also can download the Isengard-Lemaker-Guitar source code from https://github.com/LeMaker/xbmc/tree/Isengard-Lemaker-Guitar.
Notice: If there is no more space left to extract the file, please refer to http://wiki.lemaker.org/LeMaker_Guitar:How_to_resize_system_partition to resize partition
Step 3: Copy squish.h to /usr/local/include/

cd xbmc
cp -a ./lib/libsquish/squish.h  /usr/local/include/

Step 4: Generate the relevant software tools

./bootstrap
cd tools/depends/native/TexturePacker
make

Step 5: Precompiled

cd xbmc
./configure --prefix=/usr/local \
        --exec-prefix=/usr/local \
        --with-platform=Actduino \
        --disable-debug \
        --disable-crystalhd \
        --disable-dvdcss \
        --disable-samba \
        --disable-libbluray \
        --disable-vaapi \
        --disable-dvdcss \
        --disable-mysql \
        --disable-nfs \
        --disable-libcap \
        --enable-upnp \
        --disable-ssh \
        --disable-optical-drive \
        --enable-alsa \
        --disable-vdpau \
        --disable-vtbdecoder \
        --disable-airplay \
        --disable-airtunes \
        --disable-avahi

Step 6: Compile and install KODI source files

make
make install

When you start KODI,since KODI need to use a specific libGL,the library should be specified depending on the specific circumstances.In Lemuntu, the easiest solution is as follows:

cp /usr/lib/libEGL.so* /usr/lib/arm-linux-gnueabihf/ -a
cp /usr/lib/libGLES*  /usr/lib/arm-linux-gnueabihf/ -a

Step 7: Give read and write access to all user

vi /etc/udev/rules.d/50-kodi.rules
KERNEL=="mali0", GROUP="root",MODE="0666"
KERNEL=="ion", GROUP="root",MODE="0666"
KERNEL=="mem", GROUP="root",MODE="0666"

Step 8: Add Kodiicon shortcuts

cp /usr/local/share/applications/kodi.desktop  /usr/share/applications/kodi.desktop


See Also

  1. http://kodi.tv/
  2. http://wiki.lemaker.org/Lemuntu_for_LeMaker_Guitar