Help with android build

Topics regarding RTMPDump.
S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Wed Mar 27, 2013 12:55 pm

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.

RedPenguin
Posts: 20
Joined: Mon Mar 25, 2013 5:25 am

Re: Help with android build

Postby RedPenguin » Thu Mar 28, 2013 12:20 pm

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.

S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Thu Mar 28, 2013 9:15 pm

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

RedPenguin
Posts: 20
Joined: Mon Mar 25, 2013 5:25 am

Re: Help with android build

Postby RedPenguin » Fri Mar 29, 2013 2:58 am

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

S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Mon Apr 01, 2013 8:51 am

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

RedPenguin
Posts: 20
Joined: Mon Mar 25, 2013 5:25 am

Re: Help with android build

Postby RedPenguin » Mon Apr 01, 2013 10:42 am

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.

S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Mon Apr 01, 2013 11:42 am

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

S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Tue Apr 02, 2013 12:02 pm

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

RedPenguin
Posts: 20
Joined: Mon Mar 25, 2013 5:25 am

Re: Help with android build

Postby RedPenguin » Tue Apr 02, 2013 3:24 pm

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.

S74ck3r
Posts: 21
Joined: Fri Feb 01, 2013 8:31 am

Re: Help with android build

Postby S74ck3r » Tue Apr 02, 2013 3:42 pm

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 :))


Return to “RTMPDump Specific”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest