装qt出的问题

开发基于GTK+或QT的应用程序
回复
hou710
帖子: 5
注册时间: 2006-04-24 12:48
送出感谢: 0
接收感谢: 0
联系:

装qt出的问题

#1

帖子 hou710 » 2006-10-12 15:43

./configure过了, make的时候就出现下面的东东(好像4.2.0,3.0,4.1都有类似的问题),请高手帮忙,先谢过 :D

出现的错误是:
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:51:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:50:22: error: X11 /Xlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:55:23: error: X11 /Xutil.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:56:21: error: X11 /Xos.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:63:23: error: X11 /Xatom.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:252: 错误: ‘Colo rmap’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:253: 错误: ISO C ++ 不允许声明无类型的 ‘Visual’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:253: 错误: expec ted ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:262: 错误: ‘Time ’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:263: 错误: ‘Wind ow’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:264: 错误: ‘Wind ow’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:274: 错误: ‘Wind ow’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:277: 错误: ‘Wind ow’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:278: 错误: ‘Wind ow’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:278: 错误: ‘Atom ’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:279: 错误: ‘Atom ’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:280: 错误: ‘Wind ow’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:280: 错误: ‘Atom ’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:291: 错误: expec ted ‘,’ or ‘...’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:291: 错误: ISO C ++ 不允许声明无类型的 ‘XSelectionRequestEvent’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:293: 错误: ‘Atom ’ 未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:294: 错误: ‘Atom ’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:344: 错误: ISO C ++ 不允许声明无类型的 ‘Atom’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:344: 错误: expec ted ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:346: 错误: ISO C ++ 不允许声明无类型的 ‘Window’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:346: 错误: expec ted ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:348: 错误: ‘Wind ow’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:354: 错误: ‘Time ’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:355: 错误: ‘Time ’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:381: 错误: ISO C ++ 不允许声明无类型的 ‘Visual’
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:381: 错误: expec ted ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:382: 错误: ‘Colo rmap’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:534: 错误: ‘Atom ’ 没有命名一个类型
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:544: 错误: ‘Focu sOut’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:545: 错误: ‘Focu sIn’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:546: 错误: ‘KeyP ress’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:547: 错误: ‘KeyR elease’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:548: 错误: ‘None ’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:549: 错误: ‘Reve rtToParent’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:550: 错误: ‘Gray Scale’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:551: 错误: ‘Curs orShape’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:566: 错误: ‘XPoi nt’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:566: 错误: 模板 参数 1 无效
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:567: 错误: ‘XRec tangle’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:567: 错误: 模板 参数 1 无效
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:568: 错误: ‘XCha r2b’ 在此作用域中尚未声明
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:568: 错误: 模板 参数 1 无效
make[3]: *** [.obj/debug-shared/qapplication.o] 错误 1
make[3]: Leaving directory `/home/lenney/downloads/qt-x11-opensource-src-4.1.4/s rc/gui'
make[2]: *** [debug-install] 错误 2
make[2]: Leaving directory `/home/lenney/downloads/qt-x11-opensource-src-4.1.4/s rc/gui'
make[1]: *** [sub-gui-install_subtargets-ordered] 错误 2
make[1]: Leaving directory `/home/lenney/downloads/qt-x11-opensource-src-4.1.4/s rc'
make: *** [sub-src-install_subtargets-ordered] 错误 2
root@lenney:/home/lenney/downloads/qt-x11-opensource-src-4.1.4# cd /usr/local
回复

回到 “GTK+和QT”