VS2015编译VTK8.1,前面都还顺利,到最后一步了,仅生成install步骤出错了,错误MSB3073命令“setlocal……
求问这错误什么意思,怎么解决?谢谢!
附上错误提示:
严重性 代码 说明 项目 文件 行 禁止显示状态
错误 MSB3073 命令“setlocal
D:\cmake\cmake-3.11.0-win32-x86\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd”已退出,代码为 1。 INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133
出错行的代码:
<Exec Command="%(PostBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PostBuildEvent.Command)' != ''"/>
-----------------------------------------------
问题已经解决,统一回答下。我也是在机缘巧合中偶然发现了解决方法。
解决方法:
这几种软件之间版本不匹配,改用:
VS2015+VTK6.3.0 + cmake-3.11.0-win32-x86
只要选用这些版本,再按照教程来,在我的电脑上,vtk的编译再没出过问题。
本人电脑inspiron7577,windows7系统