编译时出错Qt:nmake致命错误U1077 [英] Error when compiling Qt: nmake fatal error U1077

查看:9576
本文介绍了编译时出错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 .org



    祝你好运。


    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".

    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.org

    Good luck.

    这篇关于编译时出错Qt:nmake致命错误U1077的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆