xbmc / inputstream.rtmp

RTMP input stream add-on for Kodi
GNU General Public License v2.0
16 stars 26 forks source link

Updated custom librtmp source #44

Closed jairoxyz closed 5 years ago

jairoxyz commented 5 years ago

I am building successfully on Ubuntu 18.04 AMD64 using my KSV patched version of librtmp. So, the addon is built correcly and it works fine inside Kodi but it keeps using the Bionic AMD64 librtmp1 shared lib instead the one that's being built from the sources inside the addon. Build process says

-- Found OpenSSL: /usr/local/lib/libcrypto.a (found version "1.1.1") 

-- Found ZLIB: /home/blabla/inputstream.rtmp/build/build/depends/lib/libz.a (found version "1.2.11") 

-- Found RTMP: /home/blabla/inputstream.rtmp/build/build/depends/include;....  

-- RTMP_VERSION=2.0.4

and I can see the newly built librtmp.a inside the depends/lib folder but it is not installed as shared lib to the system. Is there a way to force install the librtmp built from the addon source?

PS: looking at the dynamic libs required by inputstream.rtmp.so.2.0.4, it should not load librtmp1 at all:

0x0000000000000001 (NEEDED)             Shared library: [libssl.so.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypto.so.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

When I build it on Bionic Server, the addon lib grows to over 4 MB and does not even required shared openssl:

0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

So, why is RC1 still using /usr/lib/x86_64-linux-gnu/librtmp.so.1 when playing rtmp streams?

Thanks in advance.

jairoxyz commented 5 years ago

I think this https://github.com/xbmc/inputstream.rtmp/issues/31 answers my questions.