<br><div>Hi,</div><div><br></div><div><br></div><div>I experience a problem while generating the ITK binaries using CMake. Could anyone please tell me the reason and how to rectify it? I have used an earlier version of ITK and never experienced this error while generating the binaries before. </div>
<div><br></div><div>The error I get is as follows</div><div><br></div><div><br></div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Check for working C compiler using: Visual Studio 8 2005 Win64</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Check for working C compiler using: Visual Studio 8 2005 Win64 -- broken</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000">CMake Error at D:/ITK_FILES/cmake-2.8.4-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> The C compiler "cl" is not able to compile a simple test program.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> It fails with the following output:</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Change Dir: D:/ITK/Bin/CMakeFiles/CMakeTmp</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> </span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Run Build Command:C:\PROGRA~2\MICROS~1\Common7\IDE\<a href="http://devenv.com">devenv.com</a></span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> </span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Microsoft (R) Visual Studio Version 8.0.50727.42.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Copyright (C) Microsoft Corp 1984-2005. All rights reserved.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> ------ Build started: Project: cmTryCompileExec, Configuration: Debug x64</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> ------</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Compiling...</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50727.42 for x64</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Copyright (C) Microsoft Corporation. All rights reserved.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> cl /Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> "_MBCS" /FD /RTCs /MDd /Fo"cmTryCompileExec.dir\Debug\\"</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> /Fd"D:\ITK\Bin\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb" /W3 /c /Zi</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> /TC /Zm1000</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> .\testCCompiler.c</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> testCCompiler.c</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Compiling manifest to resources...</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Linking...</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Embedding manifest...</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Project : error PRJ0003 : Error spawning 'cmd.exe'.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> Build log was saved at</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> "file://d:\ITK\Bin\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> cmTryCompileExec - 1 error(s), 0 warning(s)</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> ==========</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> </span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> </span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> CMake will not be able to correctly generate this project.</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000">Call Stack (most recent call first):</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><span style="color:#ff0000"> CMakeLists.txt:8 (PROJECT)</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;color:rgb(255,0,0)"></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Configuring incomplete, errors occurred!</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px"><br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">
<br></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Thanks a lot</p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px">Lisa</p></div>