Welcome 微信登录

首页 / 操作系统 / Linux / RedHat Linux 9.0 下编译MPlayer-1.0rc3

一.资料准备1.主程序:MPlayer-1.0rc32.Codecs:essential-20071007.tar.bz23.Wincodecs:windows-essential-20071007.zip4.皮肤:KDE-0.3.tar.bz2二.安装过程编码包要安装在/usr/lib/codecs和/usr/lib/wincodecs目录下,所以先要新建文件夹。(也可以在编译过程中指定特定的文件夹)1.安装源码包# mkdir /usr/lib/codecs# mkdir /usr/lib/wincodecs#tar jxvf  essential-20071007.tar.bz2# unzip windows-essential-20071007.zip# mv essential-20071007/*  /usr/lib/codecs # mv windows-essential-20071007/* /usr/lib/wincodecs 2.编译安装MPlayer# tar jxvf MPlayer-1.0rc1.tar.bz2# cd mplayer-1.0pre1# ./configure --prefix=/usr/local/ --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --language=zh_CN接下来继续# make在这里会出错/usr/include/netinet/in.h:259: parse error before "(" token /usr/include/netinet/in.h:259: parse error before "__u32" /usr/include/netinet/in.h:260: parse error before "(" token /usr/include/netinet/in.h:260: parse error before "__u16" /usr/include/netinet/in.h:262: parse error before "(" token /usr/include/netinet/in.h:262: parse error before "__u32" /usr/include/netinet/in.h:264: parse error before "(" token /usr/include/netinet/in.h:264: parse error before "__u16" stream_dvd.c: In function `dvd_parse_chapter_range": stream_dvd.c:168: warning: passing arg 2 of `strtol" from incompatible pointer type make[1]: *** [stream_dvd.o] Error 1 make[1]: Leaving directory `/home/monde/MPlayer-1.0rc2/stream" make: *** [stream/stream.a] Error 2解决方法如下(原因可能是Mplayer 不识别函数 ntohl,btohs,htonl 等)编辑/usr/include/netinet/in.h文件[root@localhost MPlayer-1.0rc3]# vi /usr/include/netinet/in.h在__BEGIN_DECLS下面添加如下代码:#undef ntohl#undef ntohs#undef htonl#undef htons执行make clean,再执行make,就可以了# make installVMware RedHat 9.0 下Mplayer 安装PPStream for Linux 使用过程中发现的问题和解决方案相关资讯      redhat  Mplayer 
  • MPlayer 1.3 发布下载,现已支持   (02月18日)
  • CentOS 6.x和CentOS 7安装MPlayer  (01/13/2015 19:12:43)
  • CentOS 7.0安装MPlayer  (11/03/2014 19:26:02)
  • 开源媒体播放器 MPlayer 1.2 发布  (10/18/2015 13:15:05)
  • 为什么像 RedHat 那样的开源旗手很  (12/23/2014 07:50:53)
  • RedHat Linux 用户登录认证失败  (06/24/2014 19:56:55)
本文评论 查看全部评论 (0)
表情: 姓名: 字数