背景
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
編譯
編譯的話,可以有很多途徑:
官網
第三方鏡像:BelledonneCommunications的linphone-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下載