(六) 故障分析及其解决
安装MPlayer,执行make是出现下面的错误:
In file included from /usr/include/netdb.h:28,
from network.h:16,
from stream.h:65,
from stream_dvd.c:32:
/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 `/root/MPlayer-1.0rc2/stream'
make: *** [stream/stream.a] Error 2
编辑/usr/include/netinet/in.h文件
[root@localhost MPlayer-1.0rc2]# vi /usr/include/netinet/in.h
在__BEGIN_DECLS下面添加如下代码:
#undef ntohl
#undef ntohs
#undef htonl
#undef htons
执行make clean,再执行make,就可以了
二:解决字体问题
[GUI] 导入字幕: /mnt/hgfs/linux/91.wmv7%
SUB: Detected subtitle file format: rt
SUB: Read 0 subtitles.
不能加载字幕: /mnt/hgfs/linux/91.wmv
1: 打开字体文件
[root@bogon TrueType]#cd /usr/share/fonts/zh_CN/TrueType
[root@bogon TrueType]# pwd
/usr/share/fonts/zh_CN/TrueType
fonts.cache-1 fonts.dir fonts.scale gbsn00lp.ttf gkai00mp.ttf zysong.ttf
2: 打开主目录下的隐藏目录
[root@bogon root]# cd .mplayer/
[root@bogon .mplayer]# pwd
/root/.mplayer
config gui.conf gui.history gui.pl gui.url
3: 将任意一种字体cp到./mplayer目录下即可
[root@bogon .mplayer]# cp /usr/share/fonts/zh_CN/TrueType/gbsn00lp.ttf ./subfont.ttf (改成这样的字体文件)