LINUX Telepresence编译详细过程记录

  • 说明

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

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

  • 参考文档

https://github.com/DoubangoTelecom/telepresence/blob/master/Support_BuildingSourceCode.md

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

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

  • 下载编译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

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

  • 下载编译libogg

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

  • 下载编译vorbis

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

  • 下载编译SDL2

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

  • 下载编译libpng

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

  • 下载编译faac

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

  • 下载编译libfreetype

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

  • 下载编译FriBidi

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

  • 下载libass

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

  • 下载编译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

  • 下载编译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

  • 下载编译OpenAL

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

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

  • 编译doubango
BUILD_LIBS=${HOME}/build_libs
 
export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig:${PKG_CONFIG_PATH}

AUTOGEN=autogen.sh
if [ -f ${AUTOGEN} ]; then
    chmod 777 ${AUTOGEN} 
    ./${AUTOGEN} 
fi

cd bindings
if [ -f ${AUTOGEN} ]; then
    chmod 777 ${AUTOGEN}
    ./${AUTOGEN}
fi
cd ..


# 关键一步,必须!
autoreconf -fiv
 
chomd 777 configure
./configure  \
     CFLAGS=${BUILD_LIBS}/include \
    LDFLAGS=${BUILD_LIBS}/lib \
    --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-g729 --with-ffmpeg
 
#    --with-speexdsp --with-ffmpeg --with-opus
#    --prefix=${BUILD_LIBS}
 
make
 
sudo make install

# for telepresence
cp bindings/_common/* ../telepresence/tinywrap
  • 下载编译TelePresence

 https://github.com/DoubangoTelecom/telepresence

BUILD_LIBS=${HOME}/build_libs
DOUBANGO_INC=${HOME}/doubango/doubango/bindings/_common

export PATH=${BUILD_LIBS}/bin:${PATH}
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${BUILD_LIBS}/lib/pkgconfig:${PKG_CONFIG_PATH}

autoreconf -fiv

AUTOGEN=autogen.sh
if [ -f ${AUTOGEN} ]; then
    chmod 777 ${AUTOGEN}
    ./${AUTOGEN}
fi

chmod 777 configure
./configure \
    --prefix=${BUILD_LIBS} \
    CFLAGS=${BUILD_LIBS}/include \
    CCFLAGS=${BUILD_LIBS}/include \
    LDFLAGS=/usr/local/lib

实际编译中,最大的问题就是ffmpeg接口太老。要么改成新接口,要么使用老的ffmpeg(具体哪个版本吾亦没试)

发布了2445 篇原创文章 · 获赞 299 · 访问量 173万+

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/104134222
今日推荐