2016-09-06 91 views
-1

我建立在VS2012的项目,并得到以下错误,我已搜查谷歌,并没有发现太多类似的解决方案,请提供相同的解决方案,这是错误的代码片段 -构建项目时遇到错误?

 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 !!! 
+0

你建立的项目是什么?提供详细步骤来重现该问题。 –

+0

@strain通过提供用于构建的moc.exe的路径来解决问题。 – Gaurav

+0

您可以将其标记为答案。 –

回答

1

由于您没有告诉您正在尝试构建哪个项目,并且使用Google搜索“giit”没有给出有意义的结果,所以我给出了一个一般性建议。

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

+0

感谢您提供解决方案 – Gaurav

+1

您可以将其标记为答案。 –

相关问题