- 可選
- curl-devel for mod_xml_curl
- expat-devel
- libtiff for fax support
- libx11-devel 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