注意:
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