【问题标题】:CGAL - building INSTALL .sln ,error MSB3073: The command "setlocal"CGAL - 构建 INSTALL .sln,错误 MSB3073:命令“setlocal”
【发布时间】:2018-05-20 10:56:01
【问题描述】:

我在编译 CGAL 时遇到问题,我按照以下步骤操作:http://www.cse.msu.edu/~ytong/CGAL_installation.ppt 我正在使用 VS2013,cgal 4.9.1,BOOST 1.59.0,Qt5.7.1

但是当我到达构建 INSTALL .sln 步骤时,它显示以下错误:

Error   1   error MSB3073: The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -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 5   INSTALL

输出信息:

   1>------ Rebuild All started: Project: INSTALL, Configuration: Debug Win32 ------
1>  -- Install configuration: "Debug"
1>  -- Up-to-date: C:/Program Files (x86)/CGAL/share/doc/CGAL-4.9.1/AUTHORS
1>  -- Up-to-date: C:/Program Files (x86)/CGAL/share/doc/CGAL-4.9.1/CHANGES
1>  CMake Error at cmake_install.cmake:39 (file):
1>    file INSTALL cannot set permissions on "C:/Program Files
1>    (x86)/CGAL/share/doc/CGAL-4.9.1/CHANGES"
1>  
1>  
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: The command "setlocal
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmErrorLevel
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: exit /b %1
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :cmDone
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(132,5): error MSB3073: :VCEnd" exited with code 1.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

有什么帮助吗?

【问题讨论】:

    标签: visual-studio qt cmake cgal


    【解决方案1】:

    file INSTALL 无法设置“C:/Program Files”的权限

    构建 INSTALL 目标必须在 Program Files 目录中创建文件,这需要提升权限。

    解决方案是在执行 INSTALL 构建时以管理员身份运行 Visual Studio。

    【讨论】:

    • 您不应该用一组全新的错误覆盖您的问题,因为现在我的回答不再有意义。在您的情况下,我的回答让您走得更远,您会投票赞成我的回答以帮助您,然后在您以管理员身份构建后发生的情况适当地附加到您的问题中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多