qt项目中的QtXml/qdom.h问题

qt项目中的QtXml/qdom.h问题,qt,qt-creator,fedora,fedora-27,Qt,Qt Creator,Fedora,Fedora 27,我正在QT creator Fedora 27上的一个项目中使用CGAL、libQGLViewer库 但它在库的头文件上显示错误 编译输出: /usr/include/QtXml/qdom.h:99:20: error: variable ‘Q_XML_EXPORT QDomImplementation’ has initializer but incomplete type class Q_XML_EXPORT QDomImplementation ^

我正在QT creator Fedora 27上的一个项目中使用CGAL、libQGLViewer库

但它在库的头文件上显示错误

编译输出:

/usr/include/QtXml/qdom.h:99:20: error: variable ‘Q_XML_EXPORT QDomImplementation’ has initializer but incomplete type
 class Q_XML_EXPORT QDomImplementation
                    ^~~~~~~~~~~~~~~~~~
/usr/include/QtXml/qdom.h:101:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/usr/include/QtXml/qdom.h:101:1: error: expected ‘}’ before ‘public’
/usr/include/QtXml/qdom.h:101:1: error: expected ‘,’ or ‘;’ before ‘public’
/usr/include/QtXml/qdom.h:103:30: error: ‘QDomImplementation’ does not name a type
     QDomImplementation(const QDomImplementation&);
                              ^~~~~~~~~~~~~~~~~~
/usr/include/QtXml/qdom.h:103:50: error: expected constructor, destructor, or type conversion before ‘;’ token
     QDomImplementation(const QDomImplementation&);
                                                  ^
/usr/include/QtXml/qdom.h:104:26: error: expected constructor, destructor, or type conversion before ‘;’ token
     ~QDomImplementation();
                          ^
/usr/include/QtXml/qdom.h:105:5: error: ‘QDomImplementation’ does not name a type
     QDomImplementation& operator= (const QDomImplementation&);
     ^~~~~~~~~~~~~~~~~~
/usr/include/QtXml/qdom.h:106:28: error: ‘QDomImplementation’ does not name a type
     bool operator== (const QDomImplementation&) const;
                            ^~~~~~~~~~~~~~~~~~
/usr/include/QtXml/qdom.h:106:49: error: non-member function ‘bool operator==(const int&)’ cannot have cv-qualifier
     bool operator== (const QDomImplementation&) const;
                                                 ^~~~~
/usr/include/QtXml/qdom.h:106:49: error: ‘bool operator==(const int&)’ must have an argument of class or enumerated type
/usr/include/QtXml/qdom.h:107:28: error: ‘QDomImplementation’ does not name a type
     bool operator!= (const QDomImplementation&) const;
                            ^~~~~~~~~~~~~~~~~~
/usr/include/QtXml/qdom.h:107:49: error: non-member function ‘bool operator!=(const int&)’ cannot have cv-qualifier
     bool operator!= (const QDomImplementation&) const;
                                                 ^~~~~
/usr/include/QtXml/qdom.h:107:49: error: ‘bool operator!=(const int&)’ must have an argument of class or enumerated type
/usr/include/QtXml/qdom.h:110:69: error: non-member function ‘bool hasFeature(const QString&, const QString&)’ cannot have cv-qualifier
     bool hasFeature(const QString& feature, const QString& version) const;
                                                                     ^~~~~
/usr/include/QtXml/qdom.h:121:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/usr/include/QtXml/qdom.h:123:51: error: expected constructor, destructor, or type conversion before ‘;’ token
     QDomImplementation(QDomImplementationPrivate*);
                                                   ^
/usr/include/QtXml/qdom.h:125:5: error: ‘friend’ used outside of class
     friend class QDomDocument;
     ^~~~~~
/usr/include/QtXml/qdom.h:126:1: error: expected declaration before ‘}’ token
 };
所有错误都出现在QtXml/qdom.h文件中,我不知道如何解决它们 谢谢你的帮助,
谢谢

您最好提供帮助以获得更好的帮助您使用的是什么版本的Qt和QGLViewer?@mgimeno QGLViewer库版本2.6.3。它应该与QGLViewer 2.6一起使用,我们在演示中使用了一段时间。不过,您至少需要Qt5.4。您可以在CGAL的演示中找到示例设置,比如在包AABB_树中。仔细看看里面的CMakeLists.txt,我想你是不见了。无论如何,这些错误看起来像是由以前包含的文件中缺少的
}
生成的,可能值得检查。