freeswitch编译

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了freeswitch编译相关的知识,希望对你有一定的参考价值。

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编译的主要内容,如果未能解决你的问题,请参考以下文章

LINUX下载编译FreeSwitch

freeSwitch入门

怎么查看freeswitch版本

freeSWITCH 视频通话

freeSWITCH 视频通话

FreeSWITCH voicemail