编译时出错Qt:nmake致命错误U1077

编程入门 行业动态 更新时间:2024-10-26 21:26:05
本文介绍了编译时出错Qt:nmake致命错误U1077的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图编译Qt 4.7.4,但我总是得到这个错误:

mt.exe:一般错误c101008d:无法将更新的清单写入文件release\tutorial5.exe的资源。该系统找不到指定的文件。 NMAKE:致命错误U1077:'C:\Program文件(x86)\Microsoft SDKs\Windows \v7.0A\bin\mt.exe':返回代码'0x1f'停止。 NMAKE:致命错误U1077:'C:\Program文件(x86)\Microsoft Visual Studio 10.0 \VC\BIN\\\make.exe':返回代码'0x2'停止。 NMAKE:致命错误U1077:'cd':返回代码'0x2'停止。 NMAKE:致命错误U1077:'cd':返回代码'0x2'停止。 NMAKE:致命错误U1077:'cd':返回代码'0x2'停止。

使用Visual Studio命令提示符我执行这些命令:

configure -debug-and-release -opensource -platform win32-msvc2010 nmake

我可以如何解决此错误?

解决方案

exe没有正确或完全建立,exe永远不会创建。 Mt.exe是一个Windows后构建工具,用于生成已签名的文件和目录。它返回一个错误,因为它找不到该文件。

您的问题的解决方案涉及从构建中排除演示和教程,或找到源中的错误代码教程5,使其正确构建。或者你甚至可以把一个虚拟版本的tutorial5.exe,只是为了看看是否是唯一的错误。

有可能是源代码中的错误与Windows的默认编译工具(MingW)和msvs2010编译器之间的区别以及他们尝试处理一些Windows特定代码的方式有些不同。

如何排除示例当构建Qt

其他在线类似项目的人使用标志sub-src从nmake构建调用中排除了示例。 p>

  • 错误nmaking 4.7.2 with msvs2010

  • 如何构建Qt 4.3.4没有示例和演示

  • $什么是tutorial5.exe

    这里是Qt的默认构建中的位置 release / tutorial5.exe :

    C:\QtSDK\Examples \4.7\qtestlib\ tutorial5

    这里它在文档中: Qt 4.7:第5章:编写基准

    您可能应该向Qt项目提交描述问题的故障单: bugreports.qt-project

    祝你好运。

    I am trying to compile Qt 4.7.4, but I always get this error:

    mt.exe: general error c101008d: Failed to write the updated manifest to the resource of file "release\tutorial5.exe". The system cannot find the file specified. NMAKE : fatal error U1077: '"C:\Program Files(x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe"' : return code '0x1f' Stop. NMAKE : fatal error U1077: '"C:\Program Files(x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.

    Using the Visual Studio Command prompt I executed these commands:

    configure -debug-and-release -opensource -platform win32-msvc2010 nmake

    What can I do to resolve this error?

    解决方案

    So apparently tutorial5.exe is failing to build properly, or completely, and the exe never gets created. Mt.exe is a windows post-build tool used for generating signed files and catalogs. It returns an error because it can't find the file.

    The solution to your issue involves excluding the demos and tutorials from your build, or finding the bug in the source code for tutorial 5 so that it builds properly. Or you could even put a dummy version of tutorial5.exe there just to see if that is the only error that comes up.

    Chances are that the bug in the source code has something to do with the difference between the default compiler tool for Qt in Windows (MingW) and the msvs2010 compiler and the way they are trying to handle some windows specific code.

    How to Exclude the Examples When Building Qt

    Other people online with similar projects have excluded the examples from the nmake build call using the flag "sub-src".

    • Error nmaking 4.7.2 with msvs2010

    • How to build Qt 4.3.4 without examples and demos

    What is tutorial5.exe

    Here is the location in the default build of Qt for release/tutorial5.exe:

    C:\QtSDK\Examples\4.7\qtestlib\tutorial5

    and here it is in the documenation: Qt 4.7: Chapter 5: Writing a Benchmark

    You probably should submit a ticket describing the problem to the Qt project: bugreports.qt-project

    Good luck.

更多推荐

编译时出错Qt:nmake致命错误U1077

本文发布于:2023-10-19 19:13:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508498.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Qt   nmake

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!