linux安装qt580,Linux下安装qt-x11-opensource-src-4.3.0出现的问题

在尝试编译Qt源代码时遇到了一系列错误,包括模板参数无效、类型如Atom、Window、Time未被声明等。这通常表明Qt库在链接X11相关头文件时出现了问题,可能是编译环境不完整或者配置有误。解决办法可能涉及检查X11库的安装状态、更新Qt源代码或者调整编译配置。
摘要由CSDN通过智能技术生成

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:309: error: template argument 1 is invalid

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:310: error: ‘Atom’ has not been declared

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:311: error: ‘Atom’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:366: error: ISO C++ forbids declaration of ‘Atom’ with no type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:366: error: expected ‘;’ before ‘*’ token

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:368: error: ISO C++ forbids declaration of ‘Window’ with no type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:368: error: expected ‘;’ before ‘*’ token

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:370: error: ‘Window’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:376: error: ‘Time’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:377: error: ‘Time’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:403: error: ISO C++ forbids declaration of ‘Visual’ with no type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:403: error: expected ‘;’ before ‘*’ token

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:404: error: ‘Colormap’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:568: error: ‘Atom’ does not name a type

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:570: error: ‘Atom’ has not been declared

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:580: error: ‘FocusOut’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:581: error: ‘FocusIn’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:582: error: ‘KeyPress’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:583: error: ‘KeyRelease’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:584: error: ‘None’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:585: error: ‘RevertToParent’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:586: error: ‘GrayScale’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:587: error: ‘CursorShape’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:602: error: ‘XPoint’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:602: error: template argument 1 is invalid

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:603: error: ‘XRectangle’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:603: error: template argument 1 is invalid

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:604: error: ‘XChar2b’ was not declared in this scope

../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:604: error: template argument 1 is invalid

gmake[1]: *** [.obj/release-shared/qapplication.o] Error 1

gmake[1]: Leaving directory `/tmp/qt-x11-opensource-src-4.3.0/src/gui'

gmake: *** [sub-gui-make_default-ordered] Error 2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值