Skip to content

Instantly share code, notes, and snippets.

@wimpunk
Last active February 6, 2019 07:22
Show Gist options
  • Save wimpunk/35dcf55c0ee34e8f8bf851130ccfadd4 to your computer and use it in GitHub Desktop.
Save wimpunk/35dcf55c0ee34e8f8bf851130ccfadd4 to your computer and use it in GitHub Desktop.
Fixing vrt.nu

upgrading vrt.nu to 1.5.1

Introduction

While upgrading vrt.nu on my raspberry pi running kodi, I had some problems, especially because the latest vrt.nu application needs inputstream-adaptive v2.0.19 and that is not provided by the normal stretch repositories. These are the notes about fixing those problems.

Checking repository

Running apt policy kodi-inputstream-adaptive give us this:

$ apt policy kodi-inputstream-adaptive
kodi-inputstream-adaptive:
  Installed: 2.0.10-1~stretch
  Candidate: 2.0.10-1~stretch
  Version table:
 *** 2.0.10-1~stretch 500
        500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
        100 /var/lib/dpkg/status

So there is clearly no package available that fits our needs. So let's also verify the version of kodi so we have a better idea which version we're looking for

pi@enix:~ $ kodi --version
17.6 Git:20171115-d69a54a Media Center Kodi
Copyright (C) 2005-2013 Team Kodi - http://kodi.tv

We found a suggestion at this site and tried the solution in a docker environment.

First we checkout the sources we need:

git clone https://github.com/xbmc/xbmc.git
cd xbmc
git checkout tags/17.6-Krypton
cd ..

git clone https://github.com/peak3d/inputstream.adaptive.git
cd inputstream.adaptive
git checkout -b Krypton origin/Krypton

We ran the commands in a docker environment:

docker pull hashicorp/packer:light
docker run --name 'my-packer' -d hashicorp/packer:light sleep infinity
docker exec my-packer bash

At the docker environment we first installed the tools we needed:

apt-get update
apt-get upgrade
apt-get install git cmake build-essential

Then we just tried to compile the addon:

cd /app/inputstream.adaptive
mkdir build && cd build
cmake -DADDONS_TO_BUILD=inputstream.adaptive -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons

And in the end we just had the addon we needed. I transferred the whole directory unther /app/xbmc/addons/inputstream.adaptive/ and put it on the raspberry. At that point we could rock'n'roll and check the categories again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment