The CXX compiler identification is MSVC 16.0.30319.1 The C compiler identification is MSVC 16.0.30319.1 Check for working CXX compiler using: Visual Studio 10 Win64 Check for working CXX compiler using: Visual Studio 10 Win64 -- broken CMake Error at C:/Users/chen/Downloads/cmake-2.8.11.2-win32-x86/cmake-2.8.11.2-win32-x86/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message): The C++ compiler "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/x86_amd64/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/opencv_self_buid_10/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec4006816612
Microsoft (R) Visual Studio Version 10.0.30319.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: cmTryCompileExec4006816612, Configuration: Debug x64 ------
1> Microsoft (R) C/C++ Optimizing Compiler Version 16.00.30319.01 for x64
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /GR /Fo"cmTryCompileExec4006816612.dir\Debug\" /Fd"C:/opencv_self_buid_10/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4006816612.pdb" /Gd /TP /errorReport:prompt testCXXCompiler.cxx
1>
1> testCXXCompiler.cxx
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========