1 下载linphone-iphone。
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
根据提示,命令行执行以下命令:
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一把了。成功运行,完美!