Build error Qt Declarative
-
wrote on 9 Mar 2017, 16:41 last edited by A Former User 3 Sept 2017, 17:35
i have compiling for raspberry pi 2 from 5.8 archive.
i follow wiki raspberry beginnerfirst 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 = defaultto
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 ............................ yesmake:
../../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 2can you help me please?
thanks
-
Hi,
Looks like you have a problem with the compiler itself. Which version are you using ?
-
wrote on 10 Mar 2017, 07:12 last edited by
gcc 4.7 linaro rpi gnueabihf , i have compiled 5.6 with this.
-
gcc 4.7 linaro rpi gnueabihf , i have compiled 5.6 with this.
@kickoune103 For Qt 5.8 you need at least GCC 4.8, see https://doc.qt.io/qt-5/supported-platforms-and-configurations.html
-
wrote on 10 Mar 2017, 15:44 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/toolswhy fixQualifiedLibraryPaths not work? prefer use sysroot-relativelinks.py
what is the toolchain to use?
1/5