Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 在构建项目过程中遇到错误?_Visual Studio_Visual C++_Visual Studio 2012_Msbuild - Fatal编程技术网

Visual studio 在构建项目过程中遇到错误?

Visual studio 在构建项目过程中遇到错误?,visual-studio,visual-c++,visual-studio-2012,msbuild,Visual Studio,Visual C++,Visual Studio 2012,Msbuild,我在VS2012中构建该项目,出现以下错误,我在Google上搜索过,没有找到太多类似的解决方案,请提供相同的解决方案,以下是错误代码片段- MOCing D:\giit\release_17\RTTBorrow\rttBorrowWindow.h 'moc.exe' is not recognized as an internal or external command, operable program or batch file.

我在VS2012中构建该项目,出现以下错误,我在Google上搜索过,没有找到太多类似的解决方案,请提供相同的解决方案,以下是错误代码片段-

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

因为你没有告诉我你要建立什么样的项目,而且谷歌搜索“giit”也没有给出有意义的结果,所以我给出了一个一般性的建议


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

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