LINUX下载编译FreeSwitch
Posted 柳鲲鹏泰山
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LINUX下载编译FreeSwitch相关的知识,希望对你有一定的参考价值。
官方参考链接:
- 必须
- GIT or WGET
- AUTOCONF
- AUTOMAKE
- GCC-C++
- LIBJPEG-DEVEL Used by mod_spandsp for basic codecs
- LIBTOOL
- MAKE
- NCURSES-DEVEL
- 可选
- curl-devel for mod_xml_curl
- expat-devel
- libtiff for fax support
- libx11-devel for Mod_skypopen
- ODBC or UNIX-ODBC and ODBC-devel see the ODBC page for information
- OpenSSL (libssl-dev / openssl-devel) for SIP SSL & TLS and Dingaling
- python-devel for the python interface
- ZLIB and ZLIB-devel
-
libzrtp ZRTP encryption support, see the FreeSWITCH™ ZRTP page
- 下载编译相关库
吾全部编译,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
以上是关于LINUX下载编译FreeSwitch的主要内容,如果未能解决你的问题,请参考以下文章