[CMake] cmake 2.8.10 broke Visual Studio 10 generator for me

Richard Browne cmake at richb.net
Mon May 13 21:26:20 EDT 2013


Hello there.

Compiling open source project OpenCV-2.3.1 on Windows works with cmake 2.8.9. The other day I updated to cmake 2.8.10, and it stopped working. If I go back to cmake 2.8.9 it works again.

Has anyone seen this or can anyone point me in the right direction to start investigating? I'm not familiar with cmake.

The command I use is "C:> cmake cmake -G "Visual Studio 10" with a few -D defines. cmake 2.8.10 tells me the compiler is unknown:

Setting environment for using Microsoft Visual Studio 2010 x86 tools.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) 
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) 
-- Parsing 'cvconfig.h.cmake'
-- ffmpeg output dir: C:/src/play/OpenCV-2.3.1/bin/$(Configuration)
-- 
-- General configuration for opencv 2.3.1 =====================================
-- 
--     Built as dynamic libs?:     NO
--     Compiler:                   CMAKE_CXX_COMPILER-NOTFOUND
--     C++ flags (Release):             
--     C++ flags (Debug):               
--     Linker flags (Release):           
--     Linker flags (Debug):             

cmake 2.8.9 gives the expected output.

Setting environment for using Microsoft Visual Studio 2010 x86 tools.
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
CMake Error at C:/src/timestone/3rdparty/cmake/2.8.9-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (TRY_COMPILE):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

  Unable to find the executable at any of:

    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/cmTryCompileExec470315884.exe
    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec470315884.exe
    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/Development/cmTryCompileExec470315884.exe

Call Stack (most recent call first):
  C:/src/timestone/3rdparty/cmake/2.8.9-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:40 (project)


-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
CMake Error at C:/src/timestone/3rdparty/cmake/2.8.9-win32-x86/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:31 (TRY_COMPILE):
  Cannot copy output executable

    ''

  to destination specified by COPY_FILE:

    'C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin'

  Unable to find the executable at any of:

    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/cmTryCompileExec3518155222.exe
    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec3518155222.exe
    C:/src/play/OpenCV-2.3.1/CMakeFiles/CMakeTmp/Development/cmTryCompileExec3518155222.exe

Call Stack (most recent call first):
  C:/src/timestone/3rdparty/cmake/2.8.9-win32-x86/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:64 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:40 (project)


-- Detecting CXX compiler ABI info - done
-- Could NOT find PythonInterp (missing:  PYTHON_EXECUTABLE) 
-- Could NOT find PythonLibs (missing:  PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) 
-- Parsing 'cvconfig.h.cmake'
-- ffmpeg output dir: C:/src/play/OpenCV-2.3.1/bin/$(Configuration)
-- 
-- General configuration for opencv 2.3.1 =====================================
-- 
--     Built as dynamic libs?:     NO
--     Compiler:                   C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/cl.exe
--     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4   /EHsc- /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy  /MD /O2 /Ob2 /D NDEBUG  /Zi /arch:SSE /arch:SSE2 /Oi 
--     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4   /EHsc- /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy  /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1  
--     Linker flags (Release):      /STACK:10000000 /machine:X86    /INCREMENTAL:NO  /debug 
--     Linker flags (Debug):        /STACK:10000000 /machine:X86    /debug /INCREMENTAL  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130514/e38637c4/attachment-0001.htm>


More information about the CMake mailing list