<div>I found the problem.&nbsp; When I install cygwin, I only have bash.exe installed, I don't have sh.exe.&nbsp; It seems that some scripts the cmake is running requires sh to exist.&nbsp; So I just copied bash.exe to sh.exe and it worked. I am wondering if either itk or cmake can add a check of whether sh exists or not to prevent such issue happening.
</div>
<div>Now, I can get it to work with gcc and g++ (export CC=/bin/gcc.exe; export CXX=/bin/c++.exe) under cygwin.&nbsp; However, now I try to use the intel compiler under cygwin (I used intel compiler under windows with visual studio .net and it worked).&nbsp; My intel compiler is installed under program file and I created a link in the /bin/ directory.&nbsp; I did export CC=/bin/icl.exe and export CXX=/bin/icl.exe, however when I configure ccmake, I got the error that icl unable to compile a simple program.&nbsp; The error message is included in the following, anybody have a clue?
</div>
<div><br>&nbsp;The C compiler &quot;/bin/icl.exe&quot; is not able to compile a simple test program.<br>&nbsp;It fails with the following output:<br>&nbsp; /bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make<br>&nbsp;CMakeFiles/cmTryCompileExec.dir/build
<br>&nbsp;make[1]: Entering directory<br>&nbsp;`/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp'<br>&nbsp;Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o<br>&nbsp;/bin/icl.exe&nbsp;&nbsp; -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o&nbsp;&nbsp; -c
<br>&nbsp;/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp/test<br>&nbsp;CCompiler.c<br>&nbsp;Intel(R) C++ Compiler for 32-bit applications, Version 8.1&nbsp;&nbsp;&nbsp; Build 20051008Z</div>
<div>
<p>&nbsp;Copyright (C) 1985-2005 Intel Corporation.&nbsp; All rights reserved.<br>&nbsp;make[1]: Leaving directory<br>&nbsp;`/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp'<br>&nbsp;icl: Command line warning: ignoring option '-c'; no argument required
</p>
<p>&nbsp;icl: Command line error: no files specified; for help type &quot;icl -help&quot;<br>&nbsp;make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1<br>&nbsp;make: *** [cmTryCompileExec/fast] Error 2</p>
<p><br>&nbsp;CMake will not be able to correctly generate this project.<br></p><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/13/06, <b class="gmail_sendername">Quan Chen</b> &lt;<a href="mailto:quanchen@gmail.com">quanchen@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>I was using cmakesetup.exe under windows to setup the itk and it work perfectly.&nbsp; Recently I try to install it under cygwin.&nbsp; However, I failed at the first step!&nbsp; I followed the instructions, create a bin directory, set environment variable CC and CXX (is that required step?) using export, and run ccmake with argument of source directory.&nbsp; However, after a few configuration tries, I got the message saying my system is unknown to cmake (running uname give me CYGWIN_NT- 
5.1).&nbsp; Then the testCCompiler.c failed to compile because the system cannot find the path specified.&nbsp; This file is in the source directory tree but not in the binary directory tree.&nbsp; I am wondering if there is a missing step to copy it from source directory to the binary directory?&nbsp; Should I turn on the CMAKE_USE_RELATIVE_PATH?&nbsp; What is the CMAKE_INSTALL_PREFIX?&nbsp; is that where the cmake should be located?&nbsp; The cmake I installed comes with cygwin, it is located under /bin, version 
2.4-patch 2.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The error message is list below:</div>
<div>
<p><br>System is unknown to cmake, create:<br>/usr/share/cmake-2.4.2/Modules/Platform/UnknownOS.cmake to use this system,<br>please send your config file to <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cmake@www.cmake.org" target="_blank">
cmake@www.cmake.org</a> so it can be added to <br>cmake</p>
<p>You CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that<br>file to <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cmake@www.cmake.org" target="_blank">cmake@www.cmake.org</a>
.</p>
<p>System is unknown to cmake, create:<br>/usr/share/cmake-2.4.2/Modules/Platform/UnknownOS.cmake to use this system,<br>please send your config file to <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:cmake@www.cmake.org" target="_blank">
cmake@www.cmake.org</a> so it can be added to <br>cmake</p>
<p>The C compiler &quot;/usr/bin/gcc&quot; is not able to compile a simple test program.<br>It fails with the following output:<br>&nbsp;nmake -f CMakeFiles/cmTryCompileExec.dir/build.make<br>CMakeFiles/cmTryCompileExec.dir/build 
</p>
<p>Microsoft (R) Program Maintenance Utility Version 7.10.3077<br>Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.</p>
<p><br>Microsoft (R) Program Maintenance Utility Version 7.10.3077<br>Copyright (C) Microsoft Corporation.&nbsp; All rights reserved.</p>
<p>&quot;Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o&quot;<br>/usr/bin/gcc&nbsp;&nbsp; -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o&nbsp;&nbsp; -c<br>/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp/test 
<br>CCompiler.c<br>The system cannot find the path specified.<br>NMAKE : fatal error U1077: '' : return code '0x1'<br>Stop.<br>NMAKE : fatal error U1077: '&quot;c:\program files\microsoft visual studio .NET<br>2003\vc7\bin\nmake.exe&quot;' : return code '0x2' 
<br>Stop.</p>
<p><br>CMake will not be able to correctly generate this project.<br></p></div></div></blockquote></div><br>