• 4956阅读
  • 1回复

[提问]ubuntu装qt/embedded编译问题 [复制链接]

上一主题 下一主题
离线zzxxer
 
只看楼主 倒序阅读 楼主  发表于: 2011-10-21
[font='Lucida Grande', 'Trebuchet MS', Helvetica, Arial, sans-serif]
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]: *** [allmoc.o] 错误 1
make[3]:正在离开目录 `/usr/local/qt-embedded-2.3.2/src'
make[2]: *** [src-mt] 错误 2
make[2]:正在离开目录 `/usr/local/qt-embedded-2.3.2'
make[1]: *** [src-mt] 错误 2
make[1]:正在离开目录 `/usr/local/qt-embedded-2.3.2'
make: *** [init] 错误 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' was not declared in this scope
kernel/qgfxvfb_qws.cpp:231: error: 'xoffs' was not declared in this scope
kernel/qgfxvfb_qws.cpp:231: error: 'yoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:642: error: 'xoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:642: error: 'yoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:644: error: 'width' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:646: error: 'height' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:654: error: 'width' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:654: error: 'yoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:654: error: 'xoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:656: error: 'height' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:683: error: 'srcbits' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:683: error: 'buffer' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:686: error: 'srcwidgetoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:686: error: 'width' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:686: error: 'srcwidth' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:689: error: 'height' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:689: error: 'srcheight' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:699: error: 'srcwidgetoffs' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:707: error: 'srcwidth' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:708: error: 'srcheight' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:750: error: 'cbrush' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:750: error: 'SolidPattern' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:762: error: 'stitchedges' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:789: error: 'stitchedges' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:825: error: 'srcwidth' was not declared in this scope
kernel/qgfxtransformed_qws.cpp:829: error: 'srcheight' was not declared in this scope




还有怎么貌似开始时是clean 一会儿怎么变成clear?甚是觉得神奇,但是我两种都试了,未得正果!


还有一大堆warning,
会不会是编译器版本?
#gcc -v:
gcc version 4.4.5


# arm-linux-gcc -v:
gcc version 4.4.3


要怎么办呢?
离线wxj120bw

只看该作者 1楼 发表于: 2011-10-22
回 楼主(zzxxer) 的帖子
从最后错误看 不想是编译器版本的问题 倒想是配置或者源代码的问题
快速回复
限100 字节
 
上一个 下一个