ubuntu安装mplayer遇到的一些问题及解决办法
关于ubuntu安装mplayer网上已经有很多的文章,我也装的时候也参照了一下下面两个链接。这篇文章主要是为了记录我安装的时候遇到的问题及解决办法。
先配置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
分享到:
相关推荐
ubuntu 下实现mplayer播放器的简单demo,参考了相关大神的文档,UI未使用designer设计,使用代码设计界面,初始版本仅供参考。
本文介绍了Ubuntu6.06 Linux安装Mplayer的过程。
mplayer mplayer mplayer mplayer mplayer
虚拟机下的Ubuntu安装VMware Tools与MPlayer的探究
安装MPlayer步骤整理
根据作者在linux下安装mplayer的过程所遇到的问题的解决方法,但不一定对每个人有用,只是个人总结,希望能带来些解决方案。
Linux下安装mplayer教程.pdf
MPlayer - MPlayer - LinuxLiMPlayer - LinuxnuxMPlayer - Linux
很多朋友在Linux下安装MPlayer很麻烦,特打包,解压后直接./mplayer-linux-install.sh 就可以了
是《Qt——用在ARM板上的Mplayer(1.3.0,1.0rc4)安装编译步骤!还有,Mplayer背景抖动闪烁问题解答,终于来了!》【https://blog.csdn.net/qq_41042595/article/details/112308184】、《Qt——Linux(Ubuntu、Arm板...
详细描述了Linux下面安装mplayer播放器的步骤
想在linux下安装一个视频和音频播放器 找了很多关于mplayer方面的安装知识 这个文档时我总结的结果
在linux下,我们有一款非常强大的开源软件来播放各种格式的音乐及视 频,就是Mplayer,本文讲述关于mplayer在linux下安装和使用
Centos6.5下安装配置Mplayer和gmplayer播放器,里面有安装过程讲解,已经在Centos6.5上面安装成功,有兴趣的可以下载下载下来试试。
mplayer是linux下播放速度最快,支持媒体格式最多的播放器,它几乎能播放所有的win媒体文件。本文介绍在Linux上MPlayer的安装方法。
一个用C语言实现的音频和视频播放器软件。
在Linux RH9下安装mplayer很多次了,以前都是以失败而告终,前两天终于装成功了,为自己感到庆幸。大家以后安装的时候可以作为一个参考(有些地方我也是参考别人的)。
在ubuntu 下 用qt5 写的一个播放mp4文件的小例子。用的是启动process 调用mplayer的方法。可以调节音量和播放进度的进度条。通过读写process 命令的方式。
压缩包中包含安装所需软件(mplayer主程序包、编码包、皮肤、字体)及安装步骤,由于仅有50M的上传权限,所以本人上传的资源中仅提供资源较大的gcc-3.4.0包的下载地址。
亲测,绿色免安装,解压就能用。 解码强悍