ubuntu下安装freeswitch1.6

来源:互联网 发布:scanner java 编辑:程序博客网 时间:2024/04/30 00:38
Ubuntu 14.04 64位

源码下载:
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git

依赖包安装:
libedit-dev libldns-dev
libpcre3-dev libspeexdsp-dev libspeex-dev libcurl4-openssl-dev libopus-dev
libncurses5-dev libtiff-dev libjpeg-dev zlib1g-dev libssl-dev libsqlite3-dev
build-essential automake autoconf git-core wget libtool
liblua50-dev libsndfile1-dev

还有ubuntu官方源中缺少的几个软件包:
1.下载libyuv源码并编译

cd freeswitch/dep-libs
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

2.下载yasm并编译

yasm是一个汇编编译器,是nasm的升级版
yasm下载地址:http://www.tortall.net/projects/yasm/releases/
yasm解压命令:tar -zxvf ****.tar.gz (我下载的是yasm-1.3.0.tar.gz)
yasm编译安装:① ./configure, ② make, ③ make install
yasm安装完毕之后回到第二步重新安装libvpx

3.下载libvpx源码并编译

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

4.下载opus并编译

git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus
./autogen.sh
./configure
make
make install

5.下载libpng并编译

git clone https://freeswitch.org/stash/scm/sd/libpng.git
cd libpng
./configure
make
make install

6.下载libsilk并编译

git clone https://freeswitch.org/stash/scm/sd/libsilk.git

cd libsilk

./bootstrap.sh

./configure
make
make install

安装过程:
ldconfig 确保上面安装的第三方库都能够被正确链接

./bootstrap.sh如果报错

vi bootstrap.sh,修改里面libtool一行,将libtool14改为libtoolize保存,再执行

./configure

make
make install

安装语音包(英文)
make sounds-install
make moh-install

安装silk解码器

make mod_silk-install

如果需要用freeswitch做电话,需要安装

make mod_portaudio

mod_portaudio-install

需要安装paudio-dev19

http://portaudio.com/docs/v19-doxydocs/tutorial_start.html

安装完portaudio19-dev包后,需要作如下步骤:
第一步,修改modules.conf文件,放开mod_portaudio的注释
第二步,重新运行./configure
第三步,执行make mod_portaudio
第四步,执行sudo make mod_portaudio-install


原创粉丝点击