zoukankan      html  css  js  c++  java
  • CentOS6.2上编译并安装VLC2.0.3

     安装环境centos6,

    1.下载

      wget http://download.videolan.org/pub/videolan/vlc/2.0.3/vlc-2.0.3.tar.xz,

    2.解压(习惯复制到/tmp后才解压)

      cp ~/Download/vlc-2.0.3.tar.xz /tmp

      cd /tmp

      tar -xvf vlc-2.0.3.tar.xz

      cd vlc-2.0.3.tar.xz

    3.开始编译

      ./bootstarp <暂时不明白,这个有什么用处,以后google>

      mkdir build

      cd build

      ../configure

    4.Ooops,出错了。

      1.configure error could not find lua!

        rpm -qa |grep lua,提示lua-5.1.xxx

        yum search lua

        yum install lua-devel

      2.configure error could not find libmad

        yum install libmad libmad-devel

      3.No package 'libavcodec' 'libavutil'

         go http://www.ffmpeg.org/download.html

        git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

        cd ~/Download/ffmpeg

        ./configure

        make

        make install

        yum install yasm

        yum install a52dec-devel

        configure:error:Package reuirements(xcb >=1.6)were not met

     requested 'xcb >=1.6' but version of XCB is 1.5

        wget http://xcb.freedesktop.org/dist/xcb-proto-1.6.tar.gz

        wget http://xcb.freedesktop.org/dist/libxcb-1.6.tar.gz

        cd xcb-proto-1.6/

              ./configure --prefix=/usr/local/xcb-proto

              make

              make install

              cd ..

              export PKG_CONFIG_PATH=/usr/local/xcb-proto/lib/pkgconfig/:$PKG_CONFIG_PATH

              cd libxcb-1.6/

              ./configure --prefix=/usr/local/xcb

              make

              make install

              export PKG_CONFIG_PATH=#####:$PKG_CONFIG_PATH(####为libxcb1.6安装路径)

     最后,安装vlc

        export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH <No package 'libavcodec' 'libavutil'>
             export PKG_CONFIG_PATH=/usr/local/xcb/lib/pkgconfig/:$PKG_CONFIG_PATH <xcb>=1.6>

        ./bootstrap

        cd build

        ../configure&&make&&sudo make install

    good luck!

  • 相关阅读:
    。。
    6-4 静态内部类
    SQL把一个表里的数据赋值到另外一个表里去
    jquery 设置 disabled属性
    6-4 内部类
    DWR 整合之Struts2.3.16
    DWR整合之JSF
    DWR整合之Servlet
    dwr.xml 配置
    认识DWR
  • 原文地址:https://www.cnblogs.com/hsp401/p/2719899.html
Copyright © 2011-2022 走看看