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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

LIVE555再学习 -- Linux 下编译

發布時間:2025/3/15 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 LIVE555再学习 -- Linux 下编译 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

現在我們來看一下 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 下编译的全部內容,希望文章能夠幫你解決所遇到的問題。

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