<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV dir=ltr align=left><FONT face=Arial size=2>Hello <FONT
color=#0000ff><SPAN class=956095318-11122007> CMake users &
developers</SPAN><SPAN
class=956095318-11122007>, </SPAN></FONT><BR><BR>I've been trying to
build <SPAN class=213292820-28112007>I</SPAN>TK on my machine<SPAN
class=605440409-02122007>, and obviously is not related to what is
built,</SPAN> and <SPAN class=213292820-28112007>CMake
produces</SPAN> <BR><SPAN class=213292820-28112007>some </SPAN>errors at
the configuration step. Perhaps someone<SPAN
class=213292820-28112007>else</SPAN> has <SPAN
class=213292820-28112007>already </SPAN><SPAN
class=213292820-28112007>encountered</SPAN> <BR><SPAN
class=213292820-28112007>similar type of </SPAN><SPAN
class=213292820-28112007>problem </SPAN>?<BR><BR>My setup:<BR>Windows
XP, <SPAN class=213292820-28112007>ITK 3.4.0 </SPAN>Latest Release, CMake
2.<SPAN class=213292820-28112007>4</SPAN>.<SPAN
class=039041608-16122007>7</SPAN>, Visual Studio .NET 200<SPAN
class=213292820-28112007>5</SPAN> <BR>w/ Visual C++ <SPAN
class=213292820-28112007>8</SPAN><BR><BR><SPAN
class=213292820-28112007></SPAN>A<SPAN class=213292820-28112007>t first I've
observed the following CMake Errror message box and then a lot of errors coming
up when I choose OK.</SPAN><BR><BR>CMake Error: Unable to find executable
for TRY_RUN: tried
<BR>"Z:\Libraries\Insight\bin/CMakeTmp/cmTryCompileExec.exe" and
<BR>"Z:\Libraries\Insight\bin/CMakeTmp/Debug/cmTryCompileExec.exe" and
<BR>"Z:\Libraries\Insight\bin/CMakeTmp/Development/cmTryCompileExec.exe".<BR>[CMake
is correct; these files do not exist<SPAN class=605440409-02122007>, but the log
indicates no error for the building of these executables</SPAN>.]</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=039041608-16122007><FONT face=Arial size=2>In order to debug
the error </FONT></SPAN><FONT face=Arial size=2>I've created an empty foo.c like
the following</FONT></DIV>
<DIV>
<P><FONT face=Arial size=2>#include <stdio.h></FONT></P>
<P><FONT face=Arial size=2>void main(void)</FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT face=Arial size=2></FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT face=Arial size=2>and a CMakeLists.txt </FONT></P>
<P><FONT face=Arial size=2><SPAN class=039041608-16122007>add_library(foo
foo.c).</SPAN></FONT></P>
<P><FONT face=Arial><FONT size=2><FONT>I put them into the "C:\CMakeTest"
folder<SPAN class=039041608-16122007>. </SPAN></FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2><FONT><SPAN
class=039041608-16122007></SPAN></FONT>I've changed my directory to the bin
directory of CMake and run the following command from the command
console</FONT></FONT></P>
<P><FONT face=Arial size=2>cmake C:\CMakeTest\CMakeLists.txt
--debug-trycompile</FONT></P>
<P><FONT face=Arial size=2>It produced the following output lines</FONT></P>
<P><FONT face=Arial size=2>debug trycompile on</FONT></P>
<P><FONT face=Arial size=2>--Check for working C compiler: cl</FONT></P>
<P><FONT face=Arial size=2>--Check for working C compiler: cl --works
</FONT></P>
<P><FONT face=Arial size=2>--Check size of void* CMake Error: Unable to find
executable for TRY_RUN: tried
"C:/CMakeTest/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and
"C:/CMakeTest/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and
"C:/CMakeTest/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".</FONT></P>
<P><FONT face=Arial size=2>--Check size of void* -done</FONT></P>
<P><FONT face=Arial size=2>--Check for working CXX compiler: cl</FONT></P>
<P><FONT face=Arial size=2>--Check for working CXX compiler: cl --works
--Configuring done</FONT></P>
<P><FONT face=Arial size=2>I've check the availability of executables</FONT></P>
<P><FONT face=Arial size=2>1.
"C:/CMakeTest/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" is not available
</FONT></P>
<P><FONT face=Arial size=2>2.
"C:/CMakeTest/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" is available
</FONT></P>
<P><FONT face=Arial size=2>3.
"C:/CMakeTest/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe" is not
available and the folder "Development" does not exist.</FONT></P>
<P><FONT face=Arial size=2>and the solution "CMAKE_TRY_COMPILE.sln" in the
folder "C:\CMakeTest\CMakeFiles\CMakeTmp" is available and it can be built
without any errors.</FONT></P>
<P><FONT face=Arial size=2>I don't understand Although cmTryCompileExec.exe is
available inside the folder "C:/CMakeTest/CMakeFiles/CMakeTmp/Debug" <SPAN
class=039041608-16122007>CMake</SPAN> still produces CMake
error.</FONT></P></DIV>
<DIV><SPAN class=213292820-28112007><FONT face=Arial size=2>I've compiled
previous version of ITK<SPAN class=605440409-02122007>, or VTK,
etc.</SPAN> without any problem before, but after deleting old one and
trying to build the latest release, I've got these errors. I'd be grateful to
anyone who help me resolve this problem ?</FONT></SPAN></DIV>
<DIV><SPAN class=213292820-28112007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=213292820-28112007><FONT face=Arial
size=2>Sincerely</FONT></SPAN></DIV>
<DIV><SPAN class=213292820-28112007><FONT face=Arial size=2>Cem
DEMiRKIR </FONT></SPAN></DIV>
<DIV><BR><FONT face=Arial size=2></FONT></DIV></DIV></DIV></BODY></HTML>