日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CRTMPServer 在CentOS 64-bit下的编译(转)

發布時間:2023/11/29 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CRTMPServer 在CentOS 64-bit下的编译(转) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

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.

  • 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)

    我發現這個目前不能用了,所以通過之前下載好的源碼壓縮包來編譯的。

  • go to the builders directory
  • $ cd crtmpserver/builders/cmake
  • 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

  • generate the makefile using cmake
  • $ cmake .

    Notice the “space dot”

  • 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整理而得。

    總結

    以上是生活随笔為你收集整理的CRTMPServer 在CentOS 64-bit下的编译(转)的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。