`
jacky.jihao
  • 浏览: 152512 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ubuntu安装mplayer遇到的一些问题及解决办法

阅读更多

ubuntu安装mplayer遇到的一些问题及解决办法

关于ubuntu安装mplayer网上已经有很多的文章,我也装的时候也参照了一下下面两个链接。这篇文章主要是为了记录我安装的时候遇到的问题及解决办法。
 
http://www.mplayerhq.hu/DOCS/README
http://linux.chinaunix.net/docs/2008-01-24/4725.shtml http://tech.ccidnet.com/art/3089/20090106/1652395_1.html 

安装有五个步骤,我下载了Subversion snapshot的源文件,以及其他几个文件之后,
 
先配置codecs目录,权限如下
 
hao@hao-desktop:/usr/lib$ ls -al | grep codecs
drwxr-xr-x   2 root root     4096 2009-02-11 23:22 codecs
drwxr-xr-x   2 root root     4096 2007-10-07 22:07 wincodecs
 
之后在解压完的source目录下运行了如下命令:

./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --language=zh_CN
 
错误一: 很不幸没有一次性成功,错误提示如下:

Error: The GUI requires libavcodec with PNG support (needs zlib).
Check "configure.log" if you do not understand why it failed.

解决办法: google了一下发现我需要libavcodec这个东东,但是在我检查了一下明明以及装过了的,同时发现还有下面这个包没有装过,看了一下这个包的说明,猜想了一下觉得应该把它装上,这里要说的说ubuntu真的很方便,这个(Synaptic Package Manager) 新立得包管理器简直就是一个神器啊!在Synaptic Package Manager里选中这个包,它会把depend的其他包都自动下载安装,爽死了。

libavcodec-dev

    development files for libavcodec
    This is the codec library from the ffmpeg project. It supports most existing
    encoding formats (MPEG, DivX, MPEG4, AC3, DV...).

    This package contains the header files and static libraries needed to
    compile applications or shared objects that use libavcodec.
 
错误二: 这个问题搞定之后,重新运行上面的configure命令,又得到一个新的错误提示:
 
Error: X11 support required for GUI compilation.
Check "configure.log" if you do not understand why it failed.

解决办法: 继续google发现这次的解决办法是要安装下面两个包,还是用Synaptic Package Manager

libgladeui-1-7
    GTK+ User Interface Build core library

libgladeui-1-dev

    GTK+ User Interface Build core library (development files)
    Glade is a RAD tool to enable quick and easy development of user
    interfaces for the GTK+ 2 toolkit.

    Glade is, since its "3.0" major version, highly modular, and composed
    of widgets which can be used by other applications to integrate
    functionality similar to the one provided by the Glade application
    itself.
然后继续运行configure终于成功了,当然不排除你运行这个的时候遇到别的问题,解决办法就是google+Synaptic Package Manager
然后就可以安装啦
hao@hao-desktop:~/downloaded/mplayer-export-2009-02-11$ sudo make install
[sudo] password for hao:
install -d /usr/local/mplayer//bin /usr/local/mplayer//etc/mplayer /usr/local/mplayer//lib
install -m 755 -s mplayer /usr/local/mplayer//bin
ln -sf mplayer /usr/local/mplayer//bin/gmplayer
install -d /usr/local/mplayer//share/mplayer/skins /usr/local/mplayer//share/pixmaps /usr/local/mplayer//share/applications
install -m 644 etc/mplayer.xpm /usr/local/mplayer//share/pixmaps/
install -m 644 etc/mplayer.desktop /usr/local/mplayer//share/applications/
install -m 755 -s mencoder /usr/local/mplayer//bin
install -d /usr/local/mplayer//share/man/zh_CN/man1
install -m 644 DOCS/man/zh_CN/mplayer.1 /usr/local/mplayer//share/man/zh_CN/man1/
cd /usr/local/mplayer//share/man/zh_CN/man1 && ln -sf mplayer.1 mencoder.1
hao@hao-desktop:~/downloaded/mplayer-export-2009-02-11$
 
 
最后还需要安装字体和皮肤,很简单的活,没遇到问题。

Q:ubuntu如何安装deb格式的包?
A:sudo dpkg -i xxxx.deb

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics