海思3559A上编译LIVE555源码操作步骤

从http://www.live555.com/liveMedia/public/ 下载live.2019.06.28.tar.gz,并解压缩; 生成静态库,拷贝一份config.armlinux,取名为config.hi3559a,修改后的内容如下: CROSS_COMPILE?= /opt/hisi-linux/x86-arm/aarch64-himix100-linux/bin/aarch64-himix100-linux- COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_SSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 C = c C_COMPILER = $(CROSS_COMPILE)gcc C_FLAGS = $(COMPILE_OPTS) CPP = cpp CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++ CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 OBJ = o LINK = $(CROSS_COMPILE)g++ -o LINK_OPTS = CONSOLE_LINK_OPTS = $(LINK_OPTS) LIBRARY_LINK = $(CROSS_COMPILE)ar cr LIBRARY_LINK_OPTS = $(LINK_OPTS) LIB_SUFFIX = a LIBS_FOR_CONSOLE_APPLICATION = LIBS_FOR_GUI_APPLICATION = EXE =

然后依次执行如下命令,生成的静态库等相关文件在install目录下:

./genMakefiles hi3559a make make install PREFIX=~/LIVE555/install 生成动态库,拷贝一份config.linux-with-shared-libraries,取名为config.hi3559a-with-shared-libraries,修改后的内容如下: # CURRENT:REVISION:AGE are updated – whenever a library changes – as follows: # The library code changes, but without any changes to the API (i.e., interfaces) => increment REVISION # At least one interface changes, or is removed => CURRENT += 1; REVISION = 0; AGE = 0 # One or more interfaces were added, but no existing interfaces were changed or removed => CURRENT += 1; REVISION = 0; AGE += 1 libliveMedia_VERSION_CURRENT=67 libliveMedia_VERSION_REVISION=2 libliveMedia_VERSION_AGE=1 libliveMedia_LIB_SUFFIX=so.$(shell expr $(libliveMedia_VERSION_CURRENT) – $(libliveMedia_VERSION_AGE)).$(libliveMedia_VERSION_AGE).$(libliveMedia_VERSION_REVISION) libBasicUsageEnvironment_VERSION_CURRENT=1 libBasicUsageEnvironment_VERSION_REVISION=1 libBasicUsageEnvironment_VERSION_AGE=0 libBasicUsageEnvironment_LIB_SUFFIX=so.$(shell expr $(libBasicUsageEnvironment_VERSION_CURRENT) – $(libBasicUsageEnvironment_VERSION_AGE)).$(libBasicUsageEnvironment_VERSION_AGE).$(libBasicUsageEnvironment_VERSION_REVISION) libUsageEnvironment_VERSION_CURRENT=4 libUsageEnvironment_VERSION_REVISION=0 libUsageEnvironment_VERSION_AGE=1 libUsageEnvironment_LIB_SUFFIX=so.$(shell expr $(libUsageEnvironment_VERSION_CURRENT) – $(libUsageEnvironment_VERSION_AGE)).$(libUsageEnvironment_VERSION_AGE).$(libUsageEnvironment_VERSION_REVISION) libgroupsock_VERSION_CURRENT=10 libgroupsock_VERSION_REVISION=3 libgroupsock_VERSION_AGE=2 libgroupsock_LIB_SUFFIX=so.$(shell expr $(libgroupsock_VERSION_CURRENT) – $(libgroupsock_VERSION_AGE)).$(libgroupsock_VERSION_AGE).$(libgroupsock_VERSION_REVISION) ##### CROSS_COMPILE?= /opt/hisi-linux/x86-arm/aarch64-himix100-linux/bin/aarch64-himix100-linux- COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fPIC C = c C_COMPILER = $(CROSS_COMPILE)gcc C_FLAGS = $(COMPILE_OPTS) $(CPPFLAGS) $(CFLAGS) CPP = cpp CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++ CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 $(CPPFLAGS) $(CXXFLAGS) OBJ = o LINK = $(CROSS_COMPILE)g++ -o LINK_OPTS = -L. $(LDFLAGS) CONSOLE_LINK_OPTS = $(LINK_OPTS) LIBRARY_LINK = $(CROSS_COMPILE)gcc -o SHORT_LIB_SUFFIX = so.$(shell expr $($(NAME)_VERSION_CURRENT) – $($(NAME)_VERSION_AGE)) LIB_SUFFIX = $(SHORT_LIB_SUFFIX).$($(NAME)_VERSION_AGE).$($(NAME)_VERSION_REVISION) LIBRARY_LINK_OPTS = -shared -Wl,-soname,$(NAME).$(SHORT_LIB_SUFFIX) $(LDFLAGS) LIBS_FOR_CONSOLE_APPLICATION = LIBS_FOR_GUI_APPLICATION = EXE = INSTALL2 = install_shared_libraries
<

然后依次执行如下命令,生成的动态库等相关文件在install目录下:

./genMakefiles hi3559a-with-shared-libraries make make install PREFIX=~/LIVE555/install 将live555MediaServer及动态库拷贝到海思板子上,执行live555MediaServer,结果如下,说明编译正确:

海思3559A上编译LIVE555源码操作步骤

GitHub:http://github.com//fengbingchun/OpenCV_Test

原文链接:https://blog.csdn.net/fengbingchun/article/details/96287465

相关推荐:

海思HI35XX串口调试 海思平台运行OpenSSH服务端 基于海思HI35xx平台的软件开发快速入门之背景知识

免责声明:文章内容来自互联网,本站不对其真实性负责,也不承担任何法律责任,如有侵权等情况,请与本站联系删除。
转载请注明出处:海思3559A上编译LIVE555源码操作步骤 https://www.yhzz.com.cn/a/15396.html

上一篇 2023-05-12 19:24:49
下一篇 2023-05-12 19:32:47

相关推荐

联系云恒

在线留言: 我要留言
客服热线:400-600-0310
工作时间:周一至周六,08:30-17:30,节假日休息。