<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<BR>
&nbsp;<BR>
When I use CMake to configure ITK, I encount the following problems. What should I do? I use VS2008. Thank you!<BR>
&nbsp;<BR>
==========================================================================================================<BR>Check for working C compiler using: Visual Studio 9 2008<BR>Check for working C compiler using: Visual Studio 9 2008 -- broken<BR>CMake Error at D:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):<BR>&nbsp; The C compiler "cl" is not able to compile a simple test program.<BR>
&nbsp; It fails with the following output:<BR>
&nbsp;&nbsp; Change Dir: D:/ITK-Bin/CMakeFiles/CMakeTmp<BR>
&nbsp; Run Build Command:D:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com<BR>&nbsp; CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec<BR>&nbsp;<BR>
&nbsp; Microsoft (R) Visual Studio Version 9.0.30729.1.<BR>
&nbsp; Copyright (C) Microsoft Corp.&nbsp; All rights reserved.<BR>
<BR>&nbsp; The evaluation period for Visual Studio Trial Edition ends in 90 days.<BR>
&nbsp; 1&gt;------ Build started: Project: cmTryCompileExec, Configuration: Debug<BR>&nbsp; Win32 ------<BR>
&nbsp; 1&gt;Compiling...<BR>
&nbsp; 1&gt;Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for<BR>&nbsp; 80x86<BR>
&nbsp; 1&gt;Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.<BR>
&nbsp; 1&gt;cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\""<BR>&nbsp; /D "_MBCS" /FD /RTC1 /MDd /Fo"cmTryCompileExec.dir\Debug\\"<BR>&nbsp; /Fd"D:\ITK-Bin\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb" /W3 /c /Zi<BR>&nbsp; /TC /Zm1000<BR>
&nbsp; 1&gt; ".\testCCompiler.c"<BR>
&nbsp; 1&gt;testCCompiler.c<BR>
&nbsp; 1&gt;Compiling manifest to resources...<BR>
&nbsp; 1&gt;Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1<BR>
&nbsp; 1&gt;Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.<BR>
&nbsp; 1&gt;Linking...<BR>
&nbsp; 1&gt;Embedding manifest...<BR>
&nbsp; 1&gt;Project : error PRJ0003 : Error spawning 'cmd.exe'.<BR>
&nbsp; 1&gt;Build log was saved at<BR>&nbsp; "<A href="file://d:\ITK-Bin\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm">file://d:\ITK-Bin\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm</A>"<BR>
&nbsp; 1&gt;cmTryCompileExec - 1 error(s), 0 warning(s)<BR>
&nbsp; ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped<BR>&nbsp; ==========<BR>&nbsp; <BR>&nbsp; CMake will not be able to correctly generate this project.<BR>Call Stack (most recent call first):<BR>&nbsp; CMakeLists.txt:8 (PROJECT)<BR>
Configuring incomplete, errors occurred!<BR>
============================================================================================================<BR>
&nbsp;<BR>
Ling Luo<BR>                                               <br /><hr />Hotmail: Free, trusted and rich email service. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Get it now.</a></body>
</html>