首页| 论坛| 消息

标题:ubuntu装qt/embedded编译问题
作者:zzxxer
日期:2011-10-21 12:41
内容:

ubuntu10.10装qt-embedded-2.3.2编译安装,make之后,出现如下一个错误:
/usr/local/qt-embedded-2.3.2/include/qsortedlist.h:53: error: there are no arguments to 'clear' that depend on a template parameter, so a declaration of 'clear' must be available


导致最后的:
make[3]: *** 错误 1
make[3]:正在离开目录 `/usr/local/qt-embedded-2.3.2/src'
make[2]: *** 错误 2
make[2]:正在离开目录 `/usr/local/qt-embedded-2.3.2'
make[1]: *** 错误 2
make[1]:正在离开目录 `/usr/local/qt-embedded-2.3.2'
make: *** 错误 2


在网上查了说改 include/qsortedlist.h 的clear()成this->clear(),或者删掉cleatr();这样我的到了更多错误:

kernel/qgfxvfb_qws.cpp:143: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:143: error: 'yoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:152: error: 'clipbounds' was not declared in this scope
kernel/qgfxvfb_qws.cpp:162: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:162: error: 'yoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:172: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:172: error: 'yoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:181: error: 'clipbounds' was not declared in this scope
kernel/qgfxvfb_qws.cpp:190: error: 'clipbounds' was not declared in this scope
kernel/qgfxvfb_qws.cpp:199: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:199: error: 'yoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:210: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:210: error: 'yoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:221: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:221: error: 'yoffs' wa ..


#1 回 楼主(zzxxer) 的帖子 [wxj120bw 10-22 11:22]
从最后错误看 不想是编译器版本的问题 倒想是配置或者源代码的问题

回复 发表
主题 版块