1. 程式人生 > >vlc在ubuntu上的編譯

vlc在ubuntu上的編譯

在官網上下載最新的VLC原始碼:http://www.videolan.org/vlc/download-sources.html

按照原始碼提供的install文件,執行./configure --enable-dev,遇到一些錯誤,提示缺少庫的直接用apt-get install + 名稱可以解決,有幾個錯誤比較難處理,
1.

configure: error: Package requirements (xcb-composite) were not met:

No package 'xcb-composite' 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 XCB_COMPOSITE_CFLAGS
and XCB_COMPOSITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

解決:

apt-get install libxcb-composite0-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-xf86dri0-dev libxcb-xinerama0-dev libxcb-render-util0-dev


2.

configure: error: Package requirements (xcb-xv >= 1.1.90.1) were not met:


No package 'xcb-xv' 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 XCB_XV_CFLAGS
and XCB_XV_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

解決:apt-get install libxcb-xv0-dev

3.

configure: error: No package 'alsa' found.

解決:apt-get install libasound2-dev

4.

configure: error: libgcrypt version 1.1.94 or higher not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.

解決:apt-get install libgcrypt-dev

配置結束後:

make

make install