看诺鸡鸭的网站说4.7版本出来了,而且叫做faster ,better performance,赶紧上去下来尝尝鲜:
版本:qt-everywhere-opensource-src-4.7.0.tar.gz
我的arm gcc是arm_v5t_le 3.4.3,出了点错,搜索一下,幸亏没遇到网上达人那么多的错,就一个:
Error: register or shift expression expected – `orr r3,r2,lsl#16'
完整的是:
../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h: In member function `typename QHash<Key, T>::Node** QHash<Key, T>::findNode(const Key&, uint*) const [with Key = QFontEngine::FaceId, T = QFreetypeFace*]': ../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h:616: instantiated from `const T QHash<Key, T>::value(const Key&, const T&) const [with Key = QFontEngine::FaceId, T = QFreetypeFace*]' /home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:207: instantiated from here ../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h:883: warning: dereferencing type-punned pointer will break strict-aliasing rules {standard input}: Assembler messages: {standard input}:713: Error: register or shift expression expected – `orr r3,r2,lsl#16' {standard input}:724: Error: register or shift expression expected – `orr r2,r3,lsl#16' {standard input}:7234: Error: register or shift expression expected – `orr r3,r1,lsl#16' {standard input}:7245: Error: register or shift expression expected – `orr r1,r0,lsl#16' make[1]: *** [.obj/release-static-emb-arm/qfontengine_ft.o] Error 1 make[1]: Leaving directory `/home/Qt_lib_optimization/Qt4.6.0Compile/src/gui' make: *** [sub-gui-make_default-ordered] Error 2 #
这是个BUG,QT里面应该先判断编译器版本的,结果人家找出来放到官网了,还好他们给出了解决方案:
http://bugreports.qt.nokia.com/browse/QTBUG-6521
To fix this issue patch /src/3rdparty/freetype/include/freetype/config/ftconfig.h Line 330.
他的意思是加多一个%0在%2前面,我试了一下,好使!
不知道configure的时候加个ARCH定义是否会解决掉?还没试~~