构建 QtCore 时出错
我正在尝试构建 QtCore.lib 并收到这个奇怪的错误。
PRJ0019: A tool returned an error code from "MOC kernel\qtimer.cpp"
我能够构建 qtmain.lib 但无法进一步进行。
moc.exe 在 bin 文件夹中可用,并且路径已添加到我的 PATH 中。 kernel\qtimer.cpp 文件也存在于 corelib 文件夹中。
在这方面的任何帮助将不胜感激。我正在使用 Qt-4.5.2 源代码进行构建。
I am trying to build QtCore.lib and I get this weird error.
PRJ0019: A tool returned an error code from "MOC kernel\qtimer.cpp"
I am able to build qtmain.lib but not able tp go any further.
moc.exe is available in bin folder and the path is added to my PATH.
kernel\qtimer.cpp file is also present in corelib folder.
Any help in this regard will be appreciated. I am building with Qt-4.5.2 source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Qt 4.5.2 moc.exe 中存在一些问题。我发送给 Qt 支持的一封电子邮件提到它会修改未修改的文件。它可能还有更多问题,这些问题可能与您所遇到的问题有关。
抱歉,我记不起具体细节了。更糟糕的是,Qt 支持当时发送给我的链接已损坏。
他们建议使用 4.5.3。我认为我们最终还是停留在 4.5.1 上,尽管已迁移到 4.7.x,但我们今天仍在使用它。当我写这篇文章时正在发生。 :)
In Qt 4.5.2 moc.exe has some issues. An email I sent to Qt Support mentions it moc'ing files that were not modified. It could have further issues, which could be related to what you are experiencing.
Sorry I can't recall the exact details. To make things worse the link Qt Support had sent me at the time is broken.
They had suggested using 4.5.3. I think we ended up staying on 4.5.1, which we are still using today, although the move to 4.7.x. is occurring as I write this. :)