Zeile 6:
Zeile 6:
−
== Installation von Kodi 17.3 Krypton auf Debian 9 Stretch ==
+
== Installation aus den Quellen ==
+
+
=== Installation von Kodi 17.4 Krypton auf Debian 9 Stretch ===
+
+
Mit dieser Anleitung kann Kodi 17.4 Krypton einschließlich des [[TvHeadend]]-Addon auf Debian 9 Stretch kompiliert und auf einem Zielsystem installiert werden.
+
+
Diese Anleitung beruht auf [http://penzin.net/kodi.html derjenigen auf penzin.net für Kodi 17.3]. Siehe auch
+
* [https://github.com/xbmc/xbmc/blob/Krypton/docs/README.linux Kodi-README Version für Krypton]
+
* [https://github.com/kodi-pvr/pvr.hts/blob/Krypton/README.md Tvheadend-Addon-README für Krypton]
+
+
==== Phase 1 Kompilieren auf dem Quellsystem ====
+
+
Installiere notwendige Packages:
+
+
sudo aptitude install git \
+
automake autopoint bison build-essential ccache cmake curl cvs \
+
default-jre fp-compiler gawk gdc gettext gperf libasound2-dev \
+
libass-dev libavcodec-dev libavfilter-dev libavformat-dev \
+
libavutil-dev libbluetooth-dev libboost-dev libboost-thread-dev \
+
libbz2-dev libcap-dev libcdio-dev libcrystalhd-dev libcrystalhd3 \
+
libcurl3 libcurl4-gnutls-dev libcwiid-dev libcwiid1 libdbus-1-dev \
+
libenca-dev libflac-dev libfontconfig1-dev libfreetype6-dev \
+
libfribidi-dev libglew-dev libiso9660-dev \
+
libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev libmicrohttpd-dev \
+
libmodplug-dev libmp3lame-dev libmpeg2-4-dev libmpeg3-dev \
+
libnfs-dev libogg-dev libpcre3-dev libplist-dev \
+
libpng-dev libpostproc-dev libpulse-dev libsamplerate0-dev \
+
libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev \
+
libsdl-mixer1.2-dev libsmbclient-dev libsqlite3-dev libssh-dev \
+
libswscale-dev libtiff5-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 libtag-extras-dev libgnutls28-dev \
+
uuid-dev libgif-dev libsdl2-dev liblcms2-dev xz-utils \
+
libssl1.0-dev default-libmysqlclient-dev libcrossguid-dev \
+
libavahi-client-dev libbluray-dev libp8-platform-dev libcec-dev \
+
joe bash-completion
+
+
+
cd # Wechsle ins Home-Verzeichnis
+
mkdir kodi17.4
+
cd kodi17.4
+
git clone -b Krypton https://github.com/xbmc/xbmc.git
+
git clone https://gitlab.com/vadimp/kodi-mdnsresponder
+
git clone https://github.com/juhovh/shairplay.git
+
# only necessary for TvHeadend-Addon pvr.hts
+
git clone -b Krypton https://github.com/kodi-pvr/pvr.hts.git
+
+
Erzeuge Datei <code>~/kodi17.4/kodi-build-vars.sh</code> mit folgendem Inhalt:
+
<pre>
+
export KODI_PFX='/opt/kodi17.4'
+
export C_INCLUDE_PATH="${C_INCLUDE_PATH}:${KODI_PFX}/include"
+
export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:${KODI_PFX}/include"
+
export LIBRARY_PATH="${LIBRARY_PATH}:${KODI_PFX}/lib"
+
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${KODI_PFX}/lib"
+
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${KODI_PFX}/lib/pkgconfig"
+
export PATH="${PATH}:${KODI_PFX}/bin"
+
export MAKEFLAGS="-j1"
+
</pre>
+
+
Lese die Umgebungsvariablen ein:
+
source ~/kodi17.4/kodi-build-vars.sh
+
+
Shairplay und mDNSResponder kompilieren und installieren:
+
cd "~/kodi17.4/shairplay"
+
./autogen.sh
+
./configure "--prefix=${KODI_PFX}"
+
make
+
sudo make install
+
cd "../kodi-mdnsresponder"
+
make
+
sudo sh -c "PREFIX=\"${KODI_PFX}\" make install"
+
+
Dynamische Bibliotheken von shairplay und mDNSResponder zur Kompilation von Kodi bereitstellen:
+
sudo ldconfig "${KODI_PFX}/lib"
+
+
Kompilieren von Kodi
+
cd "~/kodi17.4/xbmc"
+
./bootstrap
+
./configure "--prefix=${KODI_PFX}" --enable-mid
+
make
+
+
Kompilieren des TvHeadend-Addons pvr.hts:
+
cd "~/kodi17.4/pvr.hts"
+
mkdir build
+
cd build
+
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
+
make
+
+
oder
+
cd "~/kodi17.4/xbmc"
+
make -C tools/depends/target/binary-addons PREFIX=${KODI_PFX} ADDONS="pvr.hts adsp.basic audiodecoder.modplug audiodecoder.nosefart audiodecoder.sidplay audiodecoder.snesapu audiodecoder.stsound audiodecoder.timidity audiodecoder.vgmstream audioencoder.flac audioencoder.lame audioencoder.vorbis audioencoder.wav inputstream.mpd pvr.demo visualization.fishbmc visualization.goom visualization.projectm visualization.shadertoy visualization.spectrum visualization.vsxu visualization.waveform"
+
+
+
Installieren von Kodi samt Addon:
+
cd "~/kodi17.4/xbmc"
+
sudo make install
+
+
Zusammenfassen der Binärinstallation in ein TAR-Archiv:
+
cd ~/kodi17.4
+
sudo tar -C / -cJf "kodi-17.4-$(uname -m).tar.xz" "${KODI_PFX:1}/"{bin,lib,share}
+
+
==== Phase 2 Installieren auf dem Zielsystem ====
+
+
Notwendige Pakete auf dem Zielsystem
+
+
sudo aptitude install \
+
dbus libasn1-8-heimdal libasound2 libass5 libasyncns0 \
+
libattr1 libavahi-client3 libavahi-common3 libbluetooth3 libbsd0 \
+
libbz2-1.0 libcap2 libcdio13 libcomerr2 libcrystalhd3 \
+
libcurl3-gnutls libdbus-1-3 libdrm2 libexpat1 libffi6 libflac8 \
+
libfreetype6 libfribidi0 libgcrypt20 libgl1-mesa-glx \
+
libglapi-mesa libglew2.0 libglu1-mesa libgmp10 libgnutls-dane0 \
+
libgpg-error0 libgssapi3-heimdal libgssapi-krb5-2 \
+
libhcrypto4-heimdal libheimbase1-heimdal \
+
libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal libice6 \
+
libjbig0 libjpeg62-turbo libjson-c3 libk5crypto3 \
+
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 \
+
libldap-2.4-2 libldb1 liblzma5 liblzo2-2 libmad0 \
+
libmicrohttpd12 libnettle6 libntdb1 libogg0 libp11-kit0 libpcre3 \
+
libpcrecpp0v5 libpng16-16 libpulse0 libpython2.7 \
+
libroken18-heimdal libsasl2-2 libsm6 libsmbclient libsndfile1 \
+
libsqlite3-0 libssh-4 libssl1.1 libsystemd0 libtag1v5-vanilla \
+
libtalloc2 libtasn1-6 libtdb1 libtevent0 libtiff5 libtinyxml2.6.2v5 \
+
libudev1 libuuid1 libva1 libva-x11-1 libvorbis0a libvorbisenc2 \
+
libwbclient0 libwind0-heimdal libwrap0 libx11-6 libx11-xcb1 libxau6 \
+
libxcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 \
+
libxcb-render0 libxcb-shape0 libxcb-sync1 libxcb-xfixes0 \
+
libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxml2 libxmu6 \
+
libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxt6 libxtst6 \
+
libxxf86vm1 libyajl2 policykit-1 samba-libs sudo x11-xserver-utils \
+
xinit zlib1g unzip libsdl2-2.0-0 liblcms2-2 xz-utils upower \
+
libmariadbclient18 libcrossguid0 \
+
libavahi-client3 libbluray1 libp8-platform2 libcec4 \
+
libvdpau1 libva-drm1 pulseaudio \
+
pavucontrol sudo joe
+
+
+
Auspacken auf dem Zielsystem:
+
sudo tar -C / -xvJf tmp/kodi-17.4-pvr_hts_only-x86_64.tar.xz
+
+
Dem System die dynamischen Bibliotheken von Kodi mitteilen:
+
cat <<EOF | sudo tee /etc/ld.so.conf.d/kodi.conf
+
/opt/kodi17.4/lib
+
EOF
+
sudo ldconfig
+
+
Dann braucht man zum automatischen Starten von Kodi noch einen [http://kodi.wiki/view/Archive:HOW-TO:Autostart_Kodi_for_Linux#Add_a_new_systemd_script Systemd-Service]. Bitte beim kodi.service-Script auf den korrekten Pfad in <code>/opt/kodi/bin</code> achten. Nicht zu vergessen sind auch die für kodi erforderlichen Gruppen:
+
sudo adduser kodi
+
sudo usermod -a -G cdrom,audio,video,plugdev,users,dialout,dip,input,netdev kodi
+
+
=== Installation von Kodi 17.3 Krypton auf Debian 9 Stretch ===
Auch auf einem [[Debian]] lässt sich die aktuelle Version von Kodi kompilieren und installieren:
Auch auf einem [[Debian]] lässt sich die aktuelle Version von Kodi kompilieren und installieren: