第一部分:openssl
脚本以及资源:https://github.com/x2on/OpenSSL-for-iPhone;
https://www.openssl.org/source/;
1、更改脚本支持的架构,此处只支持arm64;

2、终端输入:./build-libssl.sh

第二部分:librtmp
资源:http://rtmpdump.mplayerhq.hu;git clone:git clone git://git.ffmpeg.org/rtmpdump
目前可寻文章没有说清楚,或者遗漏步骤,正确如下:
1、将第一部分得到的include和lib拷贝到刚才克隆的rtmpdump文件夹下;

2、上图中从上往下第二个文件“build-librtmp.sh”脚本网上可以搜索到,如果需要请留下邮箱;
3、此步骤网上的文章均没写,直接编译的话导致报错:Openssl for iOS not found, will install openssl for iOS;解决办法:将OpenSSL源码中的openssl拷贝到rtmpdump源码中include文件夹下即可;


编译完成


时间仓促,如有错误,请指正。如果需要脚本文件和编译后的lib请留下邮箱📮。
网友评论