vlc-1.0.5在ubuntu上的編譯(一)

來源:互聯網
上載者:User

因為工作的需要,最近在看編碼/解碼相關的東西。videoLan是一項開源項目,是極好的研究編碼/解碼的對象。

於是下載源碼,編譯。一心以為很快就可以成功,沒想到整了一天,都沒有正常運行起來。但是編譯過程中遇到的問題都記錄

了一遍,貼出來給大家分享。

 

 編譯選項:

./configure --disable-nls --disable-mozilla --disable-postproc --disable-a52 --disable-qt4 --disable-skins2

問題1.configure: 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.

問題2.configure: error: Could not find libavcodec or libavutil. Use --disable-avcodec to ignore this error.
解決方案: sudo apt-get install libavcodec-dev

問題3configure: error: Please install GL development package. Alternatively you can also configure with --disable-glx
解決方案:sudo apt-get install mesa-common-dev mesademos libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev

問題4.configure: 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.

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

問題6:mod.c: 在函數‘Control’中:
mod.c:321: 警告: 從類型為‘mtime_t’的函數調用轉換到不匹配的類型‘double’
mod.c:370: 錯誤: 隱式聲明函數‘ModPlug_NumSamples’
mod.c:371: 錯誤: 隱式聲明函數‘ModPlug_NumInstruments’
mod.c:372: 錯誤: 隱式聲明函數‘ModPlug_NumPatterns’
mod.c:373: 錯誤: 隱式聲明函數‘ModPlug_NumChannels’
mod.c:384: 錯誤: 隱式聲明函數‘ModPlug_GetMessage’
mod.c:384: 警告: 賦值時將整數賦給指標,未作類型轉換
mod.c:410: 警告: 比較有符號和無符號數
mod.c:413: 錯誤: 隱式聲明函數‘ModPlug_InstrumentName’
mod.c:422: 警告: 比較有符號和無符號數
mod.c:425: 錯誤: 隱式聲明函數‘ModPlug_SampleName’
解決:未解決,將此內容mark掉

成功.
Enabled modules: a52tospdif access_alsa access_mmap access_oss adjust alphamask alsa aout_file atmo audio_format audioscrobbler avcodec avformat bandlimited_resampler blend blendbench bluescreen bonjour 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 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 ogg opengl opengl osd_parser osdmenu oss panoramix param_eq png podcast psychedelic puzzle rc remoteosd ripple rotate rss rv32 sap scale scaletempo scene screensaver sharpen shout showintf signals simple_channel_mixer spatializer spdif_mixer stream_out_raop swscale telepathy telnet telx transform unzip v4l2 vcd visual vmem vorbis wall wave x11 x11_screen xml yuv yuvp yuy2_i420 yuy2_i422 zip

libvlc configuration
--------------------
version               : 1.0.5
system                : linux
architecture          : i686 mmx sse sse2
build flavour         : devel
vlc aliases           : cvlc rvlc
plugins/bindings      :

You can tune the compiler flags in vlc-config.
To build vlc and its plugins, type `./compile' or `make'.

--------------------------------------------------------------------------------------------------------------------------------------------------
運行時出現問題:

問題1.no interface module matched "globalhotkeys,none"
解決:安裝 sudo apt-get install libmodplug-dev

問題2.:It compiles and installs with no problems but when I try to run I get:
vlc: error while loading shared libraries: libvlc.so.2: cannot open shared object file: No such file or directory

解決:most likely your ld cache is outdated.
/sbin/ldconfig (as root) and this might help you.

 

問題3.運行後沒有介面出來,程式無法正常工作.尋找了很多貼子,一直懸而未決:

/vlc: line 60: X./vlc: 沒有該檔案或目錄
VLC media player 1.0.5 Goldeneye
LibVLC has detected an unusable buggy GNU/libc version.
Please update to version 2.8 or newer.
[0x8051148] main libvlc error: no memcpy module matched "any"
[0x80d1600] main access error: no access module matched "file"
[0x80d2c10] main input error: open of `file/xspf-open:///home/wupeng/.local/share/vlc/ml.xspf' failed: no access module matched "file"
[0x80d2c10] main input error: Your input can't be opened
[0x80d2c10] main input error: VLC is unable to open the MRL 'file/xspf-open:///home/wupeng/.local/share/vlc/ml.xspf'. Check the log for details.
[0x80d32b8] main interface error: no interface module matched "hotkeys,none"
[0x80d32b8] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "hotkeys,none" initialization failed
[0x80d32b8] main interface error: no interface module matched "inhibit,none"
[0x80d32b8] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "inhibit,none" initialization failed
[0x80d32b8] main interface error: no interface module matched "screensaver,none"
[0x80d32b8] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "screensaver,none" initialization failed
[0x8051148] main libvlc error: option drawable-xid does not exist
[0x80d32b8] main interface error: no interface module matched "signals"
[0x80d32b8] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "signals" initialization failed
[0x80d32b8] main interface error: no interface module matched "globalhotkeys,none"
[0x80d32b8] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x8051148] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x80d05c0] main interface error: no interface module matched "any"
[0x80d05c0] main interface error: no suitable interface module
[0x8051148] main libvlc error: interface "default" initialization failed

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.