VS cmake 远程开发 opencv报错:CMake was unable to find a build program corresponding to “Ninja“.(换个构建方式)
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS cmake 远程开发 opencv报错:CMake was unable to find a build program corresponding to “Ninja“.(换个构建方式)相关的知识,希望对你有一定的参考价值。
构建的时候报错:
1> /usr/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="$HOME/.vs/vs_opencv_cmake_remote_test/5fadcd68-7b57-47e8-ae56-74e16e9eeead/out/install/Arnold_Opencv_Linux-GCC-Debug" "/home/arnold/.vs/vs_opencv_cmake_remote_test/5fadcd68-7b57-47e8-ae56-74e16e9eeead/src/CMakeLists.txt";
1> [CMake] CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
在cmake配置文件CMakeSettings.json
里把cmake生成器改成Unix Makefiles就可以了
参考文章:VS cmake远程调试ubuntu项目生成报错:“Does not match the generator used previously: Ninja“(删除.vs隐藏文件夹)
以上是关于VS cmake 远程开发 opencv报错:CMake was unable to find a build program corresponding to “Ninja“.(换个构建方式)的主要内容,如果未能解决你的问题,请参考以下文章
CMake编译OpenCV-4.1.2源码,使其可以在VS2012下进行图像处理开发
VS cmake远程调试ubuntu项目生成报错:“Does not match the generator used previously: Ninja“(删除.vs隐藏文件夹)
VS远程调试(Visual Studio)远程连接到linux cmake(跨平台开发)(适用于VS2019,且远程目标平台cmake版本大于等于3.8)
CMake编译OpenCV-3.2.0源码,使其可以在VS2013下进行图像处理开发的失败过程记录
CMake ERROR Failed to run MSBuild command: MSBuild.exe
Android OpenCVVisual Studio 创建支持 OpenCV 库的 CMake 工程 ② ( VS 中创建 CMake 工程 | CMake 工程中配置 OpenCV 头文件 )