Page 2 of 4

Re: Help with android build

Posted: Wed Mar 27, 2013 12:55 pm
by S74ck3r
So using my (very) limited knowledge of C it looks like it's down to the fact that we're not statically linking the
math library when creating librtmp.so.

I've had a quick look this morning but am at work now with a tight deadline so won't get to try anything out until the weekend.

sorry.

Re: Help with android build

Posted: Thu Mar 28, 2013 12:20 pm
by RedPenguin
S74ck3R do you have a list of the steops anywhere or even a copy of the toolchain you used?

I'm beginning to wonder if the toolchain I'm using is screwed up in some manner.

Because I keep getting different errors if I try XLDFLAGS="-static" or other ways to attempt to statically link the libm library.

Re: Help with android build

Posted: Thu Mar 28, 2013 9:15 pm
by S74ck3r
I'm using the standard android ndk (r7) with migw.

From what I can gather we may not be able to statically link some libraries on android, these include libz and libm but it shouldn't matter as they're available as standard.

I've got a nexus 7 and some time over the weekend so I'll see if I can get it going.

Richard

Re: Help with android build

Posted: Fri Mar 29, 2013 2:58 am
by RedPenguin
Also just to explain further.

I'm attempting to make a file with KSV's latest patches.

http://dl.dropbox.com/u/5544258/Patch.diff

Just an update others are experiencing the exact same issue as mentioned on XBMC.org:

http://forum.xbmc.org/showthread.php?tid=160750

Re: Help with android build

Posted: Mon Apr 01, 2013 8:51 am
by S74ck3r
Hi,

I've just uploaded a new librtmp.so here https://bitbucket.org/S74ck3r/rtmpdump- ... librtmp.so

Can you give it a go? It seems to work ok for me (Android 4.2.2 on a Nexus 7) with the 4od plugin. Just copy it over the original and reboot.

Richard

Re: Help with android build

Posted: Mon Apr 01, 2013 10:42 am
by RedPenguin
S74ck3r wrote:Hi,

I've just uploaded a new librtmp.so here https://bitbucket.org/S74ck3r/rtmpdump- ... librtmp.so

Can you give it a go? It seems to work ok for me (Android 4.2.2 on a Nexus 7) with the 4od plugin. Just copy it over the original and reboot.

Richard
Well we tried it and it's definitely not crashing XBMC yet it doesn't seem to be doing redirects at all.

Also what commands/steps did you do? I was doing exactly what guides online said and never was getting files 1MB+, barely even got half an MB.

Re: Help with android build

Posted: Mon Apr 01, 2013 11:42 am
by S74ck3r
sorry, wrong version. I'll build again using the right patched version.

might not be today though as I have to work. Once we can confirm it's working I'll upload the changes to the build.

Richard

Re: Help with android build

Posted: Tue Apr 02, 2013 12:02 pm
by S74ck3r
Ok, I think I've got it this time.

I grabbed the diff for KSVs changes and the resulting librtmp.so is here https://bitbucket.org/S74ck3r/rtmpdump- ... librtmp.so

It initially came out over 1mb but I've stripped it which is why the file is smaller than the last one.

As before, copy it over and reboot. I haven't had time to try it out yet but let me know how it goes.

Richard

Re: Help with android build

Posted: Tue Apr 02, 2013 3:24 pm
by RedPenguin
Well not sure what's going on this time.

My buddy tried the file and it said XBMC isn't even attempting to start (at least visually) and the errors seem kineda bizzare.

Also he reinstalled XBMC just in case before attempting this.

V/XBMC ( 4072): 09:49:31 T:1745423928 DEBUG: Loading: /data/app-lib/org.xbmc.xbmc-2/libcurl.so
V/XBMC ( 4072): xb_dlopen: Error from dlopen(/data/app-lib/org.xbmc.xbmc-2/libcurl.so): Cannot load library: find_library(linker.cpp:889): "/data/app-lib/org.xbmc.xbmc-2/libcurl.so" failed to load previously
V/XBMC ( 4072): 09:49:31 T:1745423928 ERROR: Unable to load /data/app-lib/org.xbmc.xbmc-2/libcurl.so, reason: (null)
V/XBMC ( 4072): 09:49:31 T:1745423928 DEBUG: CurlFile::Open(0x6bf8ecf8) http://feeds.feedburner.com/xbmc
V/XBMC ( 4072): 09:49:31 T:1745423928 DEBUG: SECTION:LoadDLL(libcurl.so)
V/XBMC ( 4072): 09:49:31 T:1745423928 DEBUG: Loading: /data/app-lib/org.xbmc.xbmc-2/libcurl.so
V/XBMC ( 4072): xb_dlopen: Error from dlopen(/data/app-lib/org.xbmc.xbmc-2/libcurl.so): Cannot load library: find_library(linker.cpp:889): "/data/app-lib/org.xbmc.xbmc-2/libcurl.so" failed to load previously
V/XBMC ( 4072): 09:49:31 T:1745423928 ERROR: Unable to load /data/app-lib/org.xbmc.xbmc-2/libcurl.so, reason: (null)
F/libc ( 4072): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 4109 (org.xbmc.xbmc)

Which makes very little sense to me as it doesn't mention librtmp at all but he he claims it only does it when the file is replaced.

Re: Help with android build

Posted: Tue Apr 02, 2013 3:42 pm
by S74ck3r
Did he turn it off and on again after replacing the lib? (I know it's a tech support cliche but I think in this case it is necessary :))