Build kodi addon with support for c++11
#1
Hi,

GOAL: I'm trying to build kodi Jarvis for android, replacing the original pvr.iptvsimple addon with this one: https://github.com/simphax/pvr.iptvsimpl...recording.

WHAT I ACHIEVED UNTIL NOW: I have set-up a buil environnemt and I'm am able to build the whole original jarvis branch and get a running apk (with help of this readme).
After quite a few hacks, I was able to make the source tree to take the alternative simpletv addon sources into account (see this post about that).

PROBLEM: I have an error compiling the alternative addon (error: 'to_string' was not declared in this scope). Google tell me it's because it uses some c++11 code and it's not enabled by default in the android ndk.
What do I need to do in kodi build process/files to be able to compile using c++11?

CONTEXT: Building Kodi, 16.0-Jarvis tag from git, under ubuntu 14.04 64-bits

Thank you for your help
Jérôme
Reply
#2
kodi itself requires C++11 and the ndk supports it fine. So it must be some error in the addon.
Reply
#3
Thank you for your response. Actually, the addon build fine on linux and raspberry toolchain. The error must be on the hacks I did. I will try again from scratch.
Reply
#4
as a side note: a quick looks at the recording branch shows that this will not work on android.
The implementation is horrible - it's calling binaries... and those binaries do not exist on android.
Reply
#5
I know. But it´s has 2 main advantages: it´s the only solution I found to record iptv from kodi and it works (at least on linux with ffmpeg).
It is theoretically possible to build ffmpeg for android (see https://trac.ffmpeg.org/wiki/CompilationGuide/Android).
Reply
#6
Sorry double post Blush
Reply
#7
(2016-03-12, 12:43)gadjou Wrote: I know. But it´s has 2 main advantages: it´s the only solution I found to record iptv from kodi and it works (at least on linux with ffmpeg).
It is theoretically possible to build ffmpeg for android (see https://trac.ffmpeg.org/wiki/CompilationGuide/Android).
No kidding Wink
Reply
#8
This needs to be done because there is already ways to record kodi iptv on linux, windows, mac etc
Using backends and frontends by itself!, using the method here:
http://forum.kodi.tv/showthread.php?tid=21611 or even using a screen recorder witch does work!
EVERYTHING ACCEPT ANDROID! Screen capture on android only captures the menu and not anything live, saved or even a photo, just a black screen!
There is only 1 thing witch will work like nextpvr etc on android using a android app called
"WOOMOO" but yeah, no one has even bothered trying to make a woomoo pvr on kodi!
You can record using an android apk called live stream player (or live media player), but you
Have to buy that feature on the app! Plus it's not kodi!

So yeah this is and will be literally the ONLY WAY to record using kodi on android!
Oh, and yeah! If you look at simphax fork for this, yeah DOES SUPPORT ANDROID!
It was fixed to support on android sometime last year! Look at the changes!
When this gets sorted out, please try to share your work please! You will make a lot of people
Round the net VERRY happy! Especially if you look up recording kodi on android, there is literally hundreds of
Topics of people constantly asking for this (MOST ON THIS SITE)!
Share your Experiece on youtube, spread it around so others can find and help pick up on it!
You'll LITRALLY BE THE ONLY ONE that actually helped people with this for android!
Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Build kodi addon with support for c++110