当前位置: 技术问答>linux和unix
各位大虾,在安装mplayer出现错误 求解!
来源: 互联网 发布时间:2016-11-22
本文导语: [root@oracle mplayer-1.0.20060102]# rpm -qa|grep glib- dbus-glib-devel-0.70-5 avahi-glib-0.6.16-1.el5 NetworkManager-glib-0.6.4-8.el5 glib-java-0.2.6-3.fc6 glib-devel-1.2.10-20.el5 dbus-glib-0.70-5 glib-1.2.10-20.el5 [root@oracle mplayer-1.0.20060102]# rpm -qa|grep gtk+ gtk+-d...
[root@oracle mplayer-1.0.20060102]# rpm -qa|grep glib-
dbus-glib-devel-0.70-5
avahi-glib-0.6.16-1.el5
NetworkManager-glib-0.6.4-8.el5
glib-java-0.2.6-3.fc6
glib-devel-1.2.10-20.el5
dbus-glib-0.70-5
glib-1.2.10-20.el5
[root@oracle mplayer-1.0.20060102]# rpm -qa|grep gtk+
gtk+-devel-1.2.10-56.el5
gtk+-1.2.10-56.el5
[root@oracle mplayer-1.0.20060102]#./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ --language=zh_CN --cc=gcc34
上面的编译通过了,可是到make时就出错了
[root@oracle mplayer-1.0.20060102]# make
gcc34 -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./libavutil -I./libavcodec -o vobsub.o vobsub.c
vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:113: error: previous definition of 'getline' was here
vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:113: error: previous definition of 'getline' was here
make: *** [vobsub.o] 错误 1
dbus-glib-devel-0.70-5
avahi-glib-0.6.16-1.el5
NetworkManager-glib-0.6.4-8.el5
glib-java-0.2.6-3.fc6
glib-devel-1.2.10-20.el5
dbus-glib-0.70-5
glib-1.2.10-20.el5
[root@oracle mplayer-1.0.20060102]# rpm -qa|grep gtk+
gtk+-devel-1.2.10-56.el5
gtk+-1.2.10-56.el5
[root@oracle mplayer-1.0.20060102]#./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ --language=zh_CN --cc=gcc34
上面的编译通过了,可是到make时就出错了
[root@oracle mplayer-1.0.20060102]# make
gcc34 -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mtune=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./libavutil -I./libavcodec -o vobsub.o vobsub.c
vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:113: error: previous definition of 'getline' was here
vobsub.c:231: error: conflicting types for 'getline'
/usr/include/bits/stdio.h:113: error: previous definition of 'getline' was here
make: *** [vobsub.o] 错误 1
|
建议你深入到函数里看