<div>upon further test, I find that the error message about option '-c' comes from the file path. My file is located under /cygdrive/c/.... however, when I compile it with icl, it seems that it treat the path as part of the options.
</div>
<div> </div>
<div>I tried the following command:</div>
<div>/bin/icl.exe /cygdrive/test.c </div>
<div>I got the same error message:</div>
<p>icl: Command line warning: ignoring option '-c'; no argument required</p>
<p>icl: Command line error: no files specified; for help type "icl -help"</p>
<div>If I try this command:</div>
<div>/bin/icl.exe /drive/test.c</div>
<div>the message becomes:</div>
<p>icl: Command line warning: ignoring unknown option '-drive/test.c'</p>
<p>icl: Command line error: no files specified; for help type "icl -help"</p>
<p> </p>
<p>So is there any way to by-pass that? Has anyone tried the cygwin + icl combination? I guess the problem occurs here because the windows version of intel compiler accept the option to be either start with / or start with -, whereas in linux, the intel compiler probably only accept options passed in the form of -.
</p>
<div><br><br> </div>
<div><span class="gmail_quote">On 6/14/06, <b class="gmail_sendername">Quan Chen</b> <<a href="mailto:quanchen@gmail.com">quanchen@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>I found the problem. When I install cygwin, I only have bash.exe installed, I don't have sh.exe. It seems that some scripts the cmake is running requires sh to exist. 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. However, now I try to use the intel compiler under cygwin (I used intel compiler under windows with visual studio .net and it worked). My intel compiler is installed under program file and I created a link in the /bin/ directory. 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. The error message is included in the following, anybody have a clue?
</div>
<div><br> The C compiler "/bin/icl.exe" is not able to compile a simple test program.</div>
<div><span class="q"><br> It fails with the following output:<br></span></div>
<div> /bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make<br> CMakeFiles/cmTryCompileExec.dir/build <br> make[1]: Entering directory<br> `/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp'</div>
<div><span class="q"><br> Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o<br></span></div>
<div> /bin/icl.exe -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c </div>
<div><span class="q"><br> /cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp/test<br> CCompiler.c<br></span></div>
<div> Intel(R) C++ Compiler for 32-bit applications, Version 8.1 Build 20051008Z</div>
<div>
<p> Copyright (C) 1985-2005 Intel Corporation. All rights reserved.<br> make[1]: Leaving directory<br> `/cygdrive/c/newitk/itksource/InsightToolkit-2.2.0/bin/CMakeFiles/CMakeTmp'<br> icl: Command line warning: ignoring option '-c'; no argument required
</p>
<p> icl: Command line error: no files specified; for help type "icl -help"<br> make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 1<br> make: *** [cmTryCompileExec/fast] Error 2</p></div>
<div><span class="q">
<p><br> CMake will not be able to correctly generate this project.<br></p><br><br> </span></div>
<div></div></div>
<div><span class="e" id="q_10bd4b2487b7da98_9">
<div><span class="gmail_quote">On 6/13/06, <b class="gmail_sendername">Quan Chen</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:quanchen@gmail.com" target="_blank">quanchen@gmail.com</a>> 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. Recently I try to install it under cygwin. However, I failed at the first step! 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. 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). Then the testCCompiler.c failed to compile because the system cannot find the path specified. This file is in the source directory tree but not in the binary directory tree. I am wondering if there is a missing step to copy it from source directory to the binary directory? Should I turn on the CMAKE_USE_RELATIVE_PATH? What is the CMAKE_INSTALL_PREFIX? is that where the cmake should be located? The cmake I installed comes with cygwin, it is located under /bin, version
2.4-patch 2.</div>
<div> </div>
<div> </div>
<div> </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 "/usr/bin/gcc" is not able to compile a simple test program.<br>It fails with the following output:<br> 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. All rights reserved.</p>
<p><br>Microsoft (R) Program Maintenance Utility Version 7.10.3077<br>Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>"Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o"<br>/usr/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -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: '"c:\program files\microsoft visual studio .NET<br>2003\vc7\bin\nmake.exe"' : 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></span></div></blockquote></div><br>