http://www.mplayerhq.hu/MPlayer/releases/
[root@ok MPlayer-1.2.1]# pwd
/root/MPlayer-1.2.1
http://www.mplayerhq.hu/MPlayer/releases/codecs/
[root@ok Desktop]# ls
all-20061022 all-20061022.tar.bz2
[root@ok Desktop]# mkdir /usr/local/lib/codec
[root@ok Desktop]# mv -f all-20061022/* /usr/local/lib/codecs/
[root@ok MPlayer-1.2.]# yum install *alsa*
#先装这个在安装MPlayer不然没声音

[root@ok MPlayer-1.2.1]# pwd
/root/MPlayer-1.2.1
[root@ok MPlayer-1.2.1]# ./configure --codecsdir=/usr/local/lib/codecs --enable-gui
make && make install
原地址:http://www.xitongzhijia.net/xtjc/20150228/39477.html
http://www.centoscn.com/image-text/install/2014/0419/2815.html

卸载原有的播放器:

root     15481     1  0 22:39 ?        00:00:00 totem /home/iptables/15-企业实战案例1-部署企业上网网关实战讲解01_rec.mp4
[root@ok MPlayer-1.2.1]# which totem
/usr/bin/totem
[root@ok MPlayer-1.2.1]# rpm -qf /usr/bin/totem
totem-2.28.6-4.el6.x86_64
[root@ok MPlayer-1.2.1]# yum remove totem

-------------------------------------------

configure时报错:

Checking for yasm ...
Error: yasm not found, use --yasm='' if you really want to compile without
[root@ok Software]# git clone git://github.com/yasm/yasm.git
Initialized empty Git repository in /data/Software/yasm/.git/
remote: Counting objects: , done.
remote: Total (delta ), reused (delta ), pack-reused
Receiving objects: % (/), 27.20 MiB | KiB/s, done.
Resolving deltas: % (/), done.
[root@ok yasm]# ./autogen.sh
[root@ok yasm]# ./configure
[root@ok yasm]# make && make install 再次编译成功!!

====================================

安装成功了,但学是报错如下图:

http://www.mplayerhq.hu/MPlayer/skins/ 下载

Blue-small-1.9.tar.bz2 
[root@ok Software]# cp -rf Blue-small /usr/local/share/mplayer/skins/
[root@ok Software]# cd /usr/local/share/mplayer/skins/
[root@ok skins]# ls
Blue-small
[root@ok skins]# mv Blue-small/ default
[root@ok skins]# ls
default

问题解决!!

========================

如果没有声音:

[root@ok MPlayer-1.2.1]# yum install *alsa*

再重新装一下,问题解决!!!

===============================2016.11.12-安装问题=========================

[root@NB MPlayer-1.2.]# ./configure --codecsdir=/usr/local/lib/codec --enable-gui
Checking for ffmpeg/libavcodec/allcodecs.c ... found
Checking for ffmpeg/libavformat/allformats.c ... found
Checking for ffmpeg/libavfilter/allfilters.c ... found
Checking for working compiler ...
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS . Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.]# tail config.log 

============ Checking for working compiler ============

int main(void) { return ; }

cc    /tmp/mplayer-configure--/tmp.c      -o /tmp/mplayer-configure--/tmp
./configure: line : cc: command not found
[root@NB MPlayer-1.2.]# yum install gcc
是因为gcc没安装

又报错:

Error: The GUI requires X11.

Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.]# yum install -y xorg-x11*
不过再 次configure 还是报错
Checking for GTK+ version ... no Error: GTK+ version devel packages were not found (required for GUI). Check "config.log" if you do not understand why it failed.
[root@NB MPlayer-1.2.1]# tail config.
config.h    config.log  
[root@NB MPlayer-1.2.1]# tail config.log
cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Werror=format-security -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure-8753-17123/tmp.c  -fpie -DPIC -D_REENTRANT    -ffast-math -fpie -pie   -lrt   -lXext -lX11 -lpthread -lXxf86vm -lGL -ldl  -o /tmp/mplayer-configure-8753-17123/tmp -lXext -lm Result is: yes
########################################## ============ Checking for GTK+ version ============
Result is: no
##########################################
[root@NB MPlayer-1.2.]# yum install gtk* -y

重新编译成功!!!这个是完美的(全屏问题解决)

Checking for yasm ...
Error: yasm not found, use --yasm='' if you really want to compile without Check "config.log" if you do not understand why it failed.
Error: GTK+ version  devel packages were not found (required for GUI).

yum install gtk2-devel

CentOS下源码安装mplayer播放器的更多相关文章

  1. CentOS下源码安装Apache2.4+PHP5.4+MySQL5.5

    一.准备(把所有的源文件放在‘/home/yuanjun’目录下) apr http://mirror.bjtu.edu.cn/apache/apr/apr-1.4.6.tar.gz apr-util ...

  2. CentOS下源码安装vsftpd-3.0.0,并设置指定用户访问指定目录(附带完整配置文件)

    1.卸载系统已经存在的ftp服务器 因为是源码安装,所以不能通过rpm -qa的方式查看是否已经安装ftp服务器,可以通过find / | grep vsftp*方式查看系统中存在哪些与vsftpd相 ...

  3. 在 CentOS 下源码安装 Xen

    http://www.vpsee.com/2010/04/install-xen-on-centos-from-source/ 在 CentOS 源码编译安装 Xen 的过程和在 Debian 上编译 ...

  4. Centos下源码安装git

    1.centos下git版本太久了,才1.8几,而官方更新的还是很活跃的,于是我就想源码安装一个新版本. 2.首先到: https://github.com/git/git/releases 下载最新 ...

  5. CentOS下源码安装MySQL

    一.创建mysql用户与组,相关目录 useradd mysql -s /sbin/nologin mkdir /usr/local/mysql chown -R mysql.mysql mkdir ...

  6. CentOS 下源码安装LAMP环境

    一.简介 什么是LAMP    LAMP是一种Web网络应用和开发环境,是Linux, Apache, MySQL, Php/Perl的缩写,每一个字母代表了一个组件,每个组件就其本身而言都是在它所代 ...

  7. ubuntu14.0 (arm平台)源码安装 VLC播放器

    环境 ubuntu14.0  arm开发板 源 deb http://mirrors.ustc.edu.cn/ubuntu-ports/ trusty main multiverse restrict ...

  8. 在CentOS下源码安装 Xen并搭建Windows虚拟机

    前言 首先要感谢xing的帮助,在他的指导之下才完成环境的搭建,本文档的部分内容来自他的文档.另外,还要感谢——互联网. 1.       环境介绍 Linux: CentOS 6.3 Xen: Xe ...

  9. centos 6x系统下源码安装mysql操作记录

    在运维工作中经常部署各种运维环境,涉及mysql数据库的安装也是时常需要的.mysql数据库安装可以选择yum在线安装,但是这种安装的mysql一般是系统自带的,版本方面可能跟需求不太匹配.可以通过源 ...

随机推荐

  1. Yii2 初体验

    看着Yii1.1有那么多的不爽,又看着Yii2一天天成熟起来,于是凑一个小项目的原型阶段,试着用Yii2搞一搞. 随手写了一点体会,以一个Yii1的熟练工人看向Yii2的视角,简单一说吧.(将来随时可 ...

  2. 轻量级应用开发之(06)Autolayout自动布局1

    一 什么是Autolayout Autolayout是一种“自动布局”技术,专门用来布局UI界面的. 自IOS7 (Xcode 5)开始,Autolayout的开发效率得到很大的提高. 苹果官方也推荐 ...

  3. KindEditor提交用jquery获取不到数据的解决方法

    http://www.douban.com/note/257795704/ 如果说用php接收的话,在HTML中这样写就可以了var editor;KindEditor.ready(function( ...

  4. PHP函数篇详解十进制、二进制、八进制和十六进制转换函数说明

    PHP函数篇详解十进制.二进制.八进制和十六进制转换函数说明 作者: 字体:[增加 减小] 类型:转载   中文字符编码研究系列第一期,PHP函数篇详解十进制.二进制.八进制和十六进制互相转换函数说明 ...

  5. The C Programming Language (second edition) 实践代码(置于此以作备份)

    1. #include <stdio.h> #include <stdlib.h> #include <math.h> #include<time.h> ...

  6. WINDOWS渗透与提权总结(1)

    旁站路径问题: 1.读网站配置. 2.用以下VBS: 01 On Error Resume Next 02   03 If (LCase(Right(WScript.Fullname, 11)) = ...

  7. mysql 视图(view)

    什么是视图 视图是从一个或多个表中导出来的表,是一种虚拟存在的表. 视图就像一个窗口,通过这个窗口可以看到系统专门提供的数据. 这样,用户可以不用看到整个数据库中的数据,而之关心对自己有用的数据. 数 ...

  8. Jquery 获取URL参数

    使用jquery获取url以及使用jquery获取url参数是我们经常要用到的操作 1.jquery获取url很简单,代码如下 1.window.location.href; 其实只是用到了javas ...

  9. js打印(控件)及多种方式

    非常好用的LODOP打印控件 Lodop打印控件简单使用方法 1.安装. 2.调用LodopFuncs.js文件. 3.增加OBJECT对象 <script language="jav ...

  10. 快还要更快,让PHP 7 运行更加神速

    导读 PHP 7 比5.x 快上很多,即使只有单纯的版本升级就已经很有感,不过大家还是希望它变得越来越快,这时再做些小调整就会更有fu,Let's try it! 事前准备 说到PHP 7,那一定跑不 ...