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 编译

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容