前言
上一篇文章中,在ubuntu下搭建了RTSP Server,见传送门。本文将把live555源码包交叉编译后再hi3516a开发板上运行live555 RTSP Server。
源码包下载
见上述链接进行源码下载
交叉编译
tar -xvf live.2019.03.06.tar.gz
cd live
参考自带的config.armlinux文件新建一个config.hi3516a文件
cp config.armlinux config.hi3516a
config.armlinux文件如下:
由于hi3516a使用arm-hisiv300-linux-交叉编译工具,所以把config.hi3516a文件中CROSS_COMPILE?= arm-elf-
修改为CROSS_COMPILE?= arm-hisiv300-linux-
保存。
编译
./genMakefiles hi3516a
make
结果报了如下的错误:
编译locale.o 文件出错了,我们在编译选项上加入 -DLOCALE_NOT_USED 把此模块屏蔽掉即可。
make clean
./genMakefiles hi3516a
make
编译通过,如下:
RTSP Server开启
把编译生成的而二进制文件live555MediaServer和视频文件下载到开发板中。
开启live555 RTSP服务器:
./live555MediaServer
播放