linux vlc 串流 linux下VLC的安裝

2021-10-18 07:06:19 字數 1828 閱讀 7117

若下下來的包為*.xz字尾的,則用xz命令來解壓。vlc-2.0以後的版本為*.xz

1.安裝包資源:

2安裝裝步驟:

(1) 安裝live555(版本: live555-latest),方法:

①./genmakefiles linux

②make all

(2) 安裝ffmpeg(版本: ffmpeg-0.7.1),方法:

①./configure --disable-yasm--enable-swscale --enable-postproc --enable-gpl

②make

③make install

(3)安裝libdvbpsi(版本: libdvbpsi-0.2.1),方法:

①./configure

②make

③make install

(4) 安裝fribidi(版本: fribidi-0.19.1),方法:

①./configure

②make

③make install

(5) 安裝qt(版本: 4.7.4), 方法:

①./configure --prefix=/home/yanw/install/qt4(指明qt的安裝路徑,後面設定環境變數會用到)

②gmake

③gmake install

[注]如果安裝1.1.0以下的vlc版本,安裝系統時已經選擇了qt4,則本步驟不需要。

(6) 修改環境變數pkg_config_path,在shell中執行以下命令:

export pkg_config_path=$pkg_config_path:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/home/yanw/install/qt4/lib/pkgconfig

(7) 修改/etc/ld.so.conf檔案, 新增下面一行:

/usr/local/lib

儲存後執行ldconfig命令

(8) 安裝vlc(版本: vlc-1.1.9), 方法:

①./configure --disable-lua --disable-mad --disable-a52 --enable-run-as-root --enable-real--enable-realrtsp --enable-debug --enable-dvbpsi  --enable-live555 --with-live555-tree=/home/(live555的安裝路徑)

②make

③make install

//附vlc安裝時,可能因linux系統差異,可參照./configure --help提示做出對應的--enable-xx 或--disable-xx操作

在安裝官方版本vlc.1.1.0時,實際執行的./confiure指令為:

./configure --disable-lua --disable-mad --disable-a52 --enable-run-as-root --enable-real--enable-realrtsp --enable-debug --enable-dvbpsi  --enable-live555 --with-live555-tree=/home/yanw/live/ --disable-mozilla --disable-nls --disable-xcb --disable-v4l2 --disable-x264

實際執行時沒有安裝成功,原因是依賴的庫太多,環境沒有搭建好,等後面有時間再好好弄吧,暫時研究下ffmpeg與x264吧!

注,makefile是由./configure 生成的。

x264移植到arm若makefile的cc與arch不能修改,進入config.mak進行修改配置。

flex使用翻譯串流程

翻譯串流程 配置環境變數 在系統配置 path下增加 d program files gnuwin32 bin 在zh cn.pot中翻譯串檔案格式,msgid為原始翻譯串,msgid為中文翻譯,如 msgid login msgstr 登入 使用命令列進行編譯 msgfmt output file...

STL之Stringstream字串流使用總結

如果你已習慣了風格的轉換,也許你首先會問 為什麼要花額外的精力來學習基於的型別 轉換呢?也許對下面乙個簡單的例子的回顧能夠說服你。假設你想用sprintf 函式將乙個變數從int型別轉換到字串型別。為了正確地完成這個任 務,你必須確保證目標緩衝區有足夠大空間以容納轉換完的字串。此外,還必須使用正確的...

STL之Stringstream字串流使用總結

如果你已習慣了風格的轉換,也許你首先會問 為什麼要花額外的精力來學習基於的型別 轉換呢?也許對下面乙個簡單的例子的回顧能夠說服你。假設你想用sprintf 函式將乙個變數從int型別轉換到字串型別。為了正確地完成這個任 務,你必須確保證目標緩衝區有足夠大空間以容納轉換完的字串。此外,還必須使用正確的...