在写这篇文章之前非常感谢@快捷键 大大的无私奉献和指导!
linphone编译的版本为当前最新的3.14版。
在github的地址是:https://github.com/BelledonneCommunications/linphone-iphone
编译的时候参考README.md 文件中 Buiding and customizing the SDK 指导。

按照上面的步骤:
1.安装 HomeBrew,点击链接进入Homebrew官网可以看到如下界面

①根据官网提示在终端输入安装命令:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
②装上wget: brew install wget
完成。
2.下载linphone-iphone项目:
①这里要用git clone命令下载,主要是比直接download下载的多了一个git管理的仓库,命令行为:
git clone https://github.com/BelledonneCommunications/linphone-iphone.git
②下载完成之后进入目录内:dc linphone-iphone/
然后执行命令 ./prepare.py
如无例外,会报如下错误

原因是执行python脚本缺少模块,安照他给的提示执行
git submodule sync && git submodule update --init --recursive
接着再执行 ./prepare.py
3.配置环境路径
执行命令 export PATH=/usr/local/bin:$PATH
4.Build SDK
执行命令 ./prepare.py -c && ./prepare.py && make
这里又会报错:

解决办法:
①安装Java JDK
到官网下载MAC版的java jdk然后安装 :
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
②根据提示运行组件,执行如下命令

最后再执行一次make命令
./prepare.py -c && ./prepare.py && make
然后进入等待中。。。
make完之后就可以在文件目录中看到sdk了

如果缺少文件就要重新执行一次make命令。
网友评论