fedora14 安装vlc2.0.6编译环境 步骤记录

来源:互联网 发布:什么情况下使用网络猫 编辑:程序博客网 时间:2024/06/16 13:42

按configure默认配置 安装vlc2.0.6

如需要界面需安装 QT4  : yum install  qt4 qt4-devel

1. 加载编程工具 :  

切换root 用户

yum install git libtool pkg-config./bootstrap  执行完生成configure 文件2.   ./configure
err: 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 &&makeerr: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-devel4. ./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 &&makemake install6. ./configureerr:configure: error: No package 'libpostproc' found. Pass --disable-postproc to ignore this error解决:把postproc 文件夹 拷到 vlc-2.0.6/contrib/src 现在文件夹有2个postproc和ffmpeg 按照上边步骤安装 postproc
7../configure
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.

同上方法

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.  ./configure
configure: 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 安装。
 

以上的安装方法 vlc编译环境 只能做客户端

可以vlc指令 调出vlc界面   目标--选择 rtp/mpeg  ts  转码选项---  H264 + mp3(TS)

会出现:

1.muxer 不存在的错误:

解决: 缺少 libdvbpsi  用contrib 文件夹工具下载即可 注意版本 是 0.2.22.h264 -mpeg4 错误: 解决: 没安装 x264 可以 执行 vlc-l | grep 264结果应该有3项,缺少 X264 那项。在contrib下载x264  注意 安装指令 : ./configure --disable-asm  --enable-shared --prefix=/usr &&make
--enable-shared 相当重要 不加的话 x264 装了也没用。 执行完后 make install编译安装vlc :执行:vlc -l | grep 264VLC media player 2.0.6 Twoflower (revision 2.0.6-0-gbe9623c)  h264                   H264 视频去复用器  x264                   H.264/MPEG4 AVC 编码器 (x264)  packetizer_h264        H.264 视频封包器x264 在里面了。 加载其他第三方库,可以参考 http://wiki.videolan.org/Contrib_Status
./configure --enable-run-as-root --disable-linsys --disable-libproxy --disable-live555 --disable-dc1394 --disable-dv --disable-dvdread --disable-dvdnav --disable-dshow --disable-bluray --disable-v4l2 --disable-decklink --disable-gnomevfs --disable-vcd --disable-libcddb --disable-screen --disable-dbus --disable-swscale --disable-postproc --disable-a52 --disable-xcb --disable-alsa --disable-libgcrypt --disable-vcd --disable-libcddb --disable-screen --disable-xvideo --disable-httpd --enable-dvbpsi  --disable-mkv --disable-mod --disable-mpc  --disable-lua  --disable-skins2 --disable-libtar --disable-hildon --disable-qt4 --disable-ncurses  --enable-debug
原创粉丝点击