Kodi Community Forum

Full Version: Build from Source, "doesn't contain a valid add-on type name"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Objective: Enjoy Kodi NextPVR PVR on MX Linux, Kodi version 18.9

Built the NextPVR addon from GitHub source, everything appeared to go smoothly. It built something that looks like a binary addon in ~/xbmc/addons/pvr.nextpvr:

$ ls
addon.xml      icon.png        pvr.nextpvr.so.19.0   resources
changelog.txt  pvr.nextpvr.so  pvr.nextpvr.so.8.0.1

copied that over to special://xbmcbinaddons/ => /usr/lib/x86_64-linux-gnu/kodi/addons

Kodi seems to pick it up, but doesn't like it. I believe the relevant log entries are:
2020-12-08 22:21:51.132 T:140648504069312  NOTICE: ADDON: pvr.nextpvr v8.0.1 installed

2020-12-08 22:21:51.142 T:140648504069312   ERROR: CBinaryAddonBase::LoadAddonXML: file '/usr/lib/x86_64-linux-gnu/kodi/addons/pvr.nextpvr' doesn't contain a valid add-on type name (kodi.pvrclient)
2020-12-08 22:21:51.142 T:140648504069312   ERROR: CBinaryAddonManager::AddAddonBaseEntry: Failed to create base for 'pvr.nextpvr' and addon not usable

https://paste.kodi.tv/elicijafiz.kodi

Am I doing something wrong here?
Yes.  You are building the pluigin from master which is Matrix and then installing it on a Leia client.

Martin
Indeed, thanks.

The relevant code for posterity:
Code:
git clone --branch Leia https://github.com/xbmc/xbmc.git
git clone --branch Leia https://github.com/kodi-pvr/pvr.nextpvr.git
cd pvr.nextpvr && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.nextpvr -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/cmake/addons
make