在官网上下载最新的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