[CMake] Problems with CMake on 64-bit Vista

Bill Hoffman bill.hoffman at kitware.com
Fri Jul 24 12:01:02 EDT 2009


Barry Hathaway wrote:
> I'm having a couple of problems using CMake on a 64-bit Vista system.
> The first is using the 32-bit binary download of CMake to build vxl.
> The vxl build tries a number of times to use TRY_RUN. The try (compile)
> part works, but the run part always fails with message complaining about a
> bad side-by-side configuration:
> 
> Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com 
> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
> Microsoft (R) Visual Studio Version 9.0.21022.8. Copyright (C) Microsoft 
> Corp. All rights reserved.
> 1>------ Build started: Project: cmTryCompileExec, Configuration: Debug 
> x64 ------
> 1>Compiling...
> 1>Microsoft (R) C/C++ Optimizing Compiler Version 15.00.21022.08 for x64
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>cl /Od /D "WIN32" /D "_WINDOWS" /D "VXL_HAS_TYPE_OF_SIZE" /D "_DEBUG" 
> /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /EHsc /RTC1 /MDd 
> /Fo"cmTryCompileExec.dir\Debug\\" 
> /Fd"C:/projects/reface/vxlbin-x64/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" 
> /W3 /c /Zi /TP   /Zm1000 -IC:/projects/reface/vxlbin-x64/CMakeTmp 1>   
> "..\..\..\fbi\Code\vxl\config\cmake\config\vxl_platform_tests.cxx" 
> 1>vxl_platform_tests.cxx
> 1>Compiling manifest to resources...
> 1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>Linking...
> 1>Embedding manifest...
> 1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 
> 1>Copyright (C) Microsoft Corporation.  All rights reserved.
> 1>Build log was saved at 
> "file://c:\projects\reface\vxlbin-x64\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm" 
> 1>cmTryCompileExec - 0 error(s), 0 warning(s) ========== Build: 1 
> succeeded, 0 failed, 0 up-to-date, 0 skipped ========== The application 
> has failed to start because its side-by-side configuration is incorrect. 
> Please see the application event log for more detail
> 
> Anyway, I figured it was an issue with a 32-bit CMake trying to run a 
> 64-bit program (why it want to
> compile it with a DEBUG flag is another issue). 

This should work, we (at Kitware) build vxl on 64 bit systems with 32 
bit cmake all the time???   What is the issue with a 32 bit cmake 
running a 64 bit program?

So I tried to build a
> 64-bit version of CMake with
> Visual Studio 2008.  I was able to run CMake on CMake without any 
> problems; however, the compile
> failed with many errors in the header files.  This occurred whether or 
> not I checked the build testing option.

We also build CMake on 64 bit systems, although you do not need it, it 
should work.   I would need to see the errors.   It sounds like you 
might have a mis-installed compiler or something else odd about your 
environment.


-Bill


More information about the CMake mailing list