以下来自 http://blog.sina.com.cn/s/blog_4ce1e0e30100foyp.html
源安装
正式开始
1. 如何安装win32codecs
比起手动安装来,我更推荐加源安装的方法。medibuntu是目前最好的源。
以ubuntu8.10为例
先加源
代码:
sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list
然后加GPG Key
代码:
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
这一步时可能会有未验证之类的错误提示,回答yes,或y让它继续进行即可。
安装win32codecs包
如果是intel的CPU
代码:
sudo apt-get install w32codecs
如果是64位 CPU
代码:
sudo apt-get install w64codecs
OK,完成win32codecs的安装
2. 从源里安装mplayer。这一步很重要,因为我们需要用源里的mplayer来确定依赖关系,要不然,编译的mplayer很可能会缺少某些功能。
8.10源里的mplayer仍是1.0rc2,有点老。我们可以加个源用新的
代码:
sudo gedit /etc/apt/sources.list
在末尾加上
代码:
deb http://ppa.launchpad.net/rvm/ubuntu intrepid main
deb-src http://ppa.launchpad.net/rvm/ubuntu intrepid main
deb-src http://ppa.launchpad.net/rvm/ubuntu intrepid main
保存后
代码:
sudo apt-get update
代码:
sudo apt-get install mplayer smplayer mplayer-fonts mozilla-mplayer
执行到这一步,不想编译的同学就可以止步了。你将得到一个版本比较新的mplayer和smplayer。但有可能mplayer会有问题。源里的mplayer要稳定得多。
---------------------------------------编译mplayer的快乐分隔线------------------------------------------------------
源代码编译安装参考http://blog.163.com/lb_icesea79/blog/static/43084683200944114558872/
第六步之前需要common.mak的CFLAGS后边加 -Wa,-mimplicit-it=thumb
否则会出现Error: thumb conditional instruction should be in IT block类似错误