Android Compiling "external" PVR Addon - Howto?
#1
Hi,
after following this tutorial, I was able to successfully build Kodi 17 and also some "official" PVR Addons like iptvsimple, etc.
Now I want to compile this Zattoo addon, but couldn't find any usable tutorial for Android, only Win/Linux.
Can somebody point me to the right direction or recommend a tutorial?

thanks in advance
Reply
#2
hmm, seems to be some kind of "black magic"
Confused
Reply
#3
it's a bit confusing but it's not that hard. the need to build in the cross env for android makes it a bit more complex, but it's basically the same steps.

by default kodi will "bootstrap" (download instructions) for add-ons to build from https://github.com/xbmc/repo-binary-addons

you can use -DADDONS_DEFINITIONS_DIR to specify a local directory with add-on definitions instead. make such a directory and make the definition for pvr.zatoo (pretty much just copying and changing an existing pvr addon). then edit tools/depends/xbmc-addons.include and add the -DADDON_DEFINITIONS_DIR=<your dir> to the cmake command there. build. it should now produce pvr.zattoo

if you want the other add-ons, clone repo-binary-addons to your local addon definitions dir first.

alternatively, fork repo-binary-addons, add pvr.zatoo then point the bootstrap process to your repo using https://github.com/xbmc/xbmc/blob/master...addons.txt
Reply
#4
Great!
Not really trivial, but manageable.
Reply
#5
Ok, I've used the 2nd alternative (fork repo-binary-addons) and the pvr addon built just fine and even works..
But one more question:
When building the addon, an additional library (libyajl.so.2) is built too.
This library is necessary, but was not included in the final Kodi build, so I had to copy it separately to the lib folder, after I installed Kodi.
So, where do I have to copy/add this lib, so its included in the final Kodi build?
Reply
#6
that library should have been built static so that's an error in the dependency definition.
Reply
#7
i have sent a fix https://github.com/trummerjo/pvr.zattoo/pull/9
Reply
#8
(2016-11-24, 13:26)ironic_monkey Wrote: i have sent a fix https://github.com/trummerjo/pvr.zattoo/pull/9

I think, this repo isn't maintained any more.
The current location ist now here:
https://github.com/rbuehlma/pvr.zattoo/tree/zattoo

So how can I add the pre-compiled (and working) lib, before building Kodi or making the apk?
Reply

Logout Mark Read Team Forum Stats Members Help
Compiling "external" PVR Addon - Howto?0