查看完整版本: [-- 交叉编译QT5.7.0时提示‘QCoreApplication’ has not been declared --]

QTCN开发网 -> Qt嵌入式开发 -> 交叉编译QT5.7.0时提示‘QCoreApplication’ has not been declared [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

ys798823983 2018-04-10 08:30

交叉编译QT5.7.0时提示‘QCoreApplication’ has not been declared

交叉编译QT5.7.0的源码时,执行make之后,报错


mainwindow.cpp: In member function ‘void MainWindow::updateView()’:
mainwindow.cpp:180:14: error: ‘QCoreApplication’ has not been declared
         if (!QCoreApplication::arguments().contains(QStringLiteral("--no_render_alpha")))
              ^
make[5]: *** [.obj/mainwindow.o] Error 1

如图所示,不知道有没有碰到过或者可以帮忙指点一下的。感激不尽了!
[attachment=18697]



ys798823983 2018-04-10 08:31
刚接触QT,还请大神指点一二


查看完整版本: [-- 交叉编译QT5.7.0时提示‘QCoreApplication’ has not been declared --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled