<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV>Hi Luis,</DIV>
<DIV> </DIV>
<DIV>Thank you for your comment. I am running ccmake from the binary directory where I want ITK to be built there, ITKb. I run:</DIV>
<DIV>ccmake ~/ITK .</DIV>
<DIV>I have a C shell and I run the following commands before that:</DIV>
<DIV>setenv CC /usr/bin/gcc</DIV>
<DIV>setenv CXX /usr/bin/g++</DIV>
<DIV> </DIV>
<DIV>But I get the mentioned message.</DIV>
<DIV> </DIV>
<DIV>Siamak<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Luis Ibanez <luis.ibanez@kitware.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Siamak Yousefi <syousefy@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> insight-users@itk.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Saturday, August 8, 2009 9:58:29 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [Insight-users] Installation error<BR></FONT><BR>Hi Siamak,<BR><BR>In order to configure ITK, you should run ccmake from the binary directory where<BR>you want to build ITK, and you should pass as argument the directory where you<BR>have the source tree of ITK.<BR><BR>Here is an example of how I usually build itk:<BR><BR>
<UL>
<LI>export CC=/usr/bin/gcc-4.2</LI>
<LI>export CXX=/usr/bin/g++-4.2<BR></LI>
<LI>cd ~/src</LI>
<LI><STRONG>cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight login</STRONG></LI>
<LI>password : insight</LI>
<LI><STRONG>cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight co Insight</STRONG></LI>
<LI>cd ~/bin</LI>
<LI>mkdir InsightBulid</LI>
<LI>cd ~/bin/InsightBuild</LI>
<LI>ccmake ~/src/Insight</LI>
<LI>make</LI></UL><BR>Note that here I assume that in my home directory I already have subdirectories<BR>called "src" and "bin".<BR><BR>Note also that here I'm using GCC 4.2.<BR>You should replace that with your favorite version of GCC.<BR><BR><BR> Regards,<BR><BR><BR> Luis<BR><BR><BR>----------------------------------------------------------------------<BR>
<DIV class=gmail_quote>On Fri, Aug 7, 2009 at 11:15 AM, Siamak Yousefi <SPAN dir=ltr><<A href="mailto:syousefy@yahoo.com" target=_blank rel=nofollow ymailto="mailto:syousefy@yahoo.com">syousefy@yahoo.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I am trying to install ITK using cmake under linux. I got the error message below during "ccmake ITK". Any help in this regard is highly appreciated.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Siamak Yousefi</DIV>
<DIV> </DIV>
<DIV><SPAN lang=EN>
<P>CMake Error at</P>
<P>/home/syouse/cmake/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32</P>
<P>(MESSAGE):</P>
<P>The C compiler "/usr/bin/gcc" is not able to compile a simple test program.</P>
<P>It fails with the following output:</P>
<P>Change Dir: /home/syouse/ITKb/CMakeFiles/CMakeTmp</P>
<P> </P>
<P> </P>
<P>Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"</P>
<P>/usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make</P>
<P>CMakeFiles/cmTryCompileExec.dir/build</P>
<P>gmake[1]: Entering directory `/mnt/sdb1/syouse/ITKb/CMakeFiles/CMakeTmp'</P></SPAN></DIV></DIV><BR></DIV></DIV></DIV><BR></DIV><BR>_____________________________________<BR>Powered by <A href="http://www.kitware.com/" target=_blank rel=nofollow>www.kitware.com</A><BR><BR>Visit other Kitware open-source projects at<BR>http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ<BR><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.itk.org/mailman/listinfo/insight-users<BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></div><br>
</body></html>