码迷,mamicode.com
首页 > 其他好文 > 详细

freeswitch编译

时间:2016-02-13 23:11:40      阅读:471      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!