Ubuntu12下linphone3.7.0的Linux端编译
参考:https://w.ceops.eu/words/posts/Compiling%20Linphone%203.7.0%20with%20TLS%20and%20ZRTP%20support/
http://blog.csdn.net/L_yangliu/article/details/22807509
http://blog.csdn.net/l_yangliu/article/details/24464229
一.
Building Belle-sip
(1)先安装 antlr3_3.2.is.3.2-7ubuntu3_all.deb
(2)安装 libantlr3c-dev_3.2-2build1_i386.deb
(3)下载并解压 belle-sip-1.3.0.tar.gz
在belle-sip目录下:
$ ./configure --enable-tls
$ make
# make install
(4)测试belle-sip是否安装成功
$ ls /usr/local/lib/libbellesip*
出现
/usr/local/lib/libbellesip.a
/usr/local/lib/libbellesip.la
/usr/local/lib/libbellesip.so
/usr/local/lib/libbellesip.so.0
/usr/local/lib/libbellesip.so.0.0.0
二.
Building Linphone
下载并解压linphone3.7.0(也可从官网下载)源码: linphone-3.7.0.tar.gz
打开并详细阅读README,依照此文件安装各种依赖和工具如下
(1)Here is the command line to get these dependencies installed for Ubuntu && Debian
$ sudo apt-get install libtool intltool libgtk2.0-dev libspeexdsp-dev libavcodec-dev libswscale-dev libx11-dev libxv-dev libgl1-mesa-dev libglew1.6-dev libv4l-dev libxml2-dev
(2)+ for optional library
$ sudo apt-get install libreadline-dev libgsm1-dev libtheora-dev libsoup2.4-dev libsqlite3-dev libupnp4-dev
(3) Install srtp (optional) for call encryption :
$ git clone git://git.linphone.org/srtp.git
$ cd srtp && autoconf && ./configure && make
$ sudo make install
(4)+ Install zrtpcpp (optional), for unbreakable call encryption
$ sudo apt-get install cmake
$ git clone https://github.com/wernerd/ZRTPCPP.git
$ cd ZRTPCPP
$ cmake -DCORE_LIB=true -DSDES=false . && make
$ sudo make install
如果报错::“error: "cc1plus: error: unrecognized command line option ‘-std=c++11’"”
编辑CMakeLists.txt,将c++11改成c++0x
If you get this error: "cc1plus: error: unrecognized command line option ‘-std=c++11’", :edit CMakeLists.txt and replace c++11 by c++0x .
(5)编译- Compile linphone
$ ./autogen.sh
$ ./configure
报错:configure: error: libupnp >= 1.6 < 1.5 required;
解决: $sudo apt-get install synaptic
$synaptic
搜索“
libupnp”,卸载掉高于1.5的版本,并安装小于1.5的版本(原本有小于1.5版本的不用安装),共三个。
ctrl+C退出
synaptic
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
$ ./configure
$ make && sudo make install
$ sudo ldconfig
$ linphone