[solved] compile pvr addon
#1
hello,

I'm on debian jessie,

I compile kodi fine using the excellent guide http://kodi.wiki/view/HOW-TO_compile_XBM...ource_code

No I'm at a loss finding instructions on how to compile the pvr addon, specifically I'd love the tvheadend one.

I tried to search, I guess I have to use this repo : https://github.com/hudokkow/pvr.hts

but I fail short on using cmake and or understanding what in-tree building means

Could someone be kind enough to help me on that ?

thanks in advance
Reply
#2
1) execute 'make install' for kodi to get cmake helpers and addon bindings installed
2) build kodi-platform, https://github.com/xbmc/kodi-platform and install it
3) you can now build addons just like you'd build "normal" stuff, i.e.

Code:
cmake <path to sources>
make
make install

in-tree means building it in the kodi source tree. this is necessary for cross builds as there's the need for a toolchain etc. no reason to do so on a regular debian.
Reply
#3
thanks, was super useful to get the big picture Smile
Reply
#4
mmmmm, I can't understand that....

17:23:05 T:140442981086976 ERROR: Unable to load /usr/local/lib/kodi/addons/pvr.hts/pvr.hts.so, reason: libkodiplatform.so.15.0: cannot open shared object file: No such file or directory

this is my error after a fresh and clean compilation

I have a pastebin log (http://pastebin.com/mmzMgihB) about the way I compiled and the cat of the error if this can help
I can't see why it doesnt find it as it seems the file it complains it is missing was effectively compiled :
(
-- Installing: /usr/local/lib/x86_64-linux-gnu/libkodiplatform.so.15.0.0
-- Up-to-date: /usr/local/lib/x86_64-linux-gnu/libkodiplatform.so.15.0
)
and (
-- Installing: /usr/local/lib/kodi/addons/pvr.hts/pvr.hts.so.2.1.5
-- Up-to-date: /usr/local/lib/kodi/addons/pvr.hts/pvr.hts.so.15.0
-- Up-to-date: /usr/local/lib/kodi/addons/pvr.hts/pvr.hts.so
)
Reply
#5
I just had this same problem. By default, your system doesn't look for libraries in /usr/local/lib/x86_64-linux-gnu/

I solved this by recompiling kodi-platform with a different prefix (defaults to /usr/local if you build in /usr/local/src)

use:
cmake -DCMAKE_INSTALL_PREFIX=/usr

then when you do "make install" it will install to /usr/lib/x86_64-linux-gnu/ instead.
Reply
#6
the addons CMAKE_INSTALL_PREFIX and kodis --prefix must match.
Reply

Logout Mark Read Team Forum Stats Members Help
[solved] compile pvr addon0