错误:Cmake can';不生成openCV 我试图通过Windows 8中的代码块来安装OpenCV C++。 但我在步骤4中被阻止。当我尝试生成Cmake时,我出现以下错误: 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: 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: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file: C:/MinGW/CMakeFiles/3.3.0-rc1/CMakeCXXCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file: C:/MinGW/CMakeFiles/3.3.0-rc1/CMakeCCompiler.cmake CMake Error at CMakeLists.txt:63 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:63 (project): No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage Configuring incomplete, errors occurred! 只需做一件显而易见的事情,并指定C++、C++编译器和make工具:

错误:Cmake can';不生成openCV 我试图通过Windows 8中的代码块来安装OpenCV C++。 但我在步骤4中被阻止。当我尝试生成Cmake时,我出现以下错误: 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: 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: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file: C:/MinGW/CMakeFiles/3.3.0-rc1/CMakeCXXCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file: C:/MinGW/CMakeFiles/3.3.0-rc1/CMakeCCompiler.cmake CMake Error at CMakeLists.txt:63 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:63 (project): No CMAKE_C_COMPILER could be found. Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage Configuring incomplete, errors occurred! 只需做一件显而易见的事情,并指定C++、C++编译器和make工具:,opencv,cmake,codeblocks,Opencv,Cmake,Codeblocks,cmake-G“MinGW Makefiles”-DCMAKE_MAKE_PROGRAM=“D:/PROGRAM/MinGW/bin/mingw32 MAKE.exe”-DCMAKE_CXX_COMPILER=“D:/PROGRAM/MinGW/bin/mingw32 gcc.exe”-DWITH_IPP=OFF (ofc.你的道路会有所不同,但我希望你能理解) ((如果你从字里行间读到——opencv开发人员似乎对必须维护mingw的特殊性感到非常恼火,对它的支持似乎正在消失))谢谢你,问题已

cmake-G“MinGW Makefiles”-DCMAKE_MAKE_PROGRAM=“D:/PROGRAM/MinGW/bin/mingw32 MAKE.exe”-DCMAKE_CXX_COMPILER=“D:/PROGRAM/MinGW/bin/mingw32 gcc.exe”-DWITH_IPP=OFF

(ofc.你的道路会有所不同,但我希望你能理解)


((如果你从字里行间读到——opencv开发人员似乎对必须维护mingw的特殊性感到非常恼火,对它的支持似乎正在消失))

谢谢你,问题已经解决了,因为我没有“mingw32-make.exe”,所以在你的回复后,我将它安装到我的坐标中,现在它可以工作了