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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章