Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Build error Qt Declarative

    Installation and Deployment
    qt5.8
    3
    5
    2280
    Loading More Posts
    • 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
      kickoune103 last edited by A Former User

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • K
          kickoune103 last edited by

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

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @kickoune103 last edited by

            @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 Reply Quote 1
            • K
              kickoune103 last edited by

              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 Reply Quote 0
              • First post
                Last post