cmake 中 Error in configuration process, project files may be invalid

qt配置opencv时,用到cmake,弹出窗口“Error in configuration process, project files may be invalid”错误,主窗口显示“CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.”如下图:

cmake 中 Error in configuration process, project files may be invalid_第1张图片

上述错误源自没有找到正确的make工具,需要设置。

解决如下图:

将CMAKE_MAKE_PROGRAM的值改为qt的mingw32-make.exe,configure即可。

cmake 中 Error in configuration process, project files may be invalid_第2张图片

你可能感兴趣的:(opencv,qt,cmake)