I've had my Kodi install running on a Raspberry Pi for a while and have been happy with it. But when a Mac Mini freed up I wanted to move my setup over to it and free up the Pi for other uses. I was not prepared for the shoddy state of Kodi packaging.
First off, if you're about to install Fedora 25 on a box you want to run Kodi on, stop. As of this writing there are two places to get Kodi for Fedora: RPMfusion and United RPMs. You can't enable those repositories concurrently, United RPMs doesn't have any of the
tvheadend code, and RPMfusion just generally has more software. However, RPMfusion currently only has Kodi 17 (Krypton) which is in beta and horribly unprepared for the world (the changes in Kodi 17 have all but neutralized what little good Kodi documentation is out there).
My current recommendation is Fedora 24 with Kodi 16 (Jarvis). Ubuntu and OpenELEC are also good choices (and of course, Raspian) but didn't work for my situation.
What you need to know, and what the majority of the Internet apparently has failed to realize, is that Kodi stopped shipping many plugins - such as HTS, the TVHeadend client - and you can't just pull them from a repository. If you search for instructions for how to enable any of this you're going to find tons of articles, forums, and email list posts basically saying "OMG, just enabled it, GAWD". These people are running some distribution which has already packaged all the necessary stuff. RPMfusion used to do this for Fedora but stopped after Fedora 22 and Kodi 14.
So where do you begin? Well, you need to have Fedora 24 installed. I started with the Cinnamon spin, which means many packages were included (such as
make). In my case my tuner card is in the same box and I already installed TVHeadend and set it up. Here's what you want to do next:
Now you're going to want to pull down the source for HTS:
Note that we're specifically pulling the "Jarvis" branch. If you didn't heed my warning and went with Fedora 25 and Kodi 17 you can omit the
Here's where it gets really interesting. The HTS source refers to "platform" just as that in source / headers. However, the Fedora Platform RPM include paths and namespace is
P8PLATFORM respectively. So we have to update the HTS source code for these differences.
There are three changes we need to make in
CMakeLists.txt (presented as a unified diff):
The remaining changes we can make programmatically:
Now we can compile and install the plugin:
Now you can follow all those guides that say "OMG, just install it, GAWD!" When you start Kodi the plugin will already be enabled (assuming you built/installed this under the same user as you run Kodi) and you can enable Live TV in the settings.