Can someone shed some light on how I can compile a PVR addon for Android?
I'm using Ubuntu 16.04 LTS with Kodi 17.5 Krypton to compile for an Android Fire Tablet 8 also running 17.5 Krypton.
I followed the Readme.android and created an ARM toolchain, then built the kodi dependencies sucessfully.
However I cannot get my addon to work at all, here are the 2 issues:
1) After a successful cmake with option -DCMAKE_TOOLCHAIN_FILE=/opt/xbmc-depends/arm-linux-androideabi-android-21/share/Toolchain_binaddons.cmake, I get the following error when I try to make:
Quote:Code:
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find TinyXML (missing: TINYXML_INCLUDE_DIR TINYXML_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
FindTinyXML.cmake:24 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:9 (find_package)
Full terminal output of failed build at: https://pastebin.com/DeEd7kJw
2) If I cmake with -DCMAKE_TOOLCHAIN_FILE=/opt/xbmc-depends/arm-linux-androideabi-android-21/share/Toolchain.cmake, the build is successful, but the addon does not load in Kodi for a couple of reasons:
- The original package zip, had the addon XML pointing to libpvr.iptvsimple.dvr.so, which upon inspection was a symlink to libpvr.iptvsimple.dvr.so.2.4.15 and the kodi log produced the following error
Quote:23:14:57.807 T:18446744073584128296 ERROR: Unable to load /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/pvr.iptvsimple.dvr/libpvr.iptvsimple.dvr.so, reason: dlopen failed: "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/pvr.iptvsimple.dvr/libpvr.iptvsimple.dvr.so" is too small to be an ELF executable: only found 29 bytes
23:15:00.337 T:18446744073584128296 ERROR: UpdateAddons - failed to create add-on PVR IPTV Simple Client DVR, status = 6
- If I changed the addon XML to point reference libpvr.iptvsimple.dvr.so.2.4.15, then the addon also failed to load due to a different error:
Quote:23:21:28.721 T:18446744073583052232 ERROR: Unable to load /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/pvr.iptvsimple.dvr/libpvr.iptvsimple.dvr.so.2.4.15, reason: dlopen failed: couldn't map "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/pvr.iptvsimple.dvr/libpvr.iptvsimple.dvr.so.2.4.15" segment 2: Permission denied
23:21:30.794 T:18446744073583052232 ERROR: UpdateAddons - failed to create add-on PVR IPTV Simple Client DVR, status = 6
Full terminal output of build at:
https://pastebin.com/mp0H6NDS
Is there something big I am missing here
This is giving me a heck of a headache...
EDIT:
Welp, 30 mins after posting I think I've answered my own question... Looks like for android, the addons must be either:
1) Packaged with Kodi in an APK (so I have to rebuild kodi with my addon, and every timw I update...)
2) Create a wrapper APK that will install addon into the kodi directory....
Yikes! Back to the drawing board....