Thank you for you assistance.  I was able to get my makefile to build, but now I am getting a segmentation fault at the line meshSource->Update().  I tried using .ima files, and .dcm files located in the same directory as my .cxx and CMakeLists files.  I am running the executable with the command "SurfaceExtraction 
CT0001.dcm 400&quot;.&nbsp; What am I doing wrong?<br><br>Thanks,<br>Catherine<br><br><br><div><span class="gmail_quote">On 4/7/07, <b class="gmail_sendername">Luis Ibanez</b> &lt;<a href="mailto:luis.ibanez@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
luis.ibanez@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><br>Hi Catherine,<br><br><br>You dont&#39; need the<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INCLUDE_REGULAR_EXPRESSION(&quot;^.*$&quot;)<br><br><br>In your CMakeLists.txt file.<br><br>You just need to have in this file the following lines:
<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;PROJECT(SurfaceExtraction)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;FIND_PACKAGE(ITK REQUIRED)<br>&nbsp;&nbsp;&nbsp;&nbsp;IF(ITK_FOUND)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INCLUDE(${ITK_USE_FILE})<br>&nbsp;&nbsp;&nbsp;&nbsp;ENDIF(ITK_FOUND)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;ADD_EXECUTABLE(SurfaceExtraction SurfaceExtraction.cxx

 )<br><br>&nbsp;&nbsp;&nbsp;&nbsp;TARGET_LINK_LIBRARIES(SurfaceExtraction ITKCommon ITKIO)<br><br><br><br>And only need to have in your directory the following two file:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CMakeLists.txt<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SurfaceExtraction.cxx
<br>
<br><br><br>Make sure that when you configure this directory with<br>CMake you provide to ITK_DIR the directory where you<br>build or where you installed ITK.<br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;Regards,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luis<br><br><br>

------------------------------<br>Catherine Peloquin wrote:<br>&gt; I am trying to build and run the example surface extraction example<br>&gt; originally located in Examples/Filtering/SurfaceExtra<br>&gt; ction.cxx.&nbsp;&nbsp; I made a copy of the entire Filtering folder outside of the
<br>&gt; Insight directory, successfully ran ccmake, and tried to build the<br>&gt; examples in that folder using gmake.<br>&gt;<br>&gt; I got a lot of error messages, but believe that they all originate from<br>&gt; the following errors:
<br>&gt; /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:38:32:<br>&gt; itkImageFileReader.h : No such file or directory<br>&gt; /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:39:32:
<br>&gt; itkImageFileWriter.h: No such file or directory<br>&gt; /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:40:32:<br>&gt; itkCastImageFilter.h: No such file or directory<br>&gt; /ITK/InsightToolkit-
3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:41:44:<br>&gt; itkRescaleIntensityImageFilter.h: No such file or directory<br>&gt; /ITK/InsightToolkit-3.2.0<br>&gt; /Examples/Filtering/AntiAliasBinaryImageFilter.cxx:54:43:
<br>&gt; itkAntiAliasBinaryImageFilter.h: No such file or directory<br>&gt;<br>&gt; I am only using the pre-made examples files, although I did add the code:<br>&gt; #<br>&gt; # FIND ITK, TAKEN FROM<br>&gt; <a href="http://www.itk.org/pipermail/insight-users/2003-July/004278.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.itk.org/pipermail/insight-users/2003-July/004278.html</a><br>&gt; &lt;<a href="http://www.itk.org/pipermail/insight-users/2003-July/004278.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.itk.org/pipermail/insight-users/2003-July/004278.html</a>
&gt; ON<br>&gt; 3-30-07<br>&gt; #<br>&gt; FIND_PACKAGE(ITK)<br>&gt; IF (USE_ITK_FILE)<br>&gt;&nbsp;&nbsp; INCLUDE (${USE_ITK_FILE})<br>&gt; ELSE (USE_ITK_FILE)<br>&gt;&nbsp;&nbsp; MESSAGE( FATAL_ERROR &quot;This application requires ITK. One of these
<br>&gt; components is missing. Please verify configuration&quot;)<br>&gt; ENDIF (USE_ITK_FILE)<br>&gt;<br>&gt; after INCLUDE_REGULAR_EXPRESSION(&quot;^.*$&quot;) in the file CMakeLists.txt.<br>&gt;<br>&gt;<br>&gt; What am I doing wrong to get these errors?&nbsp;&nbsp;I was able to successfully
<br>&gt; build and run other examples, including the examples in<br>&gt; DataRepresentation/Image.<br>&gt;<br>&gt; Thank you,<br>&gt; Catherine<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Insight-users@itk.org
</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br>