Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Latest commit

 

History

History
88 lines (62 loc) · 1.71 KB

README.md

File metadata and controls

88 lines (62 loc) · 1.71 KB

Kodi build

Kodi in the distribution is usually outdated, it's better to compile and install fresh version from sources. The compilation with all binary addons takes ~ 4 hours.

This setup supports hardware acceleration for H.264 and H.265/HEVC (8bit/10bit).

References: https://github.com/xbmc/xbmc/blob/master/docs/README.Linux.md

Build dependencies

Install build dependencies:

apt-get build-dep kodi

Kodi bin

Get the source code:

git clone --depth 1 --branch Nexus https://github.com/xbmc/xbmc kodi

Create build directory:

mkdir kodi-build; cd kodi-build

Configure build:

cmake ../kodi -DCMAKE_INSTALL_PREFIX=/usr/local/kodi \
    -DCORE_PLATFORM_NAME=gbm \
    -DAPP_RENDER_SYSTEM=gles \
    -DENABLE_VAAPI=OFF \
    -DENABLE_VDPAU=OFF \
    -DENABLE_OPENGL=OFF \
    -DENABLE_PULSEAUDIO=OFF \
    -DENABLE_INTERNAL_FMT=ON \
    -DENABLE_INTERNAL_SPDLOG=ON \
    -DCMAKE_CXX_STANDARD_LIBRARIES="-latomic"  

Build:

cmake --build . -- VERBOSE=1 -j$(getconf _NPROCESSORS_ONLN)

Install:

sudo make install

In-tree binary add-ons

Build binary extensions:

cd kodi

Clean extensions:

sudo make -j$(getconf _NPROCESSORS_ONLN) \
    -C tools/depends/target/binary-addons PREFIX=/usr/local/kodi distclean

Build and install all extensions:

sudo make -j$(getconf _NPROCESSORS_ONLN) \
    -C tools/depends/target/binary-addons PREFIX=/usr/local/kodi \
    ADDONS="inputstream.adaptive pvr.iptvsimple"

Build and install specified extensions:

sudo make -j$(getconf _NPROCESSORS_ONLN) \
    -C tools/depends/target/binary-addons PREFIX=/usr/local/kodi \
    ADDONS="inputstream.adaptive pvr.iptvsimple"