c++ - Visual Studio : MSB3073 error exited with code 1

标签 c++ visual-studio dcmtk

大家。我正在 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/

相关文章:

c# - 如何使用 FileOpenDialog 在 C# 中打开文件

.net - 如何调试(步入)BinaryFormatter.Deserialize()?

c# - 我可以在 app.config 中参数化 log4net Appender 的类型名称吗?

c++ - Dicom Toolkit (DCMTK) - 如何获取窗口中心和宽度

c++ - 在 C++ 中使用 sprintf() 和 sscanf() 时出现意外行为?

c++ - 如何在介子构建中指定依赖版本?

c++ - 需要在 else 部分访问值为 5 的变量 x

linux - 如何将 Dcmtk 与 Qt for Linux 正确链接?

c++ - 带有 5 个参数的 WPARAM