"CMake was unable to find a build program corresponding to "MinGW Makefiles". "
-
cmake gibt mir folgende Fehlermeldung:
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_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:/OGLplus/CMakeFiles/CMakeCCompiler.cmake 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:/OGLplus/CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage Configuring incomplete, errors occurred!
(Windows)
Was tun?
-
(Obwohl MinGW/ und MinGW/bin im PATH sind)
-
Und Hinzufügen von MinGW/bin zu CMAKE_C_COMPILER_ENV_VAR CMAKE_C_COMPILER CMAKE_CXX_COMPILER_ENV_VAR CMAKE_CXX_COMPILER CMAKE_MAKE_PROGRAM hat auch nichts gebracht
-
AH! Man muss CMAKE_MAKE_PROGRAM auf "MinGW/bin/make.exe" setzen!
-
Na toll
Jetzt kommt:
The C compiler identification is unknown The CXX compiler identification is unknown Check for working C compiler: C:/MinGW/bin Check for working C compiler: C:/MinGW/bin -- broken CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "C:/MinGW/bin" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/OGLplus/CMakeFiles/CMakeTmp Run Build Command:C:/MinGW/bin/make.exe "cmTryCompileExec1060829375/fast" C:/MinGW/bin/make.exe -f CMakeFiles\cmTryCompileExec1060829375.dir\build.make CMakeFiles/cmTryCompileExec1060829375.dir/build make.exe[1]: Entering directory `C:/OGLplus/CMakeFiles/CMakeTmp' "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -E cmake_progress_report C:\OGLplus\CMakeFiles\CMakeTmp\CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec1060829375.dir/testCCompiler.c.obj C:\MinGW\bin -o CMakeFiles\cmTryCompileExec1060829375.dir\testCCompiler.c.obj -c C:\OGLplus\CMakeFiles\CMakeTmp\testCCompiler.c process_begin: CreateProcess(NULL, C:\MinGW\bin -o CMakeFiles\cmTryCompileExec1060829375.dir\testCCompiler.c.obj -c C:\OGLplus\CMakeFiles\CMakeTmp\testCCompiler.c, ...) failed. make (e=5): Zugriff verweigert make.exe[1]: *** [CMakeFiles/cmTryCompileExec1060829375.dir/testCCompiler.c.obj] Error 5 make.exe[1]: Leaving directory `C:/OGLplus/CMakeFiles/CMakeTmp' make.exe: *** [cmTryCompileExec1060829375/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:7 (project) Configuring incomplete, errors occurred!
-
Gut, Entfernen von MinGW/bin aus CMAKE_C_COMPILER_ENV_VAR CMAKE_C_COMPILER CMAKE_CXX_COMPILER_ENV_VAR CMAKE_CXX_COMPILER hat mich einen Schritt weitergebracht ...