- 下载
https://www.opus-codec.org/downloads/
- 编译openssl
https://blog.csdn.net/quantum7/article/details/104086731
- 编译ogg
https://blog.csdn.net/quantum7/article/details/104086366
- 编译脚本
BUILD_LIBS=$1
if [ "$1" == "" ]; then
BUILD_LIBS=${HOME}/build_libs
fi
export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig
make clean
./configure \
--prefix=${BUILD_LIBS} \
CFLAGS="-I${BUILD_LIBS}/include" \
--LDFLAGS="-L${BUILD-LIBS}lib"
make
make install