PDA

View Full Version : Qt 4.8.2:make Qt for mini2440,and something was wrong with Vector.h



Kang Kermit
8th August 2012, 06:12
Hi,

I am cross compiling Qt4.8.2 on CentOS6.1 for my mini2440 board.The follow is my step and the error which I meet.
#tar -zxvf qt-everywhere-opensource-src-4.8.2.tar.gz
#cd qt-everywhere-opensource-src-4.8.2
#./configure -prefix /opt/Qtopia4.6.3/ -opensource -confirm-license -release -shared -embedded arm -xplatform qws/linux-arm-g++ -depths 16,18,24 -fast -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -little-endian -host-little-endian -no-qt3support -no-libtiff -no-libmng -no-opengl -no-mmx -no-sse -no-sse2 -no-3dnow -no-webkit -no-qvfb -no-phonon -no-nis -no-opengl -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -nomake examples -nomake tools -nomake docs -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
#make
......
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:415: instantiated from ‘void QTWTF::VectorBuffer<T, inlineCapacity>::allocateBuffer(size_t) [with T = QTJSC::ExpressionNode*, unsigned int inlineCapacity = 8u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:808: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::reserveCapacity(size_t) [with T = QTJSC::ExpressionNode*, unsigned int inlineCapacity = 8u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:745: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::expandCapacity(size_t) [with T = QTJSC::ExpressionNode*, unsigned int inlineCapacity = 8u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:752: instantiated from ‘const T* QTWTF::Vector<T, inlineCapacity>::expandCapacity(size_t, const T*) [with T = QTJSC::ExpressionNode*, unsigned int inlineCapacity = 8u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:870: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::append(const U&) [with U = QTJSC::ExpressionNode*, T = QTJSC::ExpressionNode*, unsigned int inlineCapacity = 8u]’
../3rdparty/javascriptcore/JavaScriptCore/parser/Nodes.h:1087: instantiated from here
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:473: warning: cast from ‘QTWTF::AlignedBufferChar*’ to ‘QTJSC::ExpressionNode**’ increases required alignment of target type
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h: In member function ‘T* QTWTF::VectorBuffer<T, inlineCapacity>::inlineBuffer() [with T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’:
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:415: instantiated from ‘void QTWTF::VectorBuffer<T, inlineCapacity>::allocateBuffer(size_t) [with T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:808: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::reserveCapacity(size_t) [with T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:745: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::expandCapacity(size_t) [with T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:752: instantiated from ‘const T* QTWTF::Vector<T, inlineCapacity>::expandCapacity(size_t, const T*) [with T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:870: instantiated from ‘void QTWTF::Vector<T, inlineCapacity>::append(const U&) [with U = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, T = QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump, unsigned int inlineCapacity = 16u]’
../3rdparty/javascriptcore/JavaScriptCore/assembler/AbstractMacroAssembler.h:391: instantiated from ‘void QTJSC::AbstractMacroAssembler<AssemblerType>::JumpList::append(QTJSC::AbstractMacroAssembler<AssemblerType>::Jump) [with AssemblerType = QTJSC::ARMAssembler]’
../3rdparty/javascriptcore/JavaScriptCore/assembler/MacroAssemblerARM.h:844: instantiated from here
../3rdparty/javascriptcore/JavaScriptCore/wtf/Vector.h:473: warning: cast from ‘QTWTF::AlignedBufferChar*’ to ‘QTJSC::AbstractMacroAssembler<QTJSC::ARMAssembler>::Jump*’ increases required alignment of target type
make[1]: *** [obj/release/Collector.o] Error 1
make[1]: Leaving directory `/opt/mini2440/qt-extended4.6.3/buildarm/qt-everywhere-opensource-src-4.8.2/src/script'
make: *** [sub-script-make_default-ordered] Error 2

I am using cross-compiler gcc 4.5.3
And I don't know how to solve it,it is bothering me for a long time. Please help me on this ...its urgent!!!!
Thanks!!