Errors building PVR.HTS addon from source for Kodi 17
#1
Hi,

I got the latest Popcornmix for my Raspberry Pi 2 compiled ( https://github.com/popcornmix/xbmc.git ) and found out that I have no PVR addons, nor am I able to download any from within Kodi GUI. I've been looking after the PVR.HTS addon and found the source code on:
https://github.com/kodi-pvr/pvr.hts/tree/master
Actually I was looking after a zip file that I could install through Kodi GUI or a way to build one without recompiling the whole Kodi.

My Kodi 17 source files reside in (relative to the pvr.hts/build directory) ../../../tmp/SBo/xbmc-17/ and these were the steps I followed:

cd /kit/kodi-slack-build/pvr.hts && mkdir build && cd build
cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../../tmp/SBo/xbmc-17/xbmc/addons -DPACKAGE_ZIP=1 ../../../tmp/SBo/xbmc-17/project/cmake/addons
make -j 4 V=1

It looks like there is also a mistake in the instructions on github, as the directory /xbmc/project/cmake/addons does not exist and I had to change it to /project/cmake/addons

By running the compilation instructions, I got into an error:
-- Build files have been written to: /kit/kodi-slack-build/pvr.hts/build/build/bootstrap
Scanning dependencies of target binary-addons
[ 12%] Creating directories for 'binary-addons'
[ 25%] Performing download step (git clone) for 'binary-addons'
Cloning into 'binary-addons'...
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[ 37%] No patch step for 'binary-addons'
[ 50%] Performing update step for 'binary-addons'
Current branch master is up to date.
[ 62%] No configure step for 'binary-addons'
[ 75%] No build step for 'binary-addons'
[ 87%] Performing install step for 'binary-addons'
-- Bootstrapping following addons: pvr.hts
[100%] Completed 'binary-addons'
[100%] Built target binary-addons
CMake Error at CMakeLists.txt:219 (message):
No addons available to be built

-- Configuring incomplete, errors occurred!
See also "/kit/kodi-slack-build/pvr.hts/build/CMakeFiles/CMakeOutput.log".

CMakeOutput.log doesn't really contain anything interesting, but I can provide it if needed. And, I'm not sure what the message "No addons available to be built" means.

I would be really thankful if someone can provide me with a way to get the pvr.hts addon compiled and installed in Kodi 17 Popcornmix.
Reply
#2
the instructions you followed for building are for developers, use this instead:
Code:
cd /kit/kodi-slack-build/pvr.hts && mkdir build && cd build
cmake ..
make -j4
sudo make install
Reply
#3
Thumbs Up 
Thank you very much! It worked! Smile

I'm wondering why are you not writing down a short Addons Build HowTo an post it somewhere in the Kodi Docs - it will save you a lot of time with Kodi noobs like me.

First I had to download and build both pulse8 and kodi-platform:

git clone https://github.com/Pulse-Eight/platform.git
cd platform/
cmake -DCMAKE_INSTALL_PREFIX=/usr
make -j 4 && make install
ldconfig

git clone https://github.com/xbmc/kodi-platform.git
cd kodi-platform/
make -j 4 && make install
ldconfig

and then download and compile pvr.hts - Successfully!

git clone https://github.com/kodi-pvr/pvr.hts.git
cd pvr.hts/
cmake -DCMAKE_INSTALL_PREFIX=/usr
make -j 4 && make install
ldconfig


ls -al /usr/lib/kodi/addons/
total 44
drwxr-xr-x 11 root root 4096 Oct 17 19:44 .
drwxr-xr-x 4 root root 4096 Oct 16 09:49 ..
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.kodi.adsp
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.kodi.audioengine
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.kodi.guilib
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.kodi.inputstream
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.kodi.peripheral
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.xbmc.addon
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.xbmc.codec
drwxr-xr-x 2 root root 4096 Oct 16 09:49 library.xbmc.pvr
drwxr-xr-x 2 root root 4096 Oct 17 19:44 pvr.hts

However, as I gained more courage and considered that I might need the pvr.dvbviewer too, I tried to compile it and ended up with an error.

git clone https://github.com/manuelm/pvr.dvbviewer.git
cd pvr.dvbviewer
cmake -DCMAKE_INSTALL_PREFIX=/usr

CMake Error at CMakeLists.txt:10 (find_package):
By not providing "Findkodi.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "kodi", but
CMake did not find one.

Could not find a package configuration file provided by "kodi" with any of
the following names:

kodiConfig.cmake
kodi-config.cmake

Add the installation prefix of "kodi" to CMAKE_PREFIX_PATH or set
"kodi_DIR" to a directory containing one of the above files. If "kodi"
provides a separate development package or SDK, be sure it has been
installed.

I've found your older post and apparently I need the file kodi-config.cmake to be present in /usr/lib/kodi/:
http://forum.kodi.tv/showthread.php?tid=...pid1974193

ls -al /usr/lib/kodi/
total 16188
drwxr-xr-x 4 root root 4096 Oct 16 09:49 .
drwxr-xr-x 206 root root 139264 Oct 17 19:41 ..
-rw-r--r-- 1 root root 2481 Oct 16 09:49 AddOptions.cmake
-rw-r--r-- 1 root root 11771 Oct 16 09:49 AddonHelpers.cmake
-rw-r--r-- 1 root root 4819 Oct 16 09:49 ArchSetup.cmake
-rw-r--r-- 1 root root 1924 Oct 16 09:49 CMakeHelpers.cmake
-rw-r--r-- 1 root root 2321 Oct 16 09:49 CheckCommits.cmake
-rw-r--r-- 1 root root 2581 Oct 16 09:49 CheckTargetPlatform.cmake
-rw-r--r-- 1 root root 902 Oct 16 09:49 GenerateVersionedFiles.cmake
-rw-r--r-- 1 root root 1797 Oct 16 09:49 GeneratorSetup.cmake
-rw-r--r-- 1 root root 9482 Oct 16 09:49 HandleDepends.cmake
-rw-r--r-- 1 root root 883 Oct 16 09:49 KodiConfig.cmake
-rw-r--r-- 1 root root 24288 Oct 16 09:49 Macros.cmake
-rw-r--r-- 1 root root 3713 Oct 16 09:49 PrepareEnv.cmake
-rw-r--r-- 1 root root 3696 Oct 16 09:49 ProjectMacros.cmake
-rwxr-xr-x 1 root root 57264 Oct 16 09:49 TexturePacker
-rw-r--r-- 1 root root 758 Oct 16 09:49 Uninstall.cmake
drwxr-xr-x 11 root root 4096 Oct 17 19:44 addons
-rwxr-xr-x 1 root root 16262164 Oct 16 09:49 kodi.bin
drwxr-xr-x 3 root root 4096 Oct 16 09:49 system

It looks like I have a KodiConfig.cmake file instead (just some playing around with the naming and the addon sources haven't got updated) and after I copied:
cp /usr/lib/kodi/KodiConfig.cmake /usr/lib/kodi/kodiConfig.cmake

I was able to compile and install the pvr.dvbviewer addon too!
Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Errors building PVR.HTS addon from source for Kodi 170