【问题标题】:Facing an Error during Building the project?在构建项目期间面临错误?
【发布时间】:2017-01-13 10:50:20
【问题描述】:

我在VS2012中构建项目,出现以下错误,我在谷歌上搜索过,没有找到很多类似的解决方案,请提供相同的解决方案,这里是错误代码sn-p -

        MOCing D:\giit\release_17\RTTBorrow\rttBorrowWindow.h
         'moc.exe' is not recognized as an internal or external command,
         operable program or batch file.
          MOCing D:\giit\release_17\RTTBorrow\rttListView.h
         'moc.exe' is not recognized as an internal or external command,
         operable program or batch file.
         MOCing D:\giit\release_17\RTTBorrow\rttpassworddialog.h
         'moc.exe' is not recognized as an internal or external command,
         operable program or batch file.
          MOCing D:\giit\release_17\RTTBorrow\rttpassworddialogimpl.h
          'moc.exe' is not recognized as an internal or external command,
          operable program or batch file.
          MOCing D:\giit\release_17\RTTBorrow\rttTextEdit.h
         'moc.exe' is not recognized as an internal or external command,
          operable program or batch file.
        C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 9009.
Thanks !!!

【问题讨论】:

  • 你构建的项目是什么?提供重现该问题的详细步骤。
  • @strain 问题通过提供构建的 moc.exe 路径得到解决。
  • 您可以将其标记为答案。

标签: visual-studio visual-c++ visual-studio-2012 msbuild


【解决方案1】:

由于您没有说明您正在尝试构建什么项目,并且在谷歌上搜索“giit”并没有给出有意义的结果,所以我给出了一个一般性建议。

moc.exe 是 Qt 构建系统的一部分,因此您可以尝试安装它。它的网址是http://qt.io

【讨论】:

  • 感谢您提供解决方案
猜你喜欢
  • 2018-06-17
  • 1970-01-01
  • 1970-01-01
  • 2021-10-28
  • 1970-01-01
  • 2022-10-23
  • 2020-10-21
  • 2020-02-21
  • 1970-01-01
相关资源
最近更新 更多