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". 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> <<a href="mailto:luis.ibanez@kitware.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
luis.ibanez@kitware.com</a>> 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' need the<br><br><br> INCLUDE_REGULAR_EXPRESSION("^.*$")<br><br><br>In your CMakeLists.txt file.<br><br>You just need to have in this file the following lines:
<br><br><br> PROJECT(SurfaceExtraction)<br><br> FIND_PACKAGE(ITK REQUIRED)<br> IF(ITK_FOUND)<br> INCLUDE(${ITK_USE_FILE})<br> ENDIF(ITK_FOUND)<br><br> ADD_EXECUTABLE(SurfaceExtraction SurfaceExtraction.cxx
)<br><br> 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> CMakeLists.txt<br> 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> Regards,<br><br><br> Luis<br><br><br>
------------------------------<br>Catherine Peloquin wrote:<br>> I am trying to build and run the example surface extraction example<br>> originally located in Examples/Filtering/SurfaceExtra<br>> ction.cxx. I made a copy of the entire Filtering folder outside of the
<br>> Insight directory, successfully ran ccmake, and tried to build the<br>> examples in that folder using gmake.<br>><br>> I got a lot of error messages, but believe that they all originate from<br>> the following errors:
<br>> /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:38:32:<br>> itkImageFileReader.h : No such file or directory<br>> /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:39:32:
<br>> itkImageFileWriter.h: No such file or directory<br>> /ITK/InsightToolkit-3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:40:32:<br>> itkCastImageFilter.h: No such file or directory<br>> /ITK/InsightToolkit-
3.2.0/Examples/Filtering/AntiAliasBinaryImageFilter.cxx:41:44:<br>> itkRescaleIntensityImageFilter.h: No such file or directory<br>> /ITK/InsightToolkit-3.2.0<br>> /Examples/Filtering/AntiAliasBinaryImageFilter.cxx:54:43:
<br>> itkAntiAliasBinaryImageFilter.h: No such file or directory<br>><br>> I am only using the pre-made examples files, although I did add the code:<br>> #<br>> # FIND ITK, TAKEN FROM<br>> <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>> <<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>
> ON<br>> 3-30-07<br>> #<br>> FIND_PACKAGE(ITK)<br>> IF (USE_ITK_FILE)<br>> INCLUDE (${USE_ITK_FILE})<br>> ELSE (USE_ITK_FILE)<br>> MESSAGE( FATAL_ERROR "This application requires ITK. One of these
<br>> components is missing. Please verify configuration")<br>> ENDIF (USE_ITK_FILE)<br>><br>> after INCLUDE_REGULAR_EXPRESSION("^.*$") in the file CMakeLists.txt.<br>><br>><br>> What am I doing wrong to get these errors? I was able to successfully
<br>> build and run other examples, including the examples in<br>> DataRepresentation/Image.<br>><br>> Thank you,<br>> Catherine<br>><br>><br>> ------------------------------------------------------------------------
<br>><br>> _______________________________________________<br>> Insight-users mailing list<br>> <a href="mailto:Insight-users@itk.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Insight-users@itk.org
</a><br>> <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>