ORTP-0.27.0移植

注意:
    a. 对于0.27一下版本的ORTP的交叉编译则没有一下依赖库
    b. 交叉编译工具链是:
        arm-linux-gnueabihf-gcc-4.9.1 (4.9版本一下的编译bctoolbox出错)

1.依赖库列表
ortp-0.27.0移植依赖库:
    bctoolbox-0.6
bctoolbox依赖库:
    bcunit
    mbedtls

2.bcunit移植
    下载地址:
        https://github.com/BelledonneCommunications/bcunit

    a) ./autogen.sh
    b) ./configure --prefix=/root/ORTP/bcunit-install-arm --host=arm-linux-gnueabihf
    c) make
    d) make install

3.mbedtls移植
    下载地址:
        https://tls.mbed.org/download

    a) 更改安装目录
        vi Makefile 
        将DESTDIR=/usr/local 改变为 DESTDIR=/root/ORTP/mbedtls-install-arm
    b) make CC=arm-linux-gnueabihf-gcc
        提示:默认mbedtls是不会生成动态库,
              可以将SHARED置为1 即在make后添加 SHARED=1 ,生成动态库
              在此处不要设置
    c) make install

2.bctoolbox-0.6移植(4.8的交叉编译链,有问题!待解决)
    下载地址:
        https://github.com/BelledonneCommunications/bctoolbox

    a) ./autogen.sh
    b) ./configure --host=arm-linux-gnueabihf --prefix=/root/ORTP/bctoolbox-install-arm --with-bcunit=/root/ORTP/bcunit-install-arm --with-mbedtls=/root/ORTP/mbedtls-install-arm
    c) make
    d) make install
    d) 将安装目录下的bctoolbox(在安装目录include下)目录拷贝到/usr/local/include/3.ortp-0.27.0移植
    下载地址:
        https://github.com/BelledonneCommunications/ortp.git

    a) ./autogen.sh
    b) ./configure --host=arm-linux-gnueabihf --prefix=/root/ORTP/ortp-install-arm BCTOOLBOX_LIBS=-L/root/ORTP/bctoolbox-install-arm/lib/ BCTOOLBOX_CFLAGS=-I/root/ORTP/bctoolbox-install-arm/include/
    c) make
    d) make install

转载于:https://www.cnblogs.com/Focus-Flying/p/9279152.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值