CMake error : The C++ compiler "C:/MinGW/bin/g++.exe" is not able to compile a simple test program.
CMakeError : The CXX compiler identification could not be found in "C:/opencv/build/x86/mingw/CMakeFiles/3.14.0/CompilerIdCXX/a.exe"
Determining if the CXX compiler works failed with the following output: Change Dir: C:/opencv/build/x86/mingw/CMakeFiles/CMakeTmp
Run Build Command(s):C:/CMake/bin/cmake.exe cmTC_6e3c4/fast CMake Error: The source directory "C:/opencv/build/x86/mingw/CMakeFiles/CMakeTmp/cmTC_6e3c4/fast" does not exist. Specify --help for usage, or press the help button on the CMake GUI.
CMakeOutput : The system is: Windows - 10.0.16299 - AMD64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: C:/MinGW/bin/g++.exe Build flags: Id flags:
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.exe"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: C:/MinGW/bin/g++.exe Build flags: Id flags: -c
The output was: 0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "CMakeCXXCompilerId.o"
The CXX compiler identification is GNU, found in "C:/opencv/build/x86/mingw/CMakeFiles/3.14.0/CompilerIdCXX/CMakeCXXCompilerId.o"
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: C:/MinGW/bin/gcc.exe Build flags: Id flags:
The output was: 0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"
The C compiler identification is GNU, found in "C:/opencv/build/x86/mingw/CMakeFiles/3.14.0/CompilerIdC/a.exe"