LINUX doubango编译详细过程记录

简介: LINUX doubango编译详细过程记录
  • 说明

本文章详细记录了编译doubango的详细过程。


为了保证移植的便利,所有用到的库,都自行编译。


默认更简单一些。文中经常看到BUILD_LIBS=${HOME}/build_libs语句。这是为了把所有编译结果放在一个目录下。因为会用到:

export PATH=${BUILD_LIBS}/bin:${PATH}

 

  • 参考文档

https://github.com/DoubangoTelecom/doubango/blob/master/Building_Source_v2_0.md

吾使用的是debango编译。

  • 准备工作
apt update
apt install gcc make cmake
apt install autoconf subversion git wget g++ pkg-config 
# libtool libtool libogg-devel nasm
  • 下载编译libtool

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


  • 下载编译libogg

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


  • 下载编译nasm

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


  • 下载编译libsrtp

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


  • 下载编译OpenSSL

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


  • 下载编译libspeex/libspeexdsp

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


  • 下载编译YASM

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


  • 下载编译Which

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


  • 下载编译libvpx

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


  • 下载编译jpeglib

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


  • 下载编译libyuv

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


  • 下载编译libopus

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


  • 下载编译opencore-amr

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


  • 下载编译vo-amrwbenc

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


  • 下载编译libgsm

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


  • 下载编译g729

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


  • 下载编译iLBC

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


  • 下载编译x264

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


  • 下载编译openh264

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


  • 下载编译FFmpeg

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

 

以上编译,注意都要设置prefix

  • 编译doubango

吾已适配ffmpeg 4.2.2,并上传到开源库,并提供了编译脚本。推荐下载:

https://github.com/quantum6/doubango-quantum6

BUILD_LIBS=${HOME}/build_libs
export PATH=${BUILD_LIBS}/bin:${PATH}
export LD_LIBRARY_PATH=${BUILD_LIBS}/lib:${LD_LIBRARY_PATH}
if [ -f autogen.sh ]; then
echo
#    ./autogen.sh
fi
cd bindings
if [ -f autogen.sh ]; then
    ./autogen.sh
fi
cd ..
# 关键一步,必须!
# autoreconf -fiv
rm config.log
./configure  \
    --prefix=${BUILD_LIBS}  \
    CFLAGS=-I${BUILD_LIBS}/include \
    LDFLAGS=-L${BUILD_LIBS}/lib \
    LIBS="-lm -lc -lswresample -lavutil -lyuv -ljpeg " \
    --with-ssl --with-srtp --with-vpx --with-yuv --with-amr --with-speex --with-speexdsp --enable-speexresampler --enable-speexdenoiser --with-opus --with-gsm --with-ilbc --with-ffmpeg
# --with-g729
#    --with-speexdsp --with-ffmpeg --with-opus
make
make install


目录
相关文章
|
2月前
|
Ubuntu Linux 编译器
Linux应用开发基础知识——交叉编译与gcc编译(一)
Linux应用开发基础知识——交叉编译与gcc编译(一)
63 0
Linux应用开发基础知识——交叉编译与gcc编译(一)
|
5月前
|
Linux 对象存储
Rocky Linux 9 编译ossfs
介绍如何在Rocky Linux 9下编译阿里云的ossfs,本方法对CentOS 9 stream也适用。
119 0
|
4月前
|
Linux 编译器 C语言
《Linux从练气到飞升》No.05 Linux编译器gcc/g++的使用及编译过程 【云边有个小卖部】上新
《Linux从练气到飞升》No.05 Linux编译器gcc/g++的使用及编译过程 【云边有个小卖部】上新
59 0
|
7月前
|
Ubuntu Linux 开发工具
嵌入式Linux系列第4篇:Kernel编译下载
嵌入式Linux系列第4篇:Kernel编译下载
|
4月前
|
Linux C语言
在Linux中使用gcc/g++编译代码
1.方法速记 直接编译语法:将text.c文件或者text.cpp文件直接编译成text文件。 gcc text.c -o text // gcc-o text.c text g++ text.cpp -o text // g++ text.cpp -o text
45 0
|
4月前
|
Linux
Linux|编译最新版的openssh-server-9.3的rpm包的使用方法(二)
Linux|编译最新版的openssh-server-9.3的rpm包的使用方法(二)
87 0
|
1月前
|
Linux 开发工具 C语言
【研究Qt webengine 模块编译】linux 交叉编译qt5.12的webengine模块成功的条件
【研究Qt webengine 模块编译】linux 交叉编译qt5.12的webengine模块成功的条件
34 1
|
2月前
|
Java Linux 开发工具
Azkaban【部署 01】Linux环境 CentOS Linux release 7.5.1804安装配置azkaban-3.70.0编译阶段(附安装包及gradle-4.6资源)
【2月更文挑战第4天】Linux环境 CentOS Linux release 7.5.1804安装配置azkaban-3.70.0编译阶段(附安装包及gradle-4.6资源)
30 1
|
3月前
|
算法 网络协议 Linux
Linux模块文件编译到内核与独立编译成.ko文件的方法
Linux模块文件编译到内核与独立编译成.ko文件的方法
179 0
|
3月前
|
Linux
Log4cpp在Linux下载编译
Log4cpp在Linux下载编译