LIVE555再学习 -- Linux 下编译
2017-09-14 10:19
183 查看
现在我们来看一下 LIVE555 在Linux下的编译
一、下载源码
下载:Index of /liveMedia/public参看:LIVE555 Streaming Media选择下载 live555-latest.tar.gz
二、文件介绍
我的开发环境为 Ubuntu 12.04将上面下载的 live555-latest.tar.gz 解压tar -zxvf live555-latest.tar.gz包括上述四个库和mediaServer服务器程序,以及其他的测试代码。这几个文件在官网是有介绍的:参看:live555 Description
三、配置编译
参看:How to configure and build the code on UnixThe source code package can be found (as a ".tar.gz" file) here. Use "tar -x" and "gunzip" (or "tar -xz", if available) to extract the package; then cd to the "live" directory. Then run
./genMakefiles <os-platform>where <os-platform> is your target platform - e.g., "linux" or "solaris" - defined by a "config.<os-platform>" file. This will generate a Makefile in the "live" directory and each subdirectory. Then run "make".If the "make" fails, you may need to make small modifications to the appropriate "config.<os-platform>" file, and then re-run "genMakefiles <os-platform>". (E.g., you may need to add another "-I<dir>" flag to the COMPILE_OPTS definition.)
Some people (in particular, FreeBSD users) have reported that the GNU version of "make" - often called "gmake" - works better than their default, pre-installed version of "make". (In particular, you should try using "gmake" if you encounter linking problems with the "ar" command.)
If you're using "gcc" version 3.0 or greater: You may also wish to add the -Wno-deprecated flag to CPLUSPLUS_FLAGS.
If no "config.<os-platform>" file exists for your target platform, then try using one of the existing files as a template.
If you wish, you can also 'install' the headers, libraries, and applications by running "make install".翻译一下:解压 live555-latest.tar.gz tar -zxvf live555-latest.tar.gz进入 live 目录cd live然后执行./genMakefiles <os-platform>
其中<os-platform>是您的目标平台,例如由“config.<os-platform>”文件定义的“linux”或“solaris”。因此可知,应执行 ./genMakefiles linux
这将在“live”目录和每个子目录中生成一个Makefile。然后运行“make”。
如果“make”失败,您可能需要对相应的“config.<os-platform>”文件进行小修改,然后重新行“genMakefiles <os-platform>”。 (例如,您可能需要在COMPILE_OPTS定义中添加另一个“-I <dir>”标志。)
有些人(特别是FreeBSD用户)已经报告说,“make”的GNU版本(通常称为“gmake”)比默认的预装版本“make”更好。 (特别是,如果遇到与“ar”命令的连接问题,您应该尝试使用“gmake”。)
如果您使用的是“gcc”3.0或更高版本:您也可以将-Wno-deprecated标志添加到CPLUSPLUS_FLAGS。
如果您的目标平台没有“config.<os-platform>”文件,请尝试使用其中一个现有文件作为模板。
如果您愿意,还可以通过运行“make install”来安装头文件,库和应用程序。然后可以看到 mediaServer 目录下生成文件 live555MediaServer
四、测试
执行 live555MediaServer然后找一个视频文件,放在和 live555MediaServer同一目录。注意视频格式,要是上面所支持的。然后打开 VLC,媒体->打开网络串流,输入网络URL。 rtsp://电脑IP地址/<filename>
五、源码下载
下载:linux 下 LIVE555 项目工程相关文章推荐
- FileGDB API for linux 学习系列之二,编译Display例子程序
- LFS-Linux From Scratch学习笔记——LFS工具编译命令说明(第二次编译)
- 马哥Linux培训学习――编译安装Apache HTTP Server 2.4.10
- Linux_Ubuntu_openWrt编译环境学习_编译出错
- linux 编程学习笔记--编译多个文件
- Linux下live555的编译
- linux 模块编译步骤 分类: 嵌入式开发学习 2014-06-09 09:56 162人阅读 评论(0) 收藏
- Linux内核驱动学习(一)----内核简介 | 配置 | 编译| 安装(PC平台下)
- 学习笔记:关于Linux主机将编译产生的模块导入目标板的一些基本步骤
- Linux编译/交叉编译 live555
- linux/c下对动态库的编译和装载的学习
- Linux内核驱动学习(一)----内核简介 | 配置 | 编译| 安装(PC平台下)
- 【转老迈】linux内核编译学习笔记
- Linux学习笔记——如何使用共享库交叉编译
- 转: live555学习笔记1—编译与调试环境的搭建
- live555在arm linux下的交叉编译,并下载的Arm板播放H264文件
- DayDayUP_Linux运维学习_交叉编译环境的搭建
- 学习日志---linuxの 源码编译使用及实例运行
- 在VM上学习嵌入式Linux系统的构建之一--编译内核
- 嵌入式Linux驱动学习之路(四)u-boot编译分析