简体   繁体   English

Qt Creator无法构建任何东西

[英]Qt Creator cannot build anything

I have Qt Creator, from the About dialog: 在“关于”对话框中,我有Qt Creator:

Qt Creator 3.6.1
Based on Qt 5.6.0 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)

Built on Mar 14 2016 09:35:54

From revision 5587df79a1

I have been working for months on a number of projects which until today compiled without problems, I am using Qt 5.6.0, sometime this morning an error has occurred. 我已经在多个项目上工作了几个月,直到今天为止没有问题,我正在使用Qt 5.6.0,今天早晨某个时候发生了错误。 At first glance I thought it was something in my project, however having searched and compared versions in Git I could not find any problems. 乍一看,我认为这是我的项目中的东西,但是在Git中搜索并比较了版本后,我发现没有任何问题。 I then tried to build other projects and the same errors came up. 然后,我尝试构建其他项目,并且出现相同的错误。 I then sought help in-house from another Qt developer we tried building one of the examples 'terminal' this also now shows the same errors, for some unexplained reason I cannot build any projects on my development system. 然后,我从另一位Qt开发人员寻求内部帮助,我们尝试构建一个示例“终端”,现在也显示了相同的错误,由于某些无法解释的原因,我无法在开发系统上构建任何项目。

I'm using Red Hat Enterprise Linux Workstation release 7.2 (Maipo) 我正在使用Red Hat Enterprise Linux Workstation 7.2版(Maipo)

I did a RedHat system update earlier today, however I had compiled and build projects post this update, then all of a sudden something has happened that stops the build process, typical errors displayed when trying to build: 我今天早些时候进行了RedHat系统更新,但是我已经在此更新后编译并构建了项目,然后突然发生了一些事情,停止了构建过程,在尝试构建时显示了典型错误:

In file included from /home/fcs/Qt/5.6/gcc_64/include/QtCore/qcoreapplication.h:40:0,
from /home/fcs/Qt/5.6/gcc_64/include/QtWidgets/qapplication.h:37,
from /home/fcs/Qt/5.6/gcc_64/include/QtWidgets/QApplication:1,
from ../terminal/main.cpp:35:
/home/fcs/Qt/5.6/gcc_64/include/QtCore/qobject.h:90:17: error: field 'children' has incomplete type
QObjectList children;
^
/home/fcs/Qt/5.6/gcc_64/include/QtCore/qobject.h: In member function 'const QObjectList& QObject::children() const':
/home/fcs/Qt/5.6/gcc_64/include/QtCore/qobject.h:190:64: error: 'class QObjectData' has no member named 'children'
inline const QObjectList &children() const { return d_ptr->children; }

Is there a clean up or built in integrity check/repair tool I can run that will fix whatever is wrong? 我可以运行是否有清理或内置的完整性检查/修复工具来修复任何错误?

I am currently running the Qt Maintenance tool, hoping that this will find and resolve any issues, it is presently downloading 1.2GB of updates. 我目前正在运行Qt维护工具,希望它能够找到并解决所有问题,目前正在下载1.2GB的更新。

To be very clear, this issue is not related to my project, the behaviour does the same with a stock project from the Qt examples. 非常清楚,这个问题与我的项目无关,行为与Qt示例中的股票项目相同。 So something is now broken and I would like to know how to fix it. 所以有些东西现在坏了,我想知道如何解决。

在运行Qt维护工具并允许它完成所有软件的更新之后,现在所有内容都可以再次使用,除了与系统更新之一可能发生冲突之外,我不知道是什么导致了它失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM