Qt问题记录

本人Qt的版本4.4.0.是Open SUSE 11.0 DVD i386集成自带的开发环境。 G++版本是4.3.1。


Q1: make中出现

../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:1394: 错误:显式特例化不能有存储类型
../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:1400: 错误:显式特例化不能有存储类型
../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:1429: 错误:显式特例化不能有存储类型
../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:1436: 错误:显式特例化不能有存储类型


这个原因是因为G++编译器的问题,版本太高。可以根据错误提示手动修改源代码把 static 去掉。


解下来编译中qdrawhelper.cpp可能也会出现如上情况,解决方案依旧。

 

Q2:make出现

../../include/QtGui/private/../../../src/gui/kernel/qapplication_p.h:347: error: multiple parameters named 'screen' 

 

更改qapplication_p.h并找到相应的位置,将源代码的screen改为screen_t

  #vi src/gui/kernel/qapplication_p.h 

  #void setScreenTransformation(QScreen *screen, int screen_t, int transformation);



 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值