按configure默认配置 安装vlc2.0.6
如需要界面需安装 QT4 : yum install qt4 qt4-devel1. 加载编程工具 :
切换root 用户
yum install git libtool pkg-config ./bootstrap 执行完生成configure 文件 2. ./configureerr: dbus-1 错误
http://www.linuxfromscratch.org/blfs/view/svn/general/dbus.html 下载 dbus-1.6.10
按照该网页说明执行
./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/dbus-1.0 \ --with-console-auth-dir=/run/console/ \ --without-systemdsystemunitdir \ --disable-systemd \ --disable-static && make err:expat.h 的错误 从 http://www.linuxfromscratch.org/blfs/view/svn/general/expat.html 下载 expat-2.1.0 按网页说明安装 成功后 在安装dbus 3. ./configure 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. 解决: yum install lua 和 yum install lua-devel 4. ./configure 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. 下载libmad http://www.linuxfromscratch.org/blfs/view/cvs/multimedia/libmad.html 编译安装:(可能存在缺少 g++ :yum install gcc-c++)./configure --prefix=/usr &&make(若出现-fforce-mem错误, 在MakeFile 中删掉,在执行make)
make install
5. ./configure
configure: error: No package 'libavcodec' found
No package 'libavutil' found. Pass --disable-avcodec to ignore this error.
解决:
把vlc-2.0.6/contrib/src 下的文件夹全部移走(备份后面会用到) 只剩下ffmpeg文件夹 和一些.sh 文件
cd vlc-2.0.6/contrib
mikdir tmp
cd tmp
../bootstrap
make
进入 ffmepg:
cd ffmpeg
./configure --prefix=/usr &&make
err:yasm 错误 安装L yum install yasm
执行:./configure --prefix=/usr &&make make install 6. ./configure err:configure: error: No package 'libpostproc' found. Pass --disable-postproc to ignore this error 解决: 把postproc 文件夹 拷到 vlc-2.0.6/contrib/src 现在文件夹有2个postproc和ffmpeg 按照上边步骤安装 postproc7../configureconfigure: 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.
同上方法
8. ./configure
configure: error: No package 'alsa' found. alsa-lib 1.0.16 or later required.
解决:下载 alsa-lib-1.0.27
./configure --prefix=/usr &&make make install
9. ./configureconfigure: error: libgcrypt version 1.1.94 or higher not found. Install libgcrypt or use --disable-libgcrypt. Have a nice day.
步骤同 5 和 6 src文件夹下 只留 gcrypt 文件夹。
中途需安装libgpg-error-1.9
10. ./configure
libvlc configuration
--------------------
version : 2.0.6
system : linux
architecture : i686 mmx sse sse2
optimizations : yes
vlc aliases : cvlc rvlc qvlc
To build vlc and its plugins, type `make', or `./compile' if you like nice colors.
11. make
12 make install
安装完成 目前vlc 的 客户端功能 应该能满足 但作为服务器使用的话 还需要对 configure进行配置 需要知道configure 配置选项,是件头疼的事,而且还会涉及作为
服务器所需要的第三方库的安装,不管还需要什么库 到/contrib/src 里面下载 在用 ./configure --prefix=/usr &&make 和make install 安装。
服务器安装待续。。。。。。