2
我被要求使用msbuild来构建一个基于qt的解决方案文件。我尝试使用下面的命令,并且我最终得到一个错误。我能够构建一个wix项目使用相同的命令如下所示。在windows 32位系统上使用msbuild构建一个解决方案文件
C:\Windows\Microsoft.NET\Framework\v4.0.30319>MSBuild "C:\path\to\my solution file\my.sln" /t:Build /p:Configuration=Release /p:Platform=Win32
有了这些,我得到一个错误说,
C:\Program Files\MSBuild\Microsoft.CppCommon.targets(155,5):
error MSB6006: "cmd.exe" exited with code 3. [c:\my\path to\project file\my.vcxproj]
的my.vcxproj各种文件的路径不被系统读取时Moc'ing.I得到下面的错误
InitializeBuildStatus:
Touching "Win32\Release\my.unsuccessfulbuild".
CustomBuild:
Moc'ing "dialog.h"...
The system cannot find the file path specified
Moc'ing "Centralwidget.h"...
The system cannot find the file path specified
等等....
我曾试图建立使用QMAKE过,但没有succeeded.Looking˚F orward的好建议,对于哪一种方法提前
里面有什么'my.vcxproj'?将.vcxproj中的相关部分添加到您的问题中,以及MSBuild生成的错误消息的详细输出。 – 2013-03-07 15:51:55