接下来继续
# 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 install