Visual Studio:使用代码1退出了MSB3073错误 [英] Visual Studio: MSB3073 error exited with code 1
问题描述
每个人.我正在Visual Studio 2013中编译DCMTK 3.6.1.我的操作系统是Windows8.我还使用了CMake 3.2.3.我已经为ALL_BUILD项目成功编译了x64版本的debug和release.但是,对于INSTALL项目,我无法编译它,因为发生以下错误:
everyone. I am compiling DCMTK 3.6.1 in Visual Studio 2013. My OS is Windows 8. I also used CMake 3.2.3. I have already successfully compiled both x64 versions of debug and release for the ALL_BUILD project. However, for the INSTALL project, I can't compile it because the following error occurs:
Error 1 error MSB3073: The command "setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -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" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 132
According to this link, I need admin rights. But I am already running Visual Studio in Admin mode. Can someone please enlighten me on what I might be doing wrong? Thank you very much!
推荐答案
如何在CMake GUI中为CMAKE_INSTALL_PREFIX指定另一个值?这意味着您肯定拥有写访问权的目录.
What about specifying another value for CMAKE_INSTALL_PREFIX in the CMake GUI? That means, a directory where you definitely have write access.
这篇关于Visual Studio:使用代码1退出了MSB3073错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!