Kodi Community Forum
VNSI4 Android (OUYA) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: VDR (https://forum.kodi.tv/forumdisplay.php?fid=169)
+---- Thread: VNSI4 Android (OUYA) (/showthread.php?tid=170420)

Pages: 1 2


VNSI4 Android (OUYA) - schnere - 2013-08-02

Hi,

I've tried to compile VNSI4 for android:

Code:
# Instructions from here: http://djk1o.blogspot.de/2013_01_01_archive.html
apt-get install ia32-libs
wget http://www.crystax.net/en/download/android-ndk-r7-crystax-5.beta3-linux-x86.tar.bz2
tar -xvjf android-ndk-r7-crystax-5.beta3-linux-x86.tar.bz2
cd android-ndk-r7-crystax-5.beta3/build/tools/
./make-standalone-toolchain.sh --ndk-dir=../../ --install-dir=/root/android-9 --platform=android-9

cd /usr/local/src
git clone https://github.com/opdenkamp/xbmc-pvr-addons.git
cd xbmc-pvr-addons
PATH=$PATH:/root/android-9/bin:/root/android-9/arm-linux-armeabi/bin
./bootstrap
./configure
make -j2
make zip
./configure --target=arm-linux-androideabi --host=arm-linux-androideabi

On my OUYA I've tried the latest Android-XBMC from today: http://mirrors.xbmc.org/nightlies/android/xbmc-20130802-294063d-master-armeabi-v7a.apk

But when I start XBMC I get an error, that the PVR addon could not be loaded and I should take a look in my logfile.
Here's what my logfile says:

Code:
19:57:21 T:1733313352  NOTICE: PVRManager - starting up
19:57:21 T:1735053832   DEBUG: int PVR::CPVRClients::RegisterClient(ADDON::AddonPtr) - registering add-on 'VDR VNSI Client'
19:57:21 T:1735053832   DEBUG: PVR - ADDON_STATUS PVR::CPVRClient::Create(int) - creating PVR add-on instance 'VDR VNSI Client'
19:57:21 T:1735053832   DEBUG: ADDON: Dll Initializing - VDR VNSI Client
19:57:21 T:1735053832   DEBUG: SECTION:LoadDLL(/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.vdr.vnsi/libXBMC_VDR_vnsi.so)
19:57:21 T:1735053832   DEBUG: Loading: /storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.vdr.vnsi/libXBMC_VDR_vnsi.so
19:57:21 T:1735053832   ERROR: Unable to load /storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.vdr.vnsi/libXBMC_VDR_vnsi.so, reason: (null)
19:57:21 T:1735053832    INFO: Called Add-on status handler for '4' of clientName:VDR VNSI Client, clientID:pvr.vdr.vnsi (same Thread=no)
19:57:21 T:1735053832 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to create add-on VDR VNSI Client, status = 6
19:57:21 T:1735053832 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to load the dll for add-on VDR VNSI Client, disabling it

The file Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.vdr.vnsi/libXBMC_VDR_vnsi.so exists.

Has anyone an idea what I'm doing wrong?

Thanks,

schnere


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-02

Hi,

I try to do the same also using the vnsiserver4..
You made a mistake in adapting the advices of the link, to (cross-)compile the xbmc addons the right way it should look like:
Code:
cd /usr/local/src
git clone https://github.com/opdenkamp/xbmc-pvr-addons.git
cd xbmc-pvr-addons
PATH=$PATH:/root/android-9/bin:/root/android-9/arm-linux-armeabi/bin
./bootstrap
./configure --target=arm-linux-androideabi --host=arm-linux-androideabi
make
make zip

But in my case this leads to an error with the compiler flags of the json parser.. If I succeed I try to provide the result.


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-02

Ok I succeeded with building the addon using the crosscompiler framework.
I had to enable some g++ flags to allow exceptions.. The vnsi plugin fresh compiled for android using the git today (2013/09/02):

http://db.tt/sdoYM7Ws


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-02

My build is correct but the xbmc throws the same error you already had..
Other solution could be the xvdr addon, I compiled a fresh version just minutes ago:

http://db.tt/OjhnLm6i


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-02

The xbmc xvdr addon is outdated in the android git rep, I tried to merge the newest one withoud success.

https://github.com/pipelka/xvdr-addon-android/issues/1


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-05

Ok the xvdr addon for android was outdated because of changing API for xbmc 13 addons.
The regular xvdr addon already fixed this issue, therefore I merged it myself into the xvdr android addon and
finally have a working and fresh build:

http://db.tt/lCzoPCGU

enjoy!


RE: VNSI4 Android (OUYA) - schnere - 2013-09-11

Hi,

great idea. I didn't think about using xvdr parallel to vnsi. I was able to install your apk successfully.
Now I get the LiveTV channels on my OUYA, but it crashes when I try to watch LiveTV.

Does it work on your OUYA?

Thanks,

schnere


RE: VNSI4 Android (OUYA) - christian667 - 2013-09-11

Hi,

using my last version http://db.tt/lCzoPCGU everything works fine - even HD-TV streaming is no problem for my ouya at all.
You should use only one plugin, I recommend XVDR, (it's a fork of VNSI), because I tried everything else in combination with
the ouya and nothing else worked. If you need help to compile XVDR / VDR feel free to ask and I could provide you a script that does
nearly everything on its own.


RE: VNSI4 Android (OUYA) - schnere - 2013-09-12

Hi,

I know about XVDR, but I would recommend VNSI as its in active development and the "official" VDR addon.
Furthermore VNSI3 worked really good with my Nexus 7. But the problem I have here is, that the VDR is on VNSI 4 and I can't get this version to work on my OUYA.
So the parallel solution would be great in my case.
May be I should try the XVDR-server version from https://github.com/pipelka/vdr-plugin-xvdr/commits/master . Could be newer than the yaVDR version.

Thanks,

schnere


RE: VNSI4 Android (OUYA) - FernetMenta - 2013-09-12

Could you post the build log of vnsi4?


RE: VNSI4 Android (OUYA) - schnere - 2013-09-14

Hi,

to compile successfully I had to patch configure.ac :

Code:
--- configure.ac        2013-09-14 17:36:12.422813851 +0200
+++ configure.ac.orig   2013-09-14 17:55:16.462812288 +0200
@@ -46,7 +46,6 @@
ARCHITECTURE="unknown"
HOST_INCLUDES=""
HOST_CXXFLAGS=""
-CXXFLAGS="-fexceptions -frtti"
ARCH_DEFINES="-DTARGET_POSIX -DTARGET_LINUX -D_LINUX"
DYN_LIB_EXT="so"
TARGET_LDFLAGS=""

So, I've added the line CXXFLAGS="-fexceptions -frtti"

And here is the build log: http://xbmclogs.com/show.php?id=58610

Thanks,

schnere


RE: VNSI4 Android (OUYA) - FernetMenta - 2013-09-15

I don't see anything wrong on the build.
I think I'll setup a development environment for Android and investigate.


RE: VNSI4 Android (OUYA) - schnere - 2013-09-16

Thanks, would be great to get it working Smile


RE: VNSI4 Android (OUYA) - FernetMenta - 2013-09-17

can you try this branch: https://github.com/FernetMenta/xbmc-pvr-addons/tree/vnsi4
There was a lib missing at linker stage.

btw: I didn't have to tweak the configure script.


RE: VNSI4 Android (OUYA) - schnere - 2013-09-17

Hi,

thanks for the fast fix. I will try it later.
If I don't add the CXXFLAGS, I get errors like this:

Code:
src/lib_json/json_value.cpp: In member function 'void Json::Value::CommentInfo::setComment(const char*)':
src/lib_json/json_value.cpp:156:4: error: exception handling disabled, use -fexceptions to enable
make[2]: *** [json_value.lo] Fehler 1

Might be, because I compile all modules, not just vnsi?

Thanks,

schnere