我的旧 Qt 项目文件(.pro 文件)可以正常工作;不创建任何文件(moc_ 或 .obj 文件)。为什么它退出构建步骤而不执行任何操作?
我有一个旧项目 (.pro) 文件。突然,我发现我的项目文件没有创建任何文件(moc_ 或 .obj 文件)。它在构建步骤中什么都不做。
编译输出显示,
Starting: "c:\installations\qt\4.7.4\desktop\qt\4.7.4\msvc2005\bin\qmake.exe" D:\iCon\Misc\POC\DOE\DOELib\DOELib.pro -r -spec win32-msvc2005 "CONFIG+=release"
The process "c:\installations\qt\4.7.4\desktop\qt\4.7.4\msvc2005\bin\qmake.exe" exited normally.
Starting: "C:\Installations\Qt\4.7.4\QtCreator\bin\jom.exe"
jom 1.0.3 - empower your cores
The process "C:\Installations\Qt\4.7.4\QtCreator\bin\jom.exe" exited normally.
I have an old project (.pro) file. Suddenly, I am seeing that my project file doesn't create any files (moc_ or .obj files). It comes out of the build step doing nothing.
the compile output reads,
Starting: "c:\installations\qt\4.7.4\desktop\qt\4.7.4\msvc2005\bin\qmake.exe" D:\iCon\Misc\POC\DOE\DOELib\DOELib.pro -r -spec win32-msvc2005 "CONFIG+=release"
The process "c:\installations\qt\4.7.4\desktop\qt\4.7.4\msvc2005\bin\qmake.exe" exited normally.
Starting: "C:\Installations\Qt\4.7.4\QtCreator\bin\jom.exe"
jom 1.0.3 - empower your cores
The process "C:\Installations\Qt\4.7.4\QtCreator\bin\jom.exe" exited normally.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过运行 qmake 来重新生成 makefile?我有时发现,如果我的 .pro 文件的日期早于 Makefile(可能是因为我在具有不同时钟设置的计算机之间移动文件),则 makefile 会变得陈旧并且不会重新生成 moc_* 和 ui_*。
Have you tried running qmake to regenerate the makefiles? I've sometimes found that if my .pro file has an earlier date than the Makefiles (possibly because I moved a file between computers with a different clock setting) that makefiles get stale and don't regenerate moc_* and ui_*.