首页 > 解决方案 > Visual Studio:MSB307 错误以代码 1 退出

问题描述

我正在从源头 构建flann 。https://github.com/mariusmuja/flann

我使用 CMAKE 配置并生成了解决方案文件。构建 ALL_BUILD 项目后,当我尝试构建 INSTALL 项目时,出现以下错误:

> 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.  INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets  133

我试图从堆栈溢出中解决,但对我没有任何作用。 Visual Studio:MSB3073 错误以代码 1 退出

在使用 cmake 进行配置期间,我单击了 cmake gui 的 Add Entry 按钮,在 Name 选项上写了 CMAKE_INSTALL_PREFIX,从下拉列表中选择了路径,并在 value 选项上写了文件夹位置(不同)。附加值是>> D:\feasibilityAnalysis2020_3\Dpointcloud3Dvision\VSPCL3D\FLANN1

仍然显示错误。

环境:Windows 10;视觉工作室社区 2015;CMAKE 3.14.1

标签: c++visual-studio-2015cmakeflann

解决方案


推荐阅读