我试图将cmake用于具有大量依赖项的项目。几周前,我从Windows7开始更新到Windows 10,现在我收到了这个错误。
考虑到我不会降级到Windows 7,我如何解决这个问题?
感谢所有
发布于 2015-10-06 09:26:44
我认为您使用的是Windows 8发布之前发布的Qt版本。可能是Qt 4.8.x。若要挂起警告,需要更新Qt版本或忽略该警告。
更新
如果警告消息造成了真正的麻烦,您可以尝试以下列方式过滤它:
#include <qapplication.h>
#include <stdio.h>
#include <stdlib.h>
void myMessageOutput(QtMsgType type, const char *msg)
{
switch (type) {
case QtDebugMsg:
fprintf(stderr, "Debug: %s\n", msg);
break;
case QtWarningMsg:
if (strstr(msg, "Qt: Untested Windows version") == 0) {
// Print warning if it is not "Qt: Untested Windows..."
fprintf(stderr, "Warning: %s\n", msg);
}
break;
case QtCriticalMsg:
fprintf(stderr, "Critical: %s\n", msg);
break;
case QtFatalMsg:
fprintf(stderr, "Fatal: %s\n", msg);
abort();
}
}
int main(int argc, char **argv)
{
qInstallMsgHandler(myMessageOutput);
QApplication app(argc, argv);
...
return app.exec();
}https://stackoverflow.com/questions/32966226
复制相似问题