Build error Qt Declarative



  • 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


  • Lifetime Qt Champion

    Hi,

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



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


  • Moderators



  • 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?


Log in to reply
 

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