1

When i use Cmake3.8.2 to compile OpenCV(the version of my visual studio is 2017),it always has errors as follows:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler:
Build flags: Id flags:
The output was: The system cannot find the specified file .

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler:
Build flags: Id flags:
The output was: The system cannot find the specified file .

i've been confused for several days and it just doesn't work whatever i try. i'm looking for your help!

Tahaaaasi
  • 11
  • 1
  • 1
  • 2
  • 3
    CMake cannot find or identify your C and C++ compiler. Try setting them via CMAKE_C_COMPILER and CMAKE_CXX_COMPILER. – usr1234567 Jun 04 '17 at 07:23
  • `... and it just doesn't work whatever i try.` - **Show what have you tried**. There are numerous questions on Stack Overflow about the same error message. If you have read at least some of them (and their answers), than you have to check that your Visual Studio works and you use proper CMake generator for it (`Visual Studio 15 2017`). – Tsyvarev Jun 04 '17 at 08:33
  • Possible duplicate of [CMake Error at CMakeLists.txt:30 (project): No CMAKE\_C\_COMPILER could be found](https://stackoverflow.com/questions/32801638/cmake-error-at-cmakelists-txt30-project-no-cmake-c-compiler-could-be-found) – Florian Jun 05 '17 at 10:19

0 Answers0