iOS音視頻開源框架Linphone入門-編譯

背景

Linphone is a free VoIP and video softphone based on the SIP protocol.

Dialer screenshot

準備工作

我們先做好以下工作:
安裝:Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安裝:Java JDK
安裝終端工具:iTerm2(可選,也可用Mac自帶工具,我這邊用的是iTerm2)
安裝相關依賴組件:
brew install wget imagemagick doxygen cmake nasm intltool yasm automake coreutils optipng autoconf pkg-config

編譯

編譯的話,可以有很多途徑:
官網
第三方鏡像:BelledonneCommunicationslinphone-iphone
以上兩種我都嘗試過均可以編譯成功!
下面我還是用官方的編譯方法:

image.png

第一步我們在準備工作中已經做過了
第二步:下載Linphone源碼(iOS):

image.png

git clone git://git.linphone.org/linphone-iphone.git --recursive
注意:這一步驟將花費一天一夜的時間,關鍵還是看網速
下載成功:

image.png

將終端切換到源碼的根目錄:linphone-iphone(cd /path/to/your/linphone-iphone/dir)
./prepare.py

image.png

編譯成功截圖:

image.png

第三步:添加環境變量
export PATH=/usr/local/bin:$PATH
第四步:編譯庫(大概花費十幾分鐘)
./prepare.py -c && ./prepare.py && make
編譯成功截圖:

image.png

image.png

如果你的準備工作做好了,按照官網的步驟應該是一步到位
只是花費很長的時間在下載源碼
最終截圖:

image.png

最后附上源碼,SDK下載鏈接:
源碼下載
SDK下載
官網SDK下載

參考鏈接:
快速移植Linphone到自己的項目
Linphone-iOS-移植
Linphone iOS 編譯

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容