第一部分:openssl
腳本以及資源:https://github.com/x2on/OpenSSL-for-iPhone;
? ??????????????????????????https://www.openssl.org/source/;
1、更改腳本支持的架構(gòu),此處只支持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”腳本網(wǎng)上可以搜索到,如果需要請留下郵箱;
3、此步驟網(wǎng)上的文章均沒寫,直接編譯的話導致報錯:Openssl for iOS not found, will install openssl for iOS;解決辦法:將OpenSSL源碼中的openssl拷貝到rtmpdump源碼中include文件夾下即可;


編譯完成


時間倉促,如有錯誤,請指正。如果需要腳本文件和編譯后的lib請留下郵箱??。