找回密码
 注册
查看: 1530|回复: 15

MPLAYER安装问题 ~~关于GCC

[复制链接]
发表于 2005-8-16 11:21:22 | 显示全部楼层 |阅读模式
编译的 时候出错 。
[root@mylinux MPlayer-1.0pre7]# ./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codes/ --with-win32libdir=/usr/lib/wincodes/
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.0.1, bad
Checking for gcc version ... 4.0.1, bad
Checking for gcc-3.4 version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... 4.0.1, bad

*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***

You are not using a supported compiler. We do not have the time to make sure
everything works with compilers other than the ones we use.  Use either the
same compiler as we do, or use --disable-gcc-checking but DO *NOT* REPORT BUGS
unless you can reproduce them after recompiling with a 2.95.x or 3.x version!

Note for gcc 2.96 users: Some versions of this compiler are known to miscompile
mplayer and lame (which is used for mencoder).  If you get compile errors,
first upgrade to the latest 2.96 release (minimum 2.96-85) and try again.
If the problem still exists, try with gcc 3.x (or 2.95.x) *BEFORE* reporting
bugs!

        GCC 2.96 IS NOT AND WILL NOT BE SUPPORTED BY US !

    *** For details please read DOCS/HTML/en/users-vs-dev.html ***


Error: Bad gcc version

Check "configure.log" if you do not understand why it failed.
[root@mylinux MPlayer-1.0pre7]#


但是我有GCC4呢 。

请看:
[root@mylinux MPlayer-1.0pre7]# rpm -q gcc
gcc-4.0.1-4.fc4


不知道是怎么会事?
发表于 2005-8-16 13:02:24 | 显示全部楼层
你要安装mplayer可以用补丁

http://www.magiclinux.org/people/sunmoon1997/patches/mplayer/mplayer-1.0_pre7-gcc4.patch

把下载的补丁放到/root下,就进入MPlayer-1.0pre7目录,进行打补丁

[root@localhost root] cd MPlayer-1.0pre7
[root@localhost MPlayer-1.0pre7]patch -p1 < ../mplayer-1.0_pre7-gcc4.patch
回复

使用道具 举报

 楼主| 发表于 2005-8-16 14:19:51 | 显示全部楼层
请问一下这个补丁是干什么的?
安装之后有什么用途?
就针对GCC?
回复

使用道具 举报

发表于 2005-8-16 14:53:43 | 显示全部楼层
这个是为mplayer1.07在gcc4的补丁

就是针对gcc4

打补丁才能安装mplyaer
回复

使用道具 举报

发表于 2005-8-16 17:13:08 | 显示全部楼层
打补丁太复杂了,
不用打补本!
下个CVS版就可以了!
回复

使用道具 举报

发表于 2005-8-16 18:36:28 | 显示全部楼层
下 CVS 的更复杂
回复

使用道具 举报

 楼主| 发表于 2005-8-16 21:12:16 | 显示全部楼层
yun 为难我呢不是~~
回复

使用道具 举报

发表于 2005-8-16 21:18:44 | 显示全部楼层
打补丁只要记住 patch -p1 < xxxxxx.diff 就可以了
回复

使用道具 举报

 楼主| 发表于 2005-8-16 21:47:30 | 显示全部楼层
CVS版本是什么?意思?

“打补丁只要记住 patch -p1 < xxxxxx.diff 就可以了”

中间参数P1是什么意思??
回复

使用道具 举报

发表于 2005-8-16 21:58:28 | 显示全部楼层
CVS 是开发中的版本,是开发人员协同开发的一个管理程序

-p1 是 设定 diff (patch)文件从哪个目录开始
-p0 表示从 patch 的根目录。
-p4 表示从 patch 的第4级目录。

一般补丁制作都是在源代码的上级目录,所以 -p1 正好是在源代码的目录。

当然这一般需要看情况决定~~
回复

使用道具 举报

 楼主| 发表于 2005-8-16 22:05:03 | 显示全部楼层
谢谢斑竹。
以后咄咄想你学习啦~~
~~~
等问题解决了~~~
回复

使用道具 举报

 楼主| 发表于 2005-8-16 23:17:57 | 显示全部楼层
问题又来了。很对不起大家。没有一次吧它弄好
播放文件的 时候 出错:


[root@mylinux \u5eb7\u5eb7]# mplayer kangnet0307.rm
MPlayer 1.0pre7-RPM-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.


Playing kangnet0307.rm.
Cache fill:  0.00% (0 bytes)    REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream mimetype: logical-fileinfo
VIDEO:  [RV40]  320x240  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
name: \uffff\uffff\uffff\u3e64\uffff
author: \uffff\uffff\uffff\u3e64\uffff
==========================================================================
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/codecs/cook.so'
Error: /usr/lib/codecs/cook.so: cannot open shared object file: No such file or directory
opening win32 dll 'cook.so'
Win32 LoadLibrary failed to load: cook.so, /usr/lib/codecs/cook.so, /usr/lib/win32/cook.so, /usr/local/lib/win32/cook.so
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/codecs/cook.so.6.0'
Error: /usr/lib/codecs/cook.so.6.0: cannot open shared object file: No such file or directory
opening win32 dll 'cook.so.6.0'
Win32 LoadLibrary failed to load: cook.so.6.0, /usr/lib/codecs/cook.so.6.0, /usr/lib/win32/cook.so.6.0, /usr/local/lib/win32/cook.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.6.0.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening win32 dll 'cook3260.dll'
Win32 LoadLibrary failed to load: cook3260.dll, /usr/lib/codecs/cook3260.dll, /usr/lib/win32/cook3260.dll, /usr/local/lib/win32/cook3260.dll
Error loading dll
ERROR: Could not open required DirectShow codec cook3260.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/codecs/cook.bundle/Contents/MacOS/cook'
Error: /usr/lib/codecs/cook.bundle/Contents/MacOS/cook: cannot open shared object file: No such file or directory
opening win32 dll 'cook.bundle/Contents/MacOS/cook'
Win32 LoadLibrary failed to load: cook.bundle/Contents/MacOS/cook, /usr/lib/codecs/cook.bundle/Contents/MacOS/cook, /usr/lib/win32/cook.bundle/Contents/MacOS/cook, /usr/local/lib/win32/cook.bundle/Contents/MacOS/cook
Error loading dll
ERROR: Could not open required DirectShow codec cook.bundle/Contents/MacOS/cook.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Cannot find codec for audio format 0x6B6F6F63.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib/codecs/drvc.so'
Error: /usr/lib/codecs/drvc.so: cannot open shared object file: No such file or directory
opening win32 dll 'drvc.so'
Win32 LoadLibrary failed to load: drvc.so, /usr/lib/codecs/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib/codecs/drv4.so.6.0'
Error: /usr/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
opening win32 dll 'drv4.so.6.0'
Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/lib/codecs/drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
Error loading dll
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed
Opening video decoder: [realvid] RealVideo decoder
opening win32 dll 'drv43260.dll'
Win32 LoadLibrary failed to load: drv43260.dll, /usr/lib/codecs/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
Error loading dll
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc'
Error: /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
opening win32 dll 'drvc.bundle/Contents/MacOS/drvc'
Win32 LoadLibrary failed to load: drvc.bundle/Contents/MacOS/drvc, /usr/lib/codecs/drvc.bundle/Contents/MacOS/drvc, /usr/lib/win32/drvc.bundle/Contents/MacOS/drvc, /usr/local/lib/win32/drvc.bundle/Contents/MacOS/drvc
Error loading dll
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!
========================================================================

编译出错 ~
。。。。。。~
回复

使用道具 举报

发表于 2005-8-17 19:41:14 | 显示全部楼层
解码器不全?
回复

使用道具 举报

发表于 2005-8-19 00:19:21 | 显示全部楼层
好像是吧!
回复

使用道具 举报

发表于 2005-8-23 10:08:39 | 显示全部楼层
太复杂了........

我用简单的方法:
我先安装了xine(rpm包),
接关我就下了个MPlayer-CVS版D,
解压缩后,

./configure --enable-largefiles
make
make install

就这样,MPlayer播放什么文件都行...........
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-5-15 19:44 , Processed in 0.047300 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表