CRTMPServer 在CentOS 64-bit下的编译

http://blog.csdn.net/qiuchangyong/article/details/52848942

==========================================

一、Centos 用 wget 下载需要的软件

wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz

二、安装 cmake

tar zxvf cmake-2.8.4.tar.gz
cd cmake-2.8.6
./bootstrap
gmake
gmake install

这样cmake就安装好了

三、编译crtmpserver

Here are the steps necessary for getting the server up and running. For installing the dependencies please consultthis.

  1. check out the source code from svn repository:
$ svn co --username anonymous https://svn.rtmpd.com/crtmpserver/trunk crtmpserver

Hit Enter key when prompted for password (this parameter is empty)

我发现这个目前不能用了,所以通过之前下载好的源码压缩包来编译的。

  1. go to the builders directory
$ cd crtmpserver/builders/cmake
  1. make sure everything is clean by doing
$ sh cleanup.sh

Note: This is necessary when updating the sources or you run into troubles like missing libraries reported by cmake

  1. generate the makefile using cmake
$ cmake .

Notice the “space dot”

  1. start the actual building process
$ make

At this point, if no errors occurred, you should have a working binary.

实际在编译时,遇到的问题是:

这是依赖的lua库编译的问题,重新编译lua库,给src/Makefile的CFLAGS变量加上-fPIC再重新编译即可。

四、运行服务器

If you are here from previous steps (compiling), you should already be in the right directory which isbuilders/cmake relative to the directory where the sources are located. Enter the following command:

$ ./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua

五、发布
将cmake目录拷贝到发布的设备的/usr/local/bin/rtmpd下,同时将所有的*.so文件拷贝到cmake下,即可运行
 
六、后台运行
在后台运行:$ ./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua & 
 
查询后台运行所有进程:$ ps -al
查询后台运行进程: ps -ef | grep crtmpserver
用kill -9 (你的进程号)就可以关掉了

本文参考http://blog.sina.com.cn/s/blog_8337d0c50100v61j.html整理而得。
 
 

最新文章

  1. MySQL中的group_concat函数
  2. JS实现常用排序算法—经典的轮子值得再造
  3. asp.net执行SqlServer存储过程!(详解!)
  4. 智力火柴游戏Android源码项目
  5. C指针的大小
  6. WebGL实现HTML5的3D贪吃蛇游戏
  7. [Google Guava]学习--新集合类型BiMap
  8. 如何搭建MVC + EF 框架
  9. 布局神器:Flexbox
  10. HDU3496-Watch The Movie
  11. 【转】分享一份C语言写的简历
  12. Access2007数据库下载地址与AccessHelper
  13. 2、搭建一个简单的Web项目
  14. SVN的安装与使用教程
  15. swift语言混编--语言交互的接口
  16. Caused by: java.lang.IllegalStateException: Expected raw type form of org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$Match
  17. Aviator 表达式求值引擎开源框架
  18. 将各种格式的数据转换成XML
  19. atitit.为什么笔记本跟个手机不能组装而pc可以
  20. mysql中sql语句中常见的group_concat()函数意思以及用法,oracle中与其一样的功能函数是wmsys.wm_concat()

热门文章

  1. Java - PhantomJS + EChartsConvert实现ECharts图片保存到服务端
  2. c++构造顺序
  3. c语言中不允许在函数外部给全局变量赋值
  4. HTML中button标签点击实现页面跳转
  5. UESTC-1057 秋实大哥与花(线段树+成段加减+区间求和)
  6. java代码转化为jar包,再转化为.exe文件步骤
  7. CSUST 8.3 早训
  8. C#多播委托详解
  9. js日期格式验证
  10. mepg