https://github.com/cisco/libsrtp/releases
tar xf libsrtp-2.3.0.tar.gz
cd libsrtp-2.3.0
BUILD_LIBS=${HOME}/telecom/build_libs
./configure --prefix=${BUILD_LIBS}
make
make libsrtp2.so
ln -snf libsrtp2.so libsrtp2.so.1
# or
# cp libsrtp2.so ${BUILD_LIBS}/lib
make install
ln -snf ${BUILD_LIBS}/include/srtp2 ${BUILD_LIBS}/include/srtp
ln -snf ${BUILD_LIBS}/lib/libsrtp2.so ${BUILD_LIBS}/lib/libsrtp.so
注意,新版的srtp产生的头文件目录是srtp2,有时提示找不到,手动改一下代码或者建立代码链接。参考: