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

歡迎訪問 生活随笔!

生活随笔

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

编程问答

【fedora12】vlc-2.0.0编译

發布時間:2023/12/9 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【fedora12】vlc-2.0.0编译 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

From: http://www.zhouwenyi.com/node/1348

1.?????官網下載??VLC 源碼?(vlc- 2.0.0.tar.xz)

下載地址為:

?http://download.videolan.org/pub/videolan/vlc/2.0.0/vlc-2.0.0.tar.xz

?

2.?????解壓VLC源碼:

xz -dvlc-2.0.0.tar.xz

tar -xvfvlc-2.0.0.tar

?

3.?????cdvlc-2.0.0

./configure

?

接下來就是根據提示安裝vlc需要的第三方lib.

Vlc提供了其編譯需要的第三方lib的下載地址:

http://download.videolan.org/pub/videolan/contrib/

?

可根據錯誤一個個安裝!

?

錯誤<1>:

configure: error: Could not findlua on your system: you may get it from http://www.lua.org/.Alternatively you can use --disable-lua to disable the luaplugin.

解決方法:

下載lua-5.1.tar.gz,解壓后安裝,

#make linux;makeinstall

【說明】

?

Lua?是一個小巧的腳本語言。是巴西里約熱內盧天主教大學(Pontifical Catholic University of Rio deJaneiro)里的一個研究小組,由Roberto Ierusalimschy、WaldemarCeles?和?Luiz Henrique deFigueiredo所組成并于1993年開發。?其設計目的是為了嵌入應用程序中,從而為應用程序提供靈活的擴展和定制功能。Lua由標準C編寫而成,幾乎在所有操作系統和平臺上都可以編譯,運行。Lua并沒有提供強大的庫,這是由它的定位決定的。所以Lua不適合作為開發獨立應用程序的語言。Lua?有一個同時進行的JIT項目,提供在特定平臺上的即時編譯功能。

錯誤<2>:

configure: error: Could not findlibmad on your system: you may get it fromhttp://www.underbit.com/products/mad/. Alternatively you can use--disable-mad to disable the mad plugin.

解決方法:

下載libmad-0.15.1b.tar.gz,解壓后安裝 #./configure #make;make install 【說明】 MAD?(libmad)是一個開源的高精度?MPEG?音頻解碼庫,支持?MPEG-1(Layer I, Layer II?和?LayerIII(也就是?MP3)。LIBMAD?提供?24-bit?的?PCM?輸出,完全是定點計算,非常適合沒有浮點支持的平臺上使用。使用?libmad?提供的一系列?API,就可以非常簡單地實現?MP3?數據解碼工作。在?libmad?的源代碼文件目錄下的mad.h?文件中,可以看到絕大部分該庫的數據結構和?API?等。

錯誤<3>:

configure: error: Could not find liba52 on your system: youmay get it from http://liba52.sf.net/. Alternatively you can use--disable-a52 to disable the a52 plugin.

解決方法:

下載a52dec-0.7.4.tar.gz ,解壓后安裝 ?

錯誤<4>:

checking for XCB... no configure: error: Package requirements (xcb >= 1.6) were not met: ? Requested 'xcb >= 1.6' but version of XCB is 1.4 ? Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. ? Alternatively, you may set the environment variables XCB_CFLAGS and XCB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

?

解決方法:

下載xcb-proto-1.6.tar.gz、libxcb-1.6.tar.gz,解壓后安裝

安裝時如果出現:

?

No?package?'xcb-proto'?found

在終端里執行:

#exportPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

其中的/usr/local/lib/pkgconfig?是?xcb-proto.pc安裝路徑

錯誤<5>:

checking forQT4... no

configure:WARNING: No package 'QtCore' found

No package 'QtGui'found.

configure: error:The skins2 module depends on a the Qt4 development package. Withoutit you will not be able to open any dialog box from the interface,which makes the skins2 interface rather useless. Install the Qt4development package or alternatively you can also configure with:--disable-qt4 --disable-skins2.

解決方法:

暫時先disable掉./configure --disable-qt4--disable-skins2

最終configure成功!

libvlcconfiguration

--------------------

version??????????????: 2.0.0

system???????????????: linux

architecture?????????: i686 mmx sse sse2

optimizations????????: yes

vlcaliases??????????: cvlc rvlc

?

To build vlc andits plugins, type `make', or `./compile' if you like nicecolors.

?

4.??????編譯vlc-2.0.0

#make

可能會出錯!

?? #warning Please update Video4Linux2 headers!

??v4l2/controls.c:75: error: 'V4L2_CID_BAND_STOP_FILTER' undeclaredhere (not in a function)

??

??用的fedora12的/usr/include/linux/videodev2.h版本太舊,需要linux kernel 3.2以上的

??到網上下載一個:

??http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/include/linux/videodev2.h

??替換/usr/include/linux/videodev2.h

??之后再次make,就能成功編譯!

?

??#make install

?

5.??????驗證VLC - 2.0.0

#vlc play/mnt/hgfs/share/17597.flv

由于沒有安裝qt4,啟動的是x11.

?

?

6.??????驗證fedora安裝qt4后,再次./configure ; make ; makeinsatall

???<1>.安裝qt4方法?

??? sudo yum install qt qt-devel qt-x11 qt-docqt-demos qt-examples qt-assistant qt-creatorqt-config??

?

????<2>.測試效果?

????啟動界面!??


??播放17597.flv!


播放“手機”DVD FOLDER!

?


總結

以上是生活随笔為你收集整理的【fedora12】vlc-2.0.0编译的全部內容,希望文章能夠幫你解決所遇到的問題。

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