每个人。我正在 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
根据这个link https://social.msdn.microsoft.com/Forums/vstudio/en-US/02d24b1e-65ff-4177-bdf2-0d1e0fb8cdf6/error-msb3073-and-my-build-exited-with-code-1,我需要管理员权限。但我已经在管理模式下运行 Visual Studio。有人可以告诉我我可能做错了什么吗?非常感谢!
在 CMake GUI 中为 CMAKE_INSTALL_PREFIX 指定另一个值怎么样?这意味着您绝对拥有写入权限的目录。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)