2016-12-15 3 views
1

Ich baue Qt auf RaspberryPi mit Host-Desktop nach diesem Leitfaden https://wiki.qt.io/Raspberry_Pi_Beginners_Guide.Qt auf RaspberryPi - QXmlAttributes implizite Deklaration

Und wenn es um den Aufbau von Qt mit make Befehl ich eine seltsame Fehlermeldung anzeigt:

In file included from ../../include/QtXml/qxml.h:1:0, 
     from dom/qdom.cpp:54: 
../../include/QtXml/../../src/xml/sax/qxml.h:121:5: error: function ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’ defaulted on its first declaration with an exception-specification that differs from the implicit declaration ‘QXmlAttributes::QXmlAttributes(QXmlAttributes&&)’ 
Makefile:1338: recipe for target '.obj/qdom.o' failed 
make[2]: *** [.obj/qdom.o] Error 1 
make[2]: Leaving directory '/home/anon/opt/qt5/qtbase/src/xml' 
Makefile:295: recipe for target 'sub-xml-make_first' failed 
make[1]: *** [sub-xml-make_first] Error 2 
make[1]: Leaving directory '/home/anon/opt/qt5/qtbase/src' 
Makefile:46: recipe for target 'sub-src-make_first' failed 
make: *** [sub-src-make_first] Error 2 

Einige Spezifikation: -Host - Debian Jessie RPI - Raspbian

Was soll ich jetzt tun? Neustart von Anfang an gibt nichts.

Antwort

2

scheinbar Der erste Fehler von einem Konflikt in der Erklärung von "QXmlAttributes :: QXmlAttributes (QXmlAttributes & &)"

hatte ich den gleichen Fehler geführt wird: Funktion ‚QXmlAttributes :: QXmlAttributes (QXmlAttributes & &) 'vorbelegt auf seiner ersten Erklärung mit einer Ausnahme-Spezifikation, die von den impliziten Erklärung unterscheidet ‚QXmlAttributes :: QXmlAttributes (QXmlAttributes & &)‘

Ich schaffte es, dies zu lösen, indem rocommendations auf den folgenden Link folgt vor: Cross compiling for Raspberry Error

Die Lösung ist zu ändern:

1.Open die /qt5/qtbase/src/xml/sax/qxml.h Datei

2.Ändern: "QXmlAttributes (QXmlAttributes & &) Q_DECL_NOTHROW = default"

zu „QXmlAttributes (QXmlAttributes & &) = Standard "

Hoffe, das hilft!

Verwandte Themen