http://blog.youkuaiyun.com/beitiandijun/article/details/9225591
http://blog.sina.com.cn/s/blog_e34682510102vijs.html
http://www.linuxidc.com/Linux/2014-12/111000.htm
./configure --prefix=/opt/vlc --enable-debug
configure: error: C compiler cannot create executables
=>sudo apt-get install build-essential
error:BuggyGNU/libc (version 2.5 - 2.7) present. VLC would crash; there is no viable
work-around for this. Check with your distribution vendor on how to update the
glibc run-time. Alternatively, build with --disable-nls --disable-mozilla
=>sudo ./configure --disable-nls --disable-mozilla
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后提示:
Package lua-5.1.4-2.fc10.i386 already installed and latest version
后来才知道应当安装lua-devel,安装后解决了这个问题,后面的fribidi-devel小生也是这时候安装的)
error: Couldn't find DBus >= 1.0.0, install libdbus-dev ?
=> sudo apt-get install libhal-dev libdbus-1-dev
error: Could not find libmad on your system:...
libmad-0.15.1b.tar.gz
./configure
make
make install
error: Could not find libavcodec or libavutil...
=>sudo apt-get install libavcodec-dev
error: Could not find libavformat or libavutil...
=>sudo apt-get install libavformat-dev
error: Could not find libswscale...
=>sudo apt-get install libswscale-dev
error: Could not find libpostproc...
=>sudo apt-get install libpostproc-dev
error: Could not find liba52 on your system:...
=>sudo apt-get install liba52-dev
error: No package 'xcb' found
=>apt-get install libx11-xcb-dev
error: No package 'xcb-shm' found
=>sudo apt-get install libxcb-shm0-dev
error: No package 'xcb-xv' found
=>sudo apt-get install libxcb-xv0-dev
error: Please install GL development package...
=>sudo apt-get install mesa-common-dev mesademos libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev
... FRIBIDI ...QT4
=>sudo apt-get install libfribidi-dev libqt4-dev
装上qt以后还要还是让pkg-config可以找到qt4就可以了(/opt/qtsdk/qt/lib/pkgconfig)
export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/root/soft/ffmpeg/lib/pkgconfig:/root/soft/fribidi/lib/pkgconfig:/opt/qtsdk/qt/lib/pkgconfig"
error: libgcrypt support required for RemoteOSD plugin
=>sudo apt-get install libgcrypt-dev
最近想学习ffmpeg,在Windows下安装虚拟机VMware,然后在虚拟机中安装Ubuntu 12.0 4LTS。
1、安装git。在命令行下执行 sudo apt-get install git-core
2、下载最新版本的ffmpeg。 git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
3、进入ffmpeg目录下,执行 ./configure 这时可能会提示没有yasm,不能编译汇编。可以下载并安装yasm , sudo apt-get install yasm 也可以在执行./configure时加上参数-disable-yasm 直接执行./configure-> make-> make install;会把编译好的文件放到u sr/local/bin下, 如果想改变安装地址,可以在执行configure的时候添加参数--prefix=PREFIX
来指定目录
4、执行./configure后会生成config.h文件,
查看#define CONFIG_FFPLAY 0 如果是0表示不能编译出ffplay,一般是因为缺少SDL库,
sudo apt-get install libsdl1.2-dev ;用这个命令安装SDL库
5、再回到步骤3。configure执行之后,执行make,需要等比较长的时间,大约10分钟,可以喝杯茶,刷个微博
6、如果没报错,恭喜你,执行make install,就大功告成。
7、可以尝试使用ffplay播放视频。 命令:ffplay videopath