ubuntu安装mplayer笔记

以下来自    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

保存后
代码:
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类似错误




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值