编译oRTP库
来源:互联网 发布:买车软件哪个好 编辑:程序博客网 时间:2024/04/29 07:10
海思HI3515平台编译oRTP库
下载oRTP源码: http://download.savannah.gnu.org.sixxs.org/releases/linphone/ortp/sources/
最新的版本ortp-0.20.0.tar.gz
22-Feb-2012 16:22
503K
感谢网友的文章,在
1. 编译oRTP海思平台移植ortp20过程如下:
编译及安装
进入主目录:cd ~/ortp-0.20.0
解压
执行如下命令:
a)./configure
b)make
c)make install
装好以后系统环境如下,静态动态库安装到了/usr/local/lib目录下,包括libortp.la、libortp.so libortp.so.8 libortp.so.8.0.0。头文件在/usr/local/include目录ortp目录下。
库文件复制到/usr/lib文件夹下,头文件复制到/usr/include下。
2. 交叉编译oRTP
1)库文件编译
进入主目录:cd ~/ortp-0.20.0
解压
执行如下命令:
a ) ./configure --host= arm-hisi-linux
或 ./configure --prefix=/opt/ortp --host=arm-hisi-linux
注:执行make时程序报错我们把文件/ortp-0.20.0/src/b64.c 中209-212行注释掉即可
#ifndef__WATCOMC__
// assert(characters[0] >= 0&& characters[0] < 64);
// assert(characters[1] >= 0&& characters[1] < 64);
// assert(characters[2] >= 0 &&characters[2] < 64);
// assert(characters[3] >= 0 &&characters[3] < 64);
#endif /*__WATCOMC__ */
/opt/ortp 是最后生成的库文件和头文件的文件夹
arm-hisi-linux是使用的平台,另外有可能用到arm-hismall-linux(如果编译器不匹配可能造成链接不上库文件)
b)make
c)make install
2)复制头文件和库文件
为了能在hisi平台上运行程序,需要把库文件拷贝到嵌入式文件系统中。分别拷贝到\usr\lib中。
到此ortp的交叉编译环境移植成功。
3 程序编译与测试
1) PC端程序编译
gcc rtp rtprecv.c–o rtprecv –lortp编译接收端程序
2) ARM端程序编译
arm-hisi-linux-gcc rtpsend.c –o rtpsend_arm –lortp -L/opt/ortp/lib 编译ARM端发送程序
-L用来指定库的目录
由于hisi平台下有hisi和hismall两个编译器,造成过 “skipping incompatible”,“ cannot find -lortp”的错误。
3) 测试
分别在PC端运行./rtprecv test 5000
在ARM端运行 ./rtpsend_arm test10.108.20.26 5000
可完成从ARM端发送文件test到PC端。
- 编译oRTP库
- 编译oRTP库
- 编译oRTP库
- ortp 编译测试
- WindowsXP+VS2010 编译oRTP
- ortp编译测试
- 编译oRTP ok6410移植ortp20
- Ubuntu ORTP 编译及安装
- ortp在vs2005下的编译(ortp 0.16.3)
- ortp库使用入门
- ortp库使用入门
- oRTP库的学习
- ortp库使用入门
- ortp库使用入门
- ortp库API说明
- ortp库使用入门
- ortp库入门
- ortp库使用入门
- checking network configuration requirements . The overall result of this check is: Not executed
- JSON必知
- 设计模式--行为型--观察者模式
- c++中的异步和同步机制
- USB Camera摄像头 (UVC 与 gspca)
- 编译oRTP库
- 黑马程序员——ASP.net中http协议
- 如何使用gdb调试程序
- c# .net 调用php 的webservice接口
- 黑马程序员—asp.net基础篇1
- JSP标准标签库(二)
- listView显示网路图片,并保存本地
- ORACLE中将一个值赋值到另一个表的值
- 面向对象