大家。我正在 Visual Studio 2013 中编译 DCMTK 3.6.1。我的操作系统是 Windows 8。我还使用了 CMake 3.2.3。我已经为 ALL_BUILD 项目成功编译了 x64 版本的 debug 和 release。但是,对于INSTALL项目,我无法编译它,因为出现以下错误:
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
根据这个link ,我需要管理员权限。但我已经在管理员模式下运行 Visual Studio。有人可以告诉我我可能做错了什么吗?非常感谢!
最佳答案
在 CMake GUI 中为 CMAKE_INSTALL_PREFIX 指定另一个值怎么样?这意味着,您绝对拥有写入权限的目录。
关于c++ - Visual Studio : MSB3073 error exited with code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31457306/