Posts: 1,699
Joined: Jun 2011
Reputation:
126
As far as I understand, ctypes can be used only for pure C libraries operating with rather simple data types, but not C++ OOP libs dealing with classes and objects. But libtorrent-python is a rather sophisticated Python binary module written in C++ with Boost. On other platforms it is loaded by simple import statement. Or import for binary modules is broken in Kodi-Android?
Posts: 16,946
Joined: Feb 2011
Reputation:
256
Ohh ok - so no ctypes. Then i don't have a clue.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 16,946
Joined: Feb 2011
Reputation:
256
And what was missing for it to load?
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 1,170
Joined: Mar 2008
Reputation:
116
I came across this thread after fighting with my addon for a good while, trying to make a binary execute on a non-rooted FireTV stick. I'm mostly convinced it won't work due to permissions, but I thought I'd ask.
I have a command line binary compiled for android (p7zip / 7za, for de-compressing 7z files). Including the binary and command line os.system execute commands in my addon seems to work just fine for every other system I've tried, but Android is a different animal.
I've attempted to execute the binary in the following locations:
/data/local/tmp/ - copied the file to this location and I can execute it via adb, but it fails when attempting to execute from my Kodi addon (using os.system or subprocess)
/data/data/org.xbmc.kodi/files/ - copied the file to this location and I can't execute it via adb (permissions error) or the addon
Is it possible to run a command line binary in android from Kodi? If so, what is the proper location to put the binary?
Second question, if the first isn't possible. I assume if I could compile a "libp7zip.so", ctypes is the correct method to use in Kodi / python and /data/data/org.xbmc.kodi/files or /data/data/org.xbmc.kodi/lib is where the library should be located?