[Solved]How to build qt-everywhere-opensource-src-4.8.0 with webkit?



  • Dear all,

    I use following configure line to configure and make. I got got error message in JavascriptCore.

    ./configure -prefix /usr/local/Trolltech/QtEmbedded-4.8.0-arm-vnc -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I/home/tslib/include -L/home/tslib/lib -qt-gfx-vnc -confirm-license

    =============================================================
    In file included from runtime/JSValue.h:32,
    from runtime/CachedTranscendentalFunction.h:29,
    from runtime/JSGlobalData.h:32,
    from interpreter/CallFrame.h:26,
    from runtime/ArgList.h:25,
    from runtime/JSObject.h:26,
    from wtf/DateMath.cpp:79:
    ./wtf/MathExtras.h:252: error: 'std::isfinite' has not been declared
    ./wtf/MathExtras.h:253: error: 'std::isinf' has not been declared
    ./wtf/MathExtras.h:254: error: 'std::isnan' has not been declared
    ./wtf/MathExtras.h:255: error: 'std::signbit' has not been declared
    In file included from runtime/JSObject.h:31,
    from wtf/DateMath.cpp:79:
    runtime/JSCell.h: In member function 'void* JSC::MarkedBlock::allocate()':
    runtime/JSCell.h:354: warning: cast from 'char ()[8]' to 'JSC::JSCell' increases required alignment of target type
    runtime/WriteBarrier.h: In member function 'T* JSC::WriteBarrierBase<T>::get() const [with T = JSC::Structure]':
    runtime/JSCell.h:174: instantiated from here
    runtime/WriteBarrier.h:70: warning: cast from 'JSC::JSCell*' to 'JSC::Structure*' increases required alignment of target type
    /usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h: In member function 'std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_M_rep() const [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]':
    /usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h:483: instantiated from 'std::basic_string<_CharT, _Traits, _Alloc>::~basic_string() [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
    ../../../../../include/QtCore/../../src/corelib/tools/qstring.h:1045: instantiated from here
    /usr/local/toolchain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/include/c++/4.2.0/bits/basic_string.h:288: warning: cast from 'char*' to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep*' increases required alignment of target type
    heap/Handle.h: In static member function 'static T* JSC::HandleTypes<T>::getFromSlot(JSC::JSValue*) [with T = JSC::Structure]':
    heap/Handle.h:155: instantiated from 'typename JSC::HandleTypes<T>::ExternalType JSC::Handle<T>::get() const [with T = JSC::Structure]'
    runtime/ScopeChain.h:40: instantiated from here
    heap/Handle.h:82: warning: cast from 'JSC::JSCell*' to 'JSC::Structure*' increases required alignment of target type
    make[2]: *** [.obj/release-static-emb-arm/DateMath.o] Error 1
    make[2]: Leaving directory /home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source/JavaScriptCore' make[1]: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2 make[1]: Leaving directory/home/tiger4/Downloads/qt4.8.0-arm-shared/qt-everywhere-opensource-src-4.8.0/src/3rdparty/webkit/Source'
    make: *** [sub-webkit-make_default-ordered] Error 2

    How do I fix it?

    Thank you all.



  • [Solved] Thank you


  • Moderators

    Please consider posting a summary of what the problem was, in case someone else runs into something similar.

    Also, be sure and edit the thread title to add [Solved] at the beginning.



  • The problem was using old arm-none-linux-gnueabi-gcc version such as v4.2. At least arm-none-linux-gnueabi-gcc v4.5.2 can avoid this problem.

    Thank you.



  • I also met the same problem. My crosstool is arm-none-linux-gnueabi-gcc v4.2.0


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.