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. Workarounds for various build issues with Qt5 beta1

Workarounds for various build issues with Qt5 beta1

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 4.1k 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.
  • K Offline
    K Offline
    kromain
    wrote on last edited by
    #1

    Hi,

    I've just finished building Qt5 beta1 for Embedded Linux with the Sourcery-G++ toolchain, using OpenEmbedded ("github repository":https://github.com/kromain/OpenEmbedded-Archos/tree/qt5 )

    My OE branch is quite old, so I've had to work around a few issues to make it build. This post is mainly intended as a time saver for other people who may hit the same issues.

    h2. configure immediately barfs with errors like "cannot stat file ..."

    -> your perl version is too old, Qt5 b1 needs at least 5.14.
    My OE came with a perl-native that was 5.8 which doesn't work for Qt. I've fixed it by adding
    @ASSUME_PROVIDED += "perl-native"@

    h2. [...]::isNull is not defined (from qvariant_p.h)

    -> C++11 support is detected while GCC doesn't properly support it
    Fixed by passing
    @-no-c++11@
    to the configure options

    h2. qopengles2ext.h:921: error: 'GLchar' has not been declared

    -> the GLES2/gl2.h header from the OpenGL driver is outdated, see discussion at http://comments.gmane.org/gmane.comp.lib.qt.devel/5867
    I personally fixed it by patching qopengl.h with
    @typedef char GLchar;@

    h2. cc1: fatal error: .pch/release-shared/QtGui: No such file or directory

    -> currently unresolved bug with the build of assembly files, see discussion at http://comments.gmane.org/gmane.comp.lib.qt.devel/5933
    Fixed by passing
    @-no-pch@
    to the configure options

    h2. ld: hidden symbol `void QQmlThread::postMethodToThread<QQmlDataBlob*, QQmlDataBlob*, QQmlDataLoaderThread>(void (QQmlDataLoaderThread::)(QQmlDataBlob), QQmlDataBlob* const&)' isn't defined

    -> bug with GCC versions < 4.4.x, see bug report at https://bugzilla.redhat.com/show_bug.cgi?id=493929
    Fixed by adding
    @QMAKE_CXXFLAGS_RELEASE += -fno-inline@
    in qtdeclarative/src/qml/qml.pro

    Feel free to add your own fixes or future ones in there.

    Romain Pokrzywka
    KDAB - http://www.kdab.com

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kromain
      wrote on last edited by
      #2

      Arf, this would make a lot more sense in the wiki instead, silly me.

      Contents moved to http://qt-project.org/wiki/Building-Qt-5-from-Git instead

      Romain Pokrzywka
      KDAB - http://www.kdab.com

      1 Reply Last reply
      0
      • B Offline
        B Offline
        brucewuu1988
        wrote on last edited by
        #3

        cool, I encounter this problem and got fixed here , thanks Kromain .

        as long as you love life , god loves you . Only love can change the world !

        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