centos
确保有这些包:
yum -y install gcc gcc-c++ pkgconfig zlib-devel openssl-devel ncurses-devel
yum -y install autoconf automake libtool
安装高版本的gcc g++
yum install centos-release-scl -y
yum install devtoolset-8-gcc* -y
source /opt/rh/devtoolset-8/enable
yum install -y bzip2
yum install -y bzip2-devel
ubuntu 20
sudo apt update
sudo apt install build-essential
apt-get install aptitude
sudo apt-get install zlib1g-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev
下载libsrtp
./configure -enable-openssl
make -4
make install
安装boost库
./bootstrap.sh
./b2 -j 4 --with-system --with-thread --with-date_time --with-regex --with-serialization stage
./b2 install