每个人。我正在 Visual Studio 2013 中编译 DCMTK 3.6.1。我的操作系统是 Windows 8。我还使用了 CMake 3.2.3。我已经为 ALL_BUILD 项目成功编译了 x64 版本的调试和发布。但是,对于 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
根据此 链接,我需要管理员权限。但我已经在管理员模式下运行 Visual Studio。有人可以告诉我我可能做错了什么吗?非常感谢!
原文由 noobalert 发布,翻译遵循 CC BY-SA 4.0 许可协议
在 CMake GUI 中为 CMAKE_INSTALL_PREFIX 指定另一个值怎么样?这意味着,您绝对具有写入权限的目录。