SUSE 10发行版,gcc4.0编译器。采用打补丁的方法安装MPlayer-1.0pre7try2。代码如下:
patch -p1 < ../mplayer-1.0_pre7-gcc4.patch
将codecs解压放入/usr/lib/codecs目录。然后
#./configure --enable-gui --language=zh_CN
没有任何问题。然后make,此时出现无数warning和error,例如
/usr/include/gtk-1.2/gtk/gtksocket.h:50: warning: data definition has no type or storage class
/usr/include/gtk-1.2/gtk/gtksocket.h:51: error: syntax error before ‘current_height’
/usr/include/gtk-1.2/gtk/gtksocket.h:51: warning: data definition has no type or storage class
/usr/include/gtk-1.2/gtk/gtksocket.h:54: error: syntax error before ‘same_app’
/usr/include/gtk-1.2/gtk/gtksocket.h:62: error: field ‘parent_class’ has incomplete type
/usr/include/gtk-1.2/gtk/gtksocket.h:67: error: syntax error before ‘gtk_socket_get_type’
请大侠指点!
Post by fred1983
我重装了一遍gtk+和glib,现在mplayer安装成功了,但在make时还是有一堆的语法方面的warning。虽说不碍事,但是这些warning怎么解决?是gcc版本的问题吗?
另外,SUSE的yast2控制台的软件安装方式实在没能搞懂,弄了半天也不知如何装rpm包,只能命令行rpm -ivh