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 &quot;src&quot; and &quot;bin&quot;.<br>
<br>Note also that here I&#39;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">&lt;<a href="mailto:syousefy@yahoo.com">syousefy@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt;"><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 &quot;ccmake ITK&quot;. 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 &quot;/usr/bin/gcc&quot; 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 &quot;cmTryCompileExec/fast&quot;</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&#39;</p></span></div></div><br></div></div></div><br>

      </div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>