构建 QtCore 时出错

发布于 2024-12-21 21:26:44 字数 301 浏览 2 评论 0原文

我正在尝试构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夕色琉璃 2024-12-28 21:26:44

在 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. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文