免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Fedora10下源碼編譯vlc-1.1.1 流程及注意事項(xiàng)

samtao兄文章的指導(dǎo)下完成vlc的源碼編譯安裝,小生感激涕零,自知忘性>記性,且老板要求留存編譯流程以備后者,故備忘如下,如能令他人少走彎路節(jié)省時(shí)間,善莫大焉:


1:下載vlcsource code版本。

(samtao兄用的是1.0.6,等小生下載的時(shí)候已經(jīng)是1.1.1版本,但編譯安裝過程無(wú)區(qū)別)

2:為了讓root用戶可以執(zhí)行VLC,我們需要加上 --enable-run-as-root(本人以root登錄,沒加也沒問題)

ps:可以執(zhí)行如下:[root@tsong vlc-1.0.6]# ./configure --help|grep root  查看該命令怎么寫

samtao兄寫的比較快,如果你是跟我差不多的linux菜鳥,你需要知道./configure編譯命令之前還tar -jxvf ****.tar.bz(bz2)壓,CD命令進(jìn)入解壓縮后的文件夾等

編譯命令:./configure --enable-run-as-root --prefix=/root/soft/vlc

--prefix=/root/soft/vlc 這個(gè)是安裝目錄,可以自己定義更改)

提示缺少libmadconfigure: error: Could not find libmad on your system: you may get it from http://www.underbit.com/products/mad/. Alternatively you can use --disable-mad to disable the mad plugin.

(小生# ./configure 后,在這個(gè)mad錯(cuò)誤之前還出現(xiàn)這個(gè)錯(cuò)誤

configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error.
但我運(yùn)行# yum install lua后提示:

Package lua-5.1.4-2.fc10.i386 already installed and latest version

后來才知道應(yīng)當(dāng)安裝lua-devel,安裝后解決了這個(gè)問題,后面的fribidi-devel小生也是這時(shí)候安裝的)

3:編譯libmad.

按照提示,下載:http://www.underbit.com/products/mad,編譯

./configure --prifix=/root/soft/libmad

make 提示錯(cuò)誤(這個(gè)make錯(cuò)誤小生沒遇到,應(yīng)該是gcc沒及時(shí)更新,懶人有懶福)

cc1: error: unrecognized command line option "-fforce-mem"
make[2]: *** [version.lo] Error 1
make[2]: Leaving directory `/home/izhier/download/libmad-0.15.1b'

google之,說是gcc版本太高,修改makefile,刪除-fforce-mem

即可make,然后make install

(此時(shí)libmad安裝在/root/soft/libmad文件夾內(nèi))

4:繼續(xù)編譯vlc,這時(shí)候用如下命令:

./configure --enable-run-as-root --prefix=/root/soft/vlc --with-mad=/root/soft/libmad/

繼續(xù),提示找不到libavcodec,

configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.

5:編譯libavcodec.

下載,編譯:http://www.ffmpeg.org/download.html

./configure --prifix=/root/soft/ffmpeg

make

編譯過程極其漫長(zhǎng)

完成之后輸入make installOK

作為一個(gè)過來者,我建議用下面這個(gè)命令編譯:

./configure --prefix=/root/soft/ffmpeg --enable-swscale --enable-postproc --enable-gpl

否則,你將不得不執(zhí)行步驟7和步驟8 (這個(gè)操作特別有效,學(xué)習(xí)了)

6:繼續(xù)編譯,不用置疑,一定還是會(huì)提示libavcodec找不到,why?因?yàn)槟惴诺哪夸洺绦蛘也坏?。這時(shí)候就要用到pkg-config

export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/root/soft/ffmpeg/lib/pkgconfig" 

(Terminal輸入上述代碼,Enter,當(dāng)然要注意你的安裝位置是否跟上面相同)

export完成之后,我們可以測(cè)試一下:

[root@tsong vlc-1.0.6]# pkg-config --modversion libavcodec

52.20.1

如果可以打印出版本信息,那么OK,就可以繼續(xù)編譯了

7:繼續(xù)編譯。

編譯命令還是

./configure --enable-run-as-root --prefix=/root/soft/vlc --with-mad=/root/soft/libmad/

繼續(xù)提示缺少swscalechecking for SWSCALE... no

configure: error: Could not find libswscale. Use --disable-swscale to ignore this error. Proper software scaling and some video chroma conversion will be missing.

google了一下,發(fā)現(xiàn)swscaleffmpeg到一個(gè)選項(xiàng),默認(rèn)在編譯到時(shí)候沒有啟用。

[root@tsong ffmpeg-0.5.1]# ./configure --help|grep swscale

--enable-swscale enable GPLed software scaler support [no]

無(wú)奈,只好繼續(xù)返回步驟5,用如下命令:

[root@tsong ffmpeg-0.5.1]# ./configure --prefix=/root/soft/ffmpeg --enable-swscale

然后再重復(fù)再編譯安裝ffmpeg

make

make install

8:完成步驟7中到swscale后,繼續(xù)編譯。

checking for ffmpeg/swscale.h... no

checking for POSTPROC... no

configure: error: Could not find libpostproc. Use --disable-postproc to ignore this error.

看報(bào)錯(cuò)在ffmpeg后面,該不會(huì)libpostproc也是ffmpeg到一個(gè)配置?

[root@tsong ffmpeg-0.5.1]# ./configure --help|grep postproc

--enable-postproc enable GPLed postprocessing support [no]

[root@tsong ffmpeg-0.5.1]# ./configure --prefix=/root/soft/ffmpeg --enable-swscale --enable-postproc

postproc is gpl and --enable-gpl is not specified.

If you think configure made a mistake, make sure you are using the latest

version from SVN. If the latest version fails, report the problem to the

ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.

Include the log file "config.err" produced by configure as this will help

solving the problem.

[root@tsong ffmpeg-0.5.1]# ./configure --prefix=/root/soft/ffmpeg --enable-swscale --enable-postproc --enable-gpl

無(wú)語(yǔ),繼續(xù)用./configure --prefix=/root/soft/ffmpeg --enable-swscale --enable-postproc --enable-gpl 命令編譯ffmpeg

這可是第三次編譯ffmpeg了!

9:繼續(xù)編譯:提示缺少a52

checking for a52dec/a52.h... no

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

按照提示,從地址 http://liba52.sf.net下載,

./configure --prefix=/root/soft/a52dec

make

make install

10:編譯好a52dec后,我們繼續(xù)編譯vlc

./configure --enable-run-as-root --prefix=/root/soft/vlc --with-mad=/root/soft/libmad/ --with-a52=/root/soft/a52dec/

11:

繼續(xù)報(bào)錯(cuò)(這個(gè)本人之前亂搞的時(shí)候安裝了)

checking for FRIBIDI... configure: error: Package requirements (fribidi) were not met:

No package 'fribidi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you

installed software in a non-standard prefix.

Alternatively, you may set the environment variables FRIBIDI_CFLAGS

and FRIBIDI_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

從網(wǎng)址:http://fribidi.org/下載fribidi,然后編譯安裝。

[root@tsong fribidi-0.10.9]# ./configure --prefix=/root/soft/fribidi

make

make install

12:如步驟6,還是需要修改PKG_CONFIG_PATH,使之包含剛剛安裝的fribidi

export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/root/soft/ffmpeg/lib/pkgconfig:/root/soft/fribidi/lib/pkgconfig"

繼續(xù)編譯

13:繼續(xù)報(bào)錯(cuò)(這個(gè)本人之前亂搞的時(shí)候安裝了)

----------My god,我快失去耐心了。好在馬上就結(jié)束了

checking for QT4... no

configure: WARNING: Qt 4 library not found

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

下載QT4,http://qt.nokia.com/downloads-cn 這又是一個(gè)大家伙,將近400MB呢,好在我之前已經(jīng)下載編譯好了,現(xiàn)在要做的就是指定pkg-config就可以了

14:還是讓pkg-config可以找到qt4就可以了(/opt/qtsdk/qt/lib/pkgconfig

export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/root/soft/ffmpeg/lib/pkgconfig:/root/soft/fribidi/lib/pkgconfig:/opt/qtsdk/qt/lib/pkgconfig"

15congratulations!

終于要成功了!

config.status: creating vlc-config

Enabled modules: a52tofloat32 a52tospdif access_alsa access_mmap access_oss adjust alphamask alsa aout_file aout_sdl atmo audio_format audioscrobbler avcodec avformat bandlimited_resampler blend blendbench bluescreen canvas cdda chain clone cmml colorthres converter_float crop croppadd dbus deinterlace dolby_surround_decoder dtstospdif dynamicoverlay equalizer erase extract fake fb float32_mixer folder freetype gaussianblur gestures glx gnutls gradient grain hal headphone_channel_mixer hotkeys http i420_rgb_mmx i420_rgb_sse2 i420_ymga i420_ymga_mmx i420_yuy2 i420_yuy2_mmx i420_yuy2_sse2 i422_i420 i422_yuy2 i422_yuy2_mmx i422_yuy2_sse2 inhibit invert linear_resampler logo magnify marq memcpy3dn memcpymmx memcpymmxext mosaic motion motionblur motiondetect mpgatofixed32 mux_ogg noise normvol notify ogg opengl opengl osd_parser osdmenu oss panoramix param_eq png podcast postproc probe_hal psychedelic puzzle qt4 rc remoteosd ripple rotate rss rv32 sap scale scaletempo scene screensaver sharpen shout showintf signals simple_channel_mixer skins2 spatializer spdif_mixer stream_out_raop swscale telepathy telnet telx transform unzip v4l2 vcd visual vmem vorbis vout_sdl wall wave x11 x11_screen xml xvideo yuv yuvp yuy2_i420 yuy2_i422 zip

libvlc configuration

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

version : 1.0.6

system : linux

architecture : i686 mmx sse sse2

build flavour : devel

vlc aliases : cvlc rvlc svlc qvlc

plugins/bindings :

You can tune the compiler flags in vlc-config.

To build vlc and its plugins, type `./compile' or `make'.

16:很遺憾,編譯的時(shí)候再次出現(xiàn)錯(cuò)誤提示:(這個(gè)小生沒遇到,估計(jì)是因?yàn)橐郧鞍衍浖紒y裝在了root

ERROR : src/ft2_font.cpp:30: 29: fribidi/fribidi.h: No such file or directory

src/ft2_font.cpp: In member function 'virtual GenericBitmap* FT2Font::drawString(const UString&, uint32_t, int) const':

ERROR : src/ft2_font.cpp: 157: 'FriBidiCharType' was not declared in this scope

googlehttp://svn.tribler.org/vlc/trunk/modules/gui/skins2/src/ft2_font.cpp

查找代碼ft2_font.cpp,在目錄/root/download/vlc-1.0.6/modules/gui/skins2/src 下,看到了

#include <fribidi/fribidi.h>

因?yàn)槲覀兊?/span>fribidi是安裝在/root/soft/fribidi目錄,不是默認(rèn)安裝在/usr/include目錄,那么建立符號(hào)鏈接!

[root@tsong include]# ln -s /root/soft/fribidi/include/fribidi/ fribidi

[root@tsong include]# pwd

/usr/include

17:繼續(xù)

make         (漫長(zhǎng)等待)

make install(漫長(zhǎng)等待)

18done   (這個(gè)時(shí)候你可以去查看VLC是否乖乖地躺在Applications--Sound&Video的選項(xiàng)里了)

19:編輯文件/usr/share/applications /vlc.desktop

[Desktop Entry]

Version=1.0

Name=Vlc Player

Comment=vlc player

GenericName=vlc

Exec=/root/soft/vlc/bin/vlc

Terminal=false

X-MultipleArgs=false

Type=Application

Icon=vlc48x48

Categories=AudioVideo;

MimeType=text/html;

StartupWMClass=Chromium

StartupNotify=true

X-Desktop-File-Install-Version=0.15

fedora 10vlc播放網(wǎng)上鏈接視頻的速度不及在XP下快,后續(xù)再看看)
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
在linux中安裝opencv 2.1-正常使用視頻文件
ARM-Linux環(huán)境下安裝OpenCV
freeradius rlm_rest模塊啟用與安裝編譯,radius支持web網(wǎng)頁(yè)rest接口認(rèn)證的功能
GTK安裝
openSUSE 12.2新手指南
Ubuntu下DirectFB的編譯安裝,樣例程序編譯及運(yùn)行體驗(yàn)
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服