SHARE
TWEET

LibRTMP rpi3 owenashurst.com

a guest Dec 24th, 2017 215 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Source:
  2. https://github.com/puma/puma/issues/1136
  3. yob commented on Nov 21, 2016
  4. I was able to build puma on debian sid once I installed the new libssl1.0-dev package.
  5.  
  6. Installing it might be a challenge, as it conflicts with libssl-dev (v1.1.0). You should only need it installed while puma builds though, then you can re-install libssl-dev. It's a hack, but might be helpful as an interim solution.
  7. -------------------------------------------------------
  8.  
  9.  
  10. pi@raspberrypi:~/src/rtmpdump $ sudo apt-get purge libssl-dev
  11. Reading package lists... Done
  12. Building dependency tree      
  13. Reading state information... Done
  14. The following package was automatically installed and is no longer required:
  15.   libssl-doc
  16. Use 'sudo apt autoremove' to remove it.
  17. The following packages will be REMOVED:
  18.   libssl-dev*
  19. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  20. After this operation, 5,135 kB disk space will be freed.
  21. Do you want to continue? [Y/n] y
  22. (Reading database ... 39836 files and directories currently installed.)
  23. Removing libssl-dev:armhf (1.1.0f-3+deb9u1) ...
  24. pi@raspberrypi:~/src/rtmpdump $ sudo apt-get install libssl1.0-dev
  25. Reading package lists... Done
  26. Building dependency tree      
  27. Reading state information... Done
  28. The following package was automatically installed and is no longer required:
  29.   libssl-doc
  30. Use 'sudo apt autoremove' to remove it.
  31. The following NEW packages will be installed:
  32.   libssl1.0-dev
  33. 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  34. Need to get 1,150 kB of archives.
  35. After this operation, 5,216 kB of additional disk space will be used.
  36. Get:1 http://raspbian-us.ngc292.space/raspbian stretch/main armhf libssl1.0-dev armhf 1.0.2l-2+deb9u2 [1,150 kB]
  37. Fetched 1,150 kB in 0s (1,471 kB/s)    
  38. Selecting previously unselected package libssl1.0-dev:armhf.
  39. (Reading database ... 39750 files and directories currently installed.)
  40. Preparing to unpack .../libssl1.0-dev_1.0.2l-2+deb9u2_armhf.deb ...
  41. Unpacking libssl1.0-dev:armhf (1.0.2l-2+deb9u2) ...
  42. Setting up libssl1.0-dev:armhf (1.0.2l-2+deb9u2) ...
  43. pi@raspberrypi:~/src/rtmpdump $ make SYS=posixmake[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
  44. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
  45. rtmp.c: In function 'RTMP_ReadPacket':
  46. rtmp.c:3555:7: warning: variable 'didAlloc' set but not used [-Wunused-but-set-variable]
  47.    int didAlloc = FALSE;
  48.        ^~~~~~~~
  49. At top level:
  50. rtmp.c:2907:19: warning: 'av_NetConnection_Connect_Rejected' defined but not used [-Wunused-const-variable=]
  51.  static const AVal av_NetConnection_Connect_Rejected =
  52.                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  53. rtmp.c:1559:35: warning: 'av_record' defined but not used [-Wunused-const-variable=]
  54.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  55.                                    ^
  56. rtmp.c:1905:1: note: in expansion of macro 'SAVC'
  57.  SAVC(record);
  58.  ^~~~
  59. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o log.o log.c
  60. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o amf.o amf.c
  61. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o hashswf.o hashswf.c
  62. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o parseurl.o parseurl.c
  63. ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
  64. ar: creating librtmp.a
  65. gcc -shared -Wl,-soname,librtmp.so.1  -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz
  66. ln -sf librtmp.so.1 librtmp.so
  67. make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
  68. gcc -Wall  -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz  
  69. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpgw.o rtmpgw.c
  70. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o thread.o thread.c
  71. gcc -Wall  -o rtmpgw rtmpgw.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
  72. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsrv.o rtmpsrv.c
  73. rtmpsrv.c:147:35: warning: 'av_secureToken' defined but not used [-Wunused-const-variable=]
  74.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  75.                                    ^
  76. rtmpsrv.c:170:1: note: in expansion of macro 'SAVC'
  77.  SAVC(secureToken);
  78.  ^~~~
  79. rtmpsrv.c:147:35: warning: 'av_videoFunction' defined but not used [-Wunused-const-variable=]
  80.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  81.                                    ^
  82. rtmpsrv.c:159:1: note: in expansion of macro 'SAVC'
  83.  SAVC(videoFunction);
  84.  ^~~~
  85. rtmpsrv.c:147:35: warning: 'av_fpad' defined but not used [-Wunused-const-variable=]
  86.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  87.                                    ^
  88. rtmpsrv.c:155:1: note: in expansion of macro 'SAVC'
  89.  SAVC(fpad);
  90.  ^~~~
  91. gcc -Wall  -o rtmpsrv rtmpsrv.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
  92. gcc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsuck.o rtmpsuck.c
  93. rtmpsuck.c:119:35: warning: 'av_secureToken' defined but not used [-Wunused-const-variable=]
  94.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  95.                                    ^
  96. rtmpsuck.c:141:1: note: in expansion of macro 'SAVC'
  97.  SAVC(secureToken);
  98.  ^~~~
  99. rtmpsuck.c:119:35: warning: 'av_mode' defined but not used [-Wunused-const-variable=]
  100.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  101.                                    ^
  102. rtmpsuck.c:138:1: note: in expansion of macro 'SAVC'
  103.  SAVC(mode);
  104.  ^~~~
  105. rtmpsuck.c:119:35: warning: 'av_fmsVer' defined but not used [-Wunused-const-variable=]
  106.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  107.                                    ^
  108. rtmpsuck.c:137:1: note: in expansion of macro 'SAVC'
  109.  SAVC(fmsVer);
  110.  ^~~~
  111. rtmpsuck.c:119:35: warning: 'av_createStream' defined but not used [-Wunused-const-variable=]
  112.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  113.                                    ^
  114. rtmpsuck.c:134:1: note: in expansion of macro 'SAVC'
  115.  SAVC(createStream);
  116.  ^~~~
  117. rtmpsuck.c:119:35: warning: 'av__result' defined but not used [-Wunused-const-variable=]
  118.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  119.                                    ^
  120. rtmpsuck.c:133:1: note: in expansion of macro 'SAVC'
  121.  SAVC(_result);
  122.  ^~~~
  123. rtmpsuck.c:119:35: warning: 'av_videoFunction' defined but not used [-Wunused-const-variable=]
  124.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  125.                                    ^
  126. rtmpsuck.c:131:1: note: in expansion of macro 'SAVC'
  127.  SAVC(videoFunction);
  128.  ^~~~
  129. rtmpsuck.c:119:35: warning: 'av_capabilities' defined but not used [-Wunused-const-variable=]
  130.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  131.                                    ^
  132. rtmpsuck.c:128:1: note: in expansion of macro 'SAVC'
  133.  SAVC(capabilities);
  134.  ^~~~
  135. rtmpsuck.c:119:35: warning: 'av_fpad' defined but not used [-Wunused-const-variable=]
  136.  #define SAVC(x) static const AVal av_##x = AVC(#x)
  137.                                    ^
  138. rtmpsuck.c:127:1: note: in expansion of macro 'SAVC'
  139.  SAVC(fpad);
  140.  ^~~~
  141. gcc -Wall  -o rtmpsuck rtmpsuck.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
  142. pi@raspberrypi:~/src/rtmpdump $ sudo checkinstall --pkgname=rtmpdump --pkgversion="2:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
  143.  
  144. checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
  145.            This software is released under the GNU GPL.
  146.  
  147.  
  148.  
  149. *****************************************
  150. **** Debian package creation selected ***
  151. *****************************************
  152.  
  153. This package will be built according to these values:
  154.  
  155. 0 -  Maintainer: [ root@raspberrypi ]
  156. 1 -  Summary: [ Package created with checkinstall 1.6.2 ]
  157. 2 -  Name:    [ rtmpdump ]
  158. 3 -  Version: [ 2:201712241833-git ]
  159. 4 -  Release: [ 1 ]
  160. 5 -  License: [ GPL ]
  161. 6 -  Group:   [ checkinstall ]
  162. 7 -  Architecture: [ armhf ]
  163. 8 -  Source location: [ rtmpdump ]
  164. 9 -  Alternate source location: [  ]
  165. 10 - Requires: [  ]
  166. 11 - Provides: [ rtmpdump ]
  167. 12 - Conflicts: [  ]
  168. 13 - Replaces: [  ]
  169.  
  170. Enter a number to change any of them or press ENTER to continue:
  171.  
  172. Installing with make install...
  173.  
  174. ========================= Installation results ===========================
  175. make[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
  176. make[1]: Nothing to be done for 'all'.
  177. make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
  178. mkdir -p /usr/local/bin /usr/local/sbin /usr/local/man/man1 /usr/local/man/man8
  179. cp rtmpdump /usr/local/bin
  180. cp rtmpgw rtmpsrv rtmpsuck /usr/local/sbin
  181. cp rtmpdump.1 /usr/local/man/man1
  182. cp rtmpgw.8 /usr/local/man/man8
  183. make[1]: Entering directory '/home/pi/src/rtmpdump/librtmp'
  184. sed -e "s;@prefix@;/usr/local;" -e "s;@libdir@;/usr/local/lib;" \
  185.     -e "s;@VERSION@;v2.4;" \
  186.     -e "s;@CRYPTO_REQ@;libssl,libcrypto;" \
  187.     -e "s;@PUBLIC_LIBS@;;" \
  188.     -e "s;@PRIVATE_LIBS@;;" librtmp.pc.in > librtmp.pc
  189. mkdir -p /usr/local/include/librtmp /usr/local/lib/pkgconfig /usr/local/man/man3 /usr/local/lib
  190. cp amf.h http.h log.h rtmp.h /usr/local/include/librtmp
  191. cp librtmp.a /usr/local/lib
  192. cp librtmp.pc /usr/local/lib/pkgconfig
  193. cp librtmp.3 /usr/local/man/man3
  194. cp librtmp.so.1 /usr/local/lib
  195. cd /usr/local/lib; ln -sf librtmp.so.1 librtmp.so
  196. make[1]: Leaving directory '/home/pi/src/rtmpdump/librtmp'
  197.  
  198. ======================== Installation successful ==========================
  199.  
  200. Copying documentation directory...
  201. ./
  202. ./ChangeLog
  203. ./README
  204. ./COPYING
  205.  
  206. Some of the files created by the installation are inside the home directory: /home
  207.  
  208. You probably don't want them to be included in the package.
  209. Do you want me to list them?  [n]: n
  210. Should I exclude them from the package? (Saying yes is a good idea)  [n]: n
  211.  
  212. Some of the files created by the installation are inside the build
  213. directory: /home/pi/src/rtmpdump
  214.  
  215. You probably don't want them to be included in the package,
  216. especially if they are inside your home directory.
  217. Do you want me to list them?  [n]: n
  218. Should I exclude them from the package? (Saying yes is a good idea)  [y]: y
  219.  
  220. Copying files to the temporary directory...OK
  221.  
  222. Stripping ELF binaries and libraries...OK
  223.  
  224. Compressing man pages...OK
  225.  
  226. Building file list...OK
  227.  
  228. Building Debian package...OK
  229.  
  230. Installing Debian package...OK
  231.  
  232. Erasing temporary files...OK
  233.  
  234. Deleting temp dir...OK
  235.  
  236.  
  237. **********************************************************************
  238.  
  239.  Done. The new package has been installed and saved to
  240.  
  241.  /home/pi/src/rtmpdump/rtmpdump_201712241833-git-1_armhf.deb
  242.  
  243.  You can remove it from your system anytime using:
  244.  
  245.       dpkg -r rtmpdump
  246.  
  247. **********************************************************************
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top