现在我们来看一下 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 Unix
The 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 项目工程

LIVE555再学习 -- Linux 下编译相关推荐

  1. C语言再学习 -- Linux下find命令用法

    参看:linux下find(文件查找)命令的用法总结 linux下查找文件的命令有两个:locate 和 find 首先说一下locate: 这个命名是对其生成的数据库进行遍历(生成数据库的命令:uo ...

  2. mp4v2再学习 -- Linux 下安装说明

    一.MP4v2 简介 参看:嵌入式Linux下MP4视频录制库MP4V2移植和简介 了解:mp4(3) - Linux man page 了解:MP4文件格式的解析,以及MP4文件的分割算法 首先官网 ...

  3. linux 先编译 再安装,Linux下编译安装FFmpeg

    官网介绍 FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stre ...

  4. LIVE555再学习 -- DM368/Hi3516A 交叉编译

    接着上篇文章来讲,参看:LIVE555再学习 -- Linux 下编译 下载源码.文件介绍部分不再介绍.主要看配置编译部分. 三.配置编译 DM368 的交叉编译器为 arm-none-linux-g ...

  5. LIVE555再学习 -- live555实现RTSP直播服务器

    分析完 testOnDemandRTSPServer 和 testH264VideoStreamer 的源码.我们现在就可以做相关的项目工程. 我之前写过一个,参看: DM368开发 -- 编码并实时 ...

  6. LIVE555再学习 -- testRTSPClient 实例

    上一篇文章简单看了一遍 testRTSPClient  的源码,接下来举几个应用实例加深一下. 首先什么都不做修改,先执行一遍,看一下. 一.执行 testRTSPClient 特么,上面的东西我没看 ...

  7. Git下载代码到Windows再拷贝到Linux下编译时要关闭换行符自动转换

    Git下载代码到Windows再拷贝到Linux下编译时要关闭换行符自动转换 一.各操作系统下文件换行符 二.TortoiseGit下载Github代码关闭文件换行符 三.示例说明 1.开启换行符自动 ...

  8. 学习笔记----linux下编译samba

    linux下编译samba   一.samba的启动命令:        #cd /usr/local/samba/sbin        #smbd     关闭samba可以杀死smbd进程   ...

  9. linux下软件编译终止,[2018年最新整理]linux下编译运行程序命令大全.ppt

    [2018年最新整理]linux下编译运行程序命令大全 1. 项目课题引入 2. Vi编辑器的使用方法 3. Linux中C语言程序的编辑 4. Linux中C语言程序的运行 5. 现场演示案例 课题 ...

最新文章

  1. 【408预推免复习】操作系统之处理机调度与死锁
  2. python零基础能学吗 知乎-Python零基础学习能学好吗?老男孩Python面授班
  3. Nutch编译及集成eclipse+mysql开发环境的部署总结
  4. 配置事务springmvc3.1 mybatis 3.1 事务不起作用
  5. Develop chrome extension study
  6. 一个http请求的整个流程
  7. CodeForces - 1263A Sweet Problem(思维,水题)
  8. All Friends 极大团
  9. jdk配置环境变量的方法
  10. 评价得分计算:确立权重的方法
  11. cad文字宽度因子_为什么CAD中无法修改文字的宽度比例?
  12. b5纸尺寸_标准a2纸尺寸是多少厘米,设计宣传手册尺寸有哪些
  13. AC/DC电源模块输入电压范围
  14. 工程行业管理系统-专业的工程管理软件-提供一站式服务
  15. LeetCode 885 救生艇
  16. python画三维折线图_使用Python的matplotlib画折线图,柱状图,三维图
  17. ###岁月静好###
  18. Android 9/10 Launcher3 适配出现的问题修改
  19. WireShark的下载与安装
  20. java点到直线的投影点到经纬度_计算点在平面上的投影坐标

热门文章

  1. 压力测试工具Jemeter安装及使用
  2. ArcGIS字段计算器 Field Calculator错误
  3. oracle--rowid
  4. windows下常用运行命令
  5. ((ios开发学习笔记 十))代码实现自定义TableView
  6. 统计学习:三大奇技(1)
  7. netfilter/iptables全攻略
  8. RedHat Enterprise Linux6.4 使用CentOS yum源
  9. 深度学习——卷积神经网络 的经典网络(LeNet-5、AlexNet、ZFNet、VGG-16、GoogLeNet、ResNet)
  10. 【编程】二叉搜索树的定义