当前位置: 首页 > 工具软件 > libsrtp > 使用案例 >

LINUX下载编译libsrtp-2.3.0

牛智志
2023-12-01
  • 下载

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,有时提示找不到,手动改一下代码或者建立代码链接。参考:

https://blog.csdn.net/quantum7/article/details/104404819

 类似资料: