Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Build error Qt Declarative
QtWS25 Last Chance

Build error Qt Declarative

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt5.8
5 Posts 3 Posters 2.7k Views
  • 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
    kickoune103
    wrote on last edited by A Former User
    #1

    i have compiling for raspberry pi 2 from 5.8 archive.
    i follow wiki raspberry beginner

    first error build qt5base
    error: function ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’

    I opened the /qt5/qtbase/src/xml/sax/qxml.h file and removed and changed:
    QXmlAttributes(QXmlAttributes &&) Q_DECL_NOTHROW = default

    to

    QXmlAttributes(QXmlAttributes &&) = default

    ==> solve

    now, i have compiling qt base, qtimageformats qtsvg qtsbackend (not found), qt script ok , qt xmlpatterns,

    but qt declarative error in make

    qmake:

    Configure summary:

    Qt QML:
    QML interpreter ........................ yes
    QML network support .................... yes
    Qt Quick:
    Direct3D 12 ............................ no
    AnimatedImage item ..................... yes
    Canvas item ............................ yes
    Support for Quick Designer ............. yes
    Flipable item .......................... yes
    GridView item .......................... yes
    ListView item .......................... yes
    Path support ........................... yes
    PathView item .......................... yes
    Positioner items ....................... yes
    ShaderEffect item ...................... yes
    Sprite item ............................ yes

    make:
    ../../include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/compiler/qqmlirbuilder_p.h: In lambda function:
    ../../include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/compiler/qqmlirbuilder_p.h:447:29: internal compiler error: in get_expr_operands, at tree-ssa-operands.c:1035
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See https://bugs.launchpad.net/gcc-linaro for instructions.
    Makefile:31911 : la recette pour la cible « .obj/qqmltypeloader.o » a échouée
    make[2]: *** [.obj/qqmltypeloader.o] Erreur 1
    make[2] : on quitte le répertoire « /home/thibaud/Bureau/rpi/qt-everywhere-opensource-src-5.8.0/qtdeclarative/src/qml »
    Makefile:50 : la recette pour la cible « sub-qml-make_first-ordered » a échouée
    make[1]: *** [sub-qml-make_first-ordered] Erreur 2
    make[1] : on quitte le répertoire « /home/thibaud/Bureau/rpi/qt-everywhere-opensource-src-5.8.0/qtdeclarative/src »
    Makefile:45 : la recette pour la cible « sub-src-make_first » a échouée
    make: *** [sub-src-make_first] Erreur 2

    can you help me please?

    thanks

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Looks like you have a problem with the compiler itself. Which version are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kickoune103
        wrote on last edited by
        #3

        gcc 4.7 linaro rpi gnueabihf , i have compiled 5.6 with this.

        jsulmJ 1 Reply Last reply
        0
        • K kickoune103

          gcc 4.7 linaro rpi gnueabihf , i have compiled 5.6 with this.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @kickoune103 For Qt 5.8 you need at least GCC 4.8, see https://doc.qt.io/qt-5/supported-platforms-and-configurations.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • K Offline
            K Offline
            kickoune103
            wrote on last edited by
            #5

            i have KUBUNTU 16.04 64 bits.
            in wiki beginner use for compile this linaro 4.7 or in supported plasform 4.6.3 for qt5.6
            i don't understand, is not target os dependent?

            for 5.8 GCC 4.8.2...

            other tuto use the toolchain
            https://github.com/raspberrypi/tools

            why fixQualifiedLibraryPaths not work? prefer use sysroot-relativelinks.py

            what is the toolchain to use?

            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