Linphone iOS SDK 編譯


1.安裝預備
     檢出代碼 git clone git://git.linphone.org/linphone-iphone.git --recursive
     下載 MacPorts http://www.macports.org/install.php 
     Mountain Lion版本 https://distfiles.macports.org/MacPorts/MacPorts-2.2.0-10.8-MountainLion.pkg

2.依照檢出代碼 README提示步驟,進行相關編譯/安裝
首先搞定PATH配置,使用了zsh,如下操作
添加/opt/local/bin
echo "export PATH=$PATH" >> ~/.zshrc
source ~/.zshrc


#確認安裝Xcode以及Macports
sudo port install coreutils automake autoconf libtool intltool wget pkgconfig cmake gmake yasm grep doxygen ImageMagick optipng antlr3 
     時間超長 中間看看是否有failed的情況,剩下的就是等了
     如果是失敗,看看是什么問題,要是超時的話,從中斷的地方繼續下載。

#Install gas-preprosessor.pl version above Jully 2013
     $ wget --no-check-certificate https://raw.github.com/yuvi/gas-preprocessor/master/gas-preprocessor.pl
     超時? 直接去網站下吧
     $ sudo mv gas-preprocessor.pl /opt/local/bin/.
     $ sudo chmod +x /opt/local/bin/gas-preprocessor.pl

#Link macport libtoolize to glibtoolize 
     $ sudo ln -s /opt/local/bin/glibtoolize /opt/local/bin/libtoolize 

#Link host's strings to simulator SDK
For Xcode prior to 4.3:
     $ sudo ln -s  /usr/bin/strings /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
     For newer XCode:
     $ sudo ln -s  /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings

BUILDING THE SDK
****************

 * GPL third parties versus non GPL third parties

 This sdk can be generated in 2 flavors. Firt is with GPL third parties, it means liblinphone includes GPL third parties like FFMPEG or x264.
 If you choose this flavor, your final application must comply with GPL in any case. This is the default mode.

 To generate the liblinphone multi arch sdk in GPL mode, do:
     $ cd submodules/build
     $ make all

*需要聯網
*花費1小時

The resulting sdk is in liblinphone-sdk/ directory. 

研究代碼,走起~


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM