在redhat9.0上安装qt-free-3.0.4,按照安装指南中的,将 那几行设置外部变量的代码加到了/etc/profile,修改文件名为 qt,接下来就是./configure和make,问题就出在了make上,具体的错误为
kernel/qwindowdefs.h:140: forward declaration of `union _XEvent'
kernel/qapplication_x11.cpp:5767: aggregate `XEvent otherEvent' has
incomplete
type and cannot be defined
kernel/qapplication_x11.cpp:5819: aggregate `XEvent xevent' has
incomplete type
and cannot be defined
kernel/qapplication_x11.cpp:5833: aggregate `XEvent xevent' has
incomplete type
and cannot be defined
{standard input}: Assembler messages:
{standard input}:329: Error: symbol `ncols' is already defined
{standard input}:350: Error: symbol `i' is already defined
make[2]: *** [.obj/release-shared/qapplication_x11.o] Error 1
make[2]: Leaving directory `/usr/local/qt/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory `/usr/local/qt'
make: *** [init] Error 2
上面的是一部分,有没有人遇到过这种情况?
帮忙解答一下
万分感谢!