RaspberryPi上的QT -QXMLATTRIBUTS隐式声明
Qt on RaspberryPi - QXmlAttributes implicit declaration
我正在使用主机桌面在RaspberryPi上构建QT,以下本指南https://wiki.qt.io/raspberry_pi_beginners_guide。
使用make
命令构建QT时,我有一个奇怪的错误:
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
一些规范:主持人 - Debian Jessierpi -raspbian
我现在该怎么办?从头重新启动安装一无所获。
第一个错误显然是由声明" qxmlattributes :: qxmlattributes(qxmlattributes&&&&&quort)造成的。;)'
我设法通过以下链接中遵循Rocommendations:Raspberry错误
来解决此问题解决方案是更改:
1.open the/qt5/qtbase/src/xml/sax/qxml.h file
2. change:'qxmlattributes(qxmlattributes&&)q_decl_nothrow = default&quote&quort;
to 'qxmlattributes(qxmlattributes&&)=默认值;
希望这会有所帮助!
相关文章:
- .cpp和.h文件中的模板专用化声明
- 未在作用域中声明unordered_map
- C++避免重复声明的语法是什么
- 如何确保C++函数在定义之前声明(如override关键字)
- 错误:未在此范围内声明'reverse'
- 奇怪的(对我来说)返回声明 - 在谷歌上找不到任何关于它的信息
- 为什么在定义函数之前先声明它
- 如何声明特征矩阵,然后通过嵌套循环初始化它
- #ifdef和未声明的标识符
- 没有显式声明的int[]中的foreach
- 在基于范围的for循环中使用结构化绑定声明
- 在将变量声明为引用时,堆在释放后使用
- C++:无法访问声明的受保护成员
- 为什么我不能在一个类的不同行中声明和定义成员变量?
- 我不明白为什么我声明一个空的内部结构并将其传递给构造函数
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- 在函数内部的声明中初始化数组,并在外部使用它
- Visual Studio中的函数声明和函数定义问题
- c++类声明时,相同的例程,不同的成员变量类型
- 在 .h 文件中的类中声明静态变量和在.cpp文件中声明"global"变量有什么区别