我用的是mandrake8.1,升级GCC为3.2,但是在安装MPLAER时出错如下:
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc version ... 3.2, ok
Checking for CPU vendor ... GenuineIntel (6:6:5)
Checking for CPU type ... Celeron (Mendocino)
Checking for GCC & CPU optimization abilities ... Your gcc does not support even "i386" for '-march' and '-mcpu'.
error
Checking for kernel support of mmx ... failed
It seems that your kernel does not correctly support mmx.
To use mmx extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for mtrr support ... yes
Checking for assembler (as 2.11.90.0. ... ok
Checking for Linux kernel version ... 2.4.8-26mdk, ok
Checking for awk ... mawk
Checking for extra headers ... none
Checking for extra libs ... none
Checking for i18n ... no
Checking for setlocale() ... no
Checking for language ... using zh
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... none
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (=> i'll try inet_aton next)
Checking for inet_aton() ... no (=> streaming support disabled)
Checking for inttypes.h (required) ...
Error: cannot find header inttypes.h (see DOCS/faq.html)
很奇怪啊。。。
你的 Linux 是 MDK 8.1,可是 gcc 却是 3.2 的。没记错的话自带的应该是 2.9.6 版的吧?
Checking for gcc version ... 3.2, ok
gcc 是 3.2 的,可是却连 i386 的优化模式都不支持,按理说 3.2 gcc P4 的 SSE2 优化都没问题的。:
Checking for GCC & CPU optimization abilities ... Your gcc does not support even "i386" for '-march' and '-mcpu'.error
你的 CPU 是赛扬的,可是核心却不支持 MMX 指令集,那说明你的核心是用 3.0 版以下 gcc 编译的:
Checking for kernel support of mmx ... failed
不知你是否自己升级过你的 Linux 里的单个软件包,但我感觉你的 Linux 各个软件包的版本已经不一致了。。。可能的话最好一次把整个 Linux 换一个新的发行版