首页 > 其他 > 详细

freeswitch编译

时间:2016-02-13 23:10:47      阅读:570      评论:0      收藏:0      [点我收藏+]

debian的包太老了,添加新源

echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add -

 

echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list

 

下载源码

git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git 1.6

 

安装编译需要的东西

sudo apt-get install yasm autoconf libtool-bin libghc-zlib-dev libjpeg-dev pkg-config libsqlite3-dev libcurl4-openssl-dev libpcre++-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libyuv-dev libvpx2-dev

 

安装需要的库

cd $FREESWITCH/libs

编译安装libyuv

git clone https://freeswitch.org/stash/scm/sd/libyuv.git
cd libyuv
make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/"
make install

 

编译安装VPX

git clone https://freeswitch.org/stash/scm/sd/libvpx.git
cd libvpx
./configure --enable-pic --disable-static --enable-shared
make
make install

 

编译freeswitch

./bootstrap
./configure --prefix=/home/`whoami`/fs/freeswitch-bin make make install

 

freeswitch编译

原文:http://www.cnblogs.com/ziyouchutuwenwu/p/5188392.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!