Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt-everywhere-opensource-src-4.8.0 compile error when -debug and -webkit-debug enabled
Forum Updated to NodeBB v4.3 + New Features

Qt-everywhere-opensource-src-4.8.0 compile error when -debug and -webkit-debug enabled

Scheduled Pinned Locked Moved Mobile and Embedded
14 Posts 4 Posters 13.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Weilly
    wrote on last edited by
    #5

    Does anybody suggest how to configure and make? I have the same problem on qt-everywhere-opensource-src-4.8.0

    My configure on QtEmbedded is as below:
    ./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I'tslib PATH'/include -L'tslib PATH'/lib -qt-gfx-vnc

    If I add "-no-webkit " as below, it works. But I need uiloader and webkit at the same time.So, how do I do?
    ./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -no-webkit -qt-mouse-tslib -I'tslib PATH'/include -L'tslib PATH'/lib -qt-gfx-vnc

    1 Reply Last reply
    0
    • P Offline
      P Offline
      post4pavan
      wrote on last edited by
      #6

      Yeah! I got past through it.
      Configure line
      @./configure -embedded arm -xplatform qws/[YOURSPEC] -release -prefix /usr/local/Trolltech/Qt-target-version -qt-gfx-linuxfb -qt-kbd-tty -qt-mouse-tslib -opengl es2 -openvg yes -little-endian -host-little-endian -DQT_QWS_CLIENTBLIT -confirm-license@

      Regards :: Krishna Pavan

      Qt for Embedded! INTERESTING!

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Weilly
        wrote on last edited by
        #7

        Dear post4pavan,

        I follows your configure line and make. I still got the error message as below.
        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

        1 Reply Last reply
        0
        • P Offline
          P Offline
          post4pavan
          wrote on last edited by
          #8

          Hi Weilly,

          @cd src/3rdparty/webkit/JavaScriptCore/release/
          cp jscore. libjscore.a@

          and then make.. It is what i got it!

          Regards :: Krishna Pavan

          Qt for Embedded! INTERESTING!

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Weilly
            wrote on last edited by
            #9

            I have no jscore. under src/3rdparty/webkit/Source/JavaScriptCore/release/ . My error message is as below.

            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

            1 Reply Last reply
            0
            • P Offline
              P Offline
              post4pavan
              wrote on last edited by
              #10

              [quote author="Weilly" date="1329381268"]I have no jscore. under src/3rdparty/webkit/Source/JavaScriptCore/release/ .
              [/quote]

              Its src/3rdparty/webkit/JavaScriptCore/release/ and not as the above you have stated.

              [quote author="Weilly" date="1329381268"]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

              [/quote]

              Regarding your make error the above correction clears it, and gets you proper lib file.

              Regards :: Krishna Pavan

              Qt for Embedded! INTERESTING!

              1 Reply Last reply
              0
              • W Offline
                W Offline
                Weilly
                wrote on last edited by
                #11

                "Its src/3rdparty/webkit/JavaScriptCore/release/ and not as the above you have stated."

                But I don't have this folder.

                "Regarding your make error the above correction clears it, and gets you proper lib file."

                How do I do? Should I copy all files under src/3rdparty/webkit/Source/JavaScriptCore/ to src/3rdparty/webkit/JavaScriptCore/ ?

                Thank you

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  post4pavan
                  wrote on last edited by
                  #12

                  Hi Weilly,
                  [quote author="Weilly" date="1329450668"]"Should I copy all files under src/3rdparty/webkit/Source/JavaScriptCore/ to src/3rdparty/webkit/JavaScriptCore/ ?
                  [/quote]
                  I have used 4.7.4 and the directory list is like, what i have posted.

                  Simple thing is find jscore. and rename it to libjscore.a

                  Can you post here, the platform you are using to build Qt_Embedded? It might help?

                  Qt for Embedded! INTERESTING!

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    Weilly
                    wrote on last edited by
                    #13
                    1. My Deshtop PC OS:Ubuntu 10.10
                    2. Toolchian: arm-2007q1-10-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar
                    3. I modify qt-everywhere-opensource-arc-4.8.0/mkspecs/qws/linux-arm-g++/qmake.conf as below:
                      ====================================================

                    qmake configuration for building with arm-linux-g++

                    include(../../common/linux.conf)
                    include(../../common/gcc-base-unix.conf)
                    include(../../common/g++-unix.conf)
                    include(../../common/qws.conf)

                    modifications to g++.conf

                    QMAKE_CC = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc
                    QMAKE_CXX = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g++
                    QMAKE_LFLAGS += -Wl,-rpath=/home/tslib/lib
                    QMAKE_LINK = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-g++
                    QMAKE_LINK_SHLIB = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-guneabi-g++

                    modifications to linux.conf

                    QMAKE_AR = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-ar cqs
                    QMAKE_OBJCOPY = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-objcopy
                    QMAKE_STRIP = /usr/local/toolchain/arm-2007q1/bin/arm-none-linux-gnueabi-strip

                    QMAKE_INCDIR = /home/tslib/include
                    QMAKE_LIBDIR = /home/tslib/lib

                    load(qt_config)

                    1. qt4.8.0 download from
                      http://qt.nokia.com/downloads/embedded-linux-cpp
                    2. My configure line:
                      ./configure -prefix PATH -embedded arm -make tools -xplatform qws/linux-arm-g++ -v -qt-mouse-tslib -I’tslib PATH’/include -L’tslib PATH’/lib -qt-gfx-vnc

                    Thank you for your support

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      post4pavan
                      wrote on last edited by
                      #14

                      Hi Weilly,

                      I use Qt_Embedded for TI & Freescale ARM SoC's.
                      As far as I have seen, the webkit error is because of libarary only.
                      Possible errors could be with the tool chains, [ WRT what I have faced ],and it does not seem to be in your conf file, which seems to be OK wrt tool chains.
                      QMAKE_LINK has got some error in your specs, may be it should be g++ at end I guess.

                      What all I can say if you have a problem with webkit, is to rename the required library as posted earlier.
                      Regards :: Krishna Pavan

                      Qt for Embedded! INTERESTING!

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved