天天看点

LINUX下载编译FreeSwitch

官方参考链接: https://freeswitch.org/confluence/display/FREESWITCH/Linux+Quick+Install+Guide#LinuxQuickInstallGuide-CompiletheSource

  • 下载编译相关库

吾全部编译,signalwire编译不通过,所以禁止了。其他需要的如下:

zlib-1.2.11
yasm-1.3.0
nasm-2.14.02
 
tiff-4.1.0
jpeg-9d
png
 
openssl-OpenSSL_1_1_1g
libssh2-1.9.0
 
pcre-8.44
sqlite-autoconf-3310100
curl-7.70.0
ldns-1.7.1
libuuid-1.0.3
libvpx-1.8.2
 
speex-1.2.0
speexdsp-1.2.0
 
x264-snapshot-20180101-2245-stable
openh264-master
libav-12.3
 
lua-5.3.5
opus-1.3.1
 
ncurses-6.1
readline-7.0
postgresql-12.3
 
libsndfile-1.0.28      

吾博文中都提供了相应的下载及编译办法。有的只能编译到系统目录下。

编译完成之后,在PATH中加入其bin目录。

  • 下载代码
# git clone https://github.com/signalwire/freeswitch
# 建议下载发布版本的代码包
# https://github.com/signalwire/freeswitch/releases
 
./bootstrap.sh      

git获得最新代码,如果编译不过,下载release的代码包,解压后编译。 

  • 编译
BUILD_LIBS=${HOME}/build_libs
 
export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig
 
./configure \
    --prefix=${BUILD_LIBS} \
    --disable-werror \
    --disable-core-libedit-support \
    --disable-signalwire \
     CFLAGS="-I${BUILD_LIBS}/include -Wno-error=unused-value" \
    LDFLAGS=-L${BUILD_LIBS}/lib 
 
make
 
# this is the only way for meeting
make all install cd-sounds-install cd-moh-install