ios linphone-iphone编译

来源:互联网 发布:捷速pdf文字识别软件 编辑:程序博客网 时间:2024/06/01 09:15

1 下载linphone-iphone。

git clone git://git.linphone.org/linphone-iphone.git —recursive
听天由命吧,不要有脾气,慢慢来,我是活活下载了三天。我的笔记本3天没有关机....总共下载下来是1G左右。
2 安装brew 
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

3 前往linphone-iphone目录下执行./prepare.py,报错,根据提示安装缺失的依赖 ,错误如下:

ERROR: Invalid version of nasm detected. Please make sure that you are NOT using Apple's binary here

ERROR: The following binaries are missing: convert doxygen cmake intltoolize yasm ginstall wget optipng nasm. Please install them using:

brew install imagemagick doxygen cmake intltool yasm coreutils wget optipng nasm

根据提示,命令行执行以下命令:

brew install imagemagick doxygen cmake intltool yasm coreutils wget optipng nasm

4 安装完毕再次执行./prepare.py,依然报错,如下:

ERROR: The following binaries are missing: convert. Please install them using:brew install imagemagick

根据提示执行:brew install imagemagick


5 安装imagemagick,结果它还有小情绪,报错如下:

Error: You must `brew link libtool` before imagemagick can be installed

好,就依你,先link libtool

执行命令如下:brew link libtool


6 继续安装imagemagick,执行命令:brew install imagemagick


7 安装完毕继续执行./prepare.py


8 执行结果如下:

INFO: You can now run 'make' to build.

WARNING: 

***************************************************************************

***************************************************************************

***** CAUTION, this liblinphone SDK is built using 3rd party GPL code *****

***** Even if you acquired a proprietary license from Belledonne      *****

***** Communications, this SDK is GPL and GPL only.                   *****

***** To disable 3rd party gpl code, please use:                      *****

***** $ ./prepare.py -DENABLE_GPL_THIRD_PARTIES=NO                    *****

***************************************************************************

***************************************************************************

9 根据提示,执行命令:make,开始正式编译

下面就是等待...先出去看会广告,广告之后更加精彩…


10 等待,见证奇迹的时刻!

等了差不多有20分钟,编译完成。在linphone-iphone根目录下会多个文件夹liblinphone-sdk。存放的就是编译好的sdk.下面就可以打开项目run一把了。成功运行,完美!


0 0
原创粉丝点击