<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hello, Luis:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you so much. I did as you suggested, now I can build the application.</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>Can you please show me example how I should write cmakelist in this case? I learned to write cmake list through ITK tutorial, but can't make this case work such as individual EM of Gassian Mixture and MRF.</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>Can you please tell what I should do if I only want to make one program such as EM of Gassian Mixture and MRF? Currently is working, but it is weired since I need to use ccmake for all, and then build the one I need..</DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried to wrtie cmakelist, but not working. The compiler can not find header, what should be the problem. I believe the application code can be made and build indepdently.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>Baoyun<BR><BR></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Baoyun Li &lt;baoyun_li123@yahoo.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> insight-users@itk.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, March 4, 2009 11:38:37 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: can not build--IBSRClassification application<BR></FONT><BR><BR>Hi Baoyun,<BR><BR>You must:<BR><BR>1) Configure InsightApplications from the TOP,<BR>&nbsp; not from the IBSRClassification subdirectory<BR><BR>2) Then, cd in to the IBSRClassification subdir<BR>&nbsp; and type 'make'<BR><BR><BR>&nbsp; Regards,<BR><BR><BR>&nbsp; &nbsp; Luis<BR><BR><BR>----------------<BR>Baoyun Li wrote:<BR>&gt; Dear Luis and All:<BR>&gt;&nbsp; I am trying to buid IBSRClassification in the ITK application for gaussian mixture models classification. But I got a lot
 of buid errors.<BR>&gt;&nbsp; I have one folder called&nbsp; EM_MRF, inside this folder I copy the IBSRClassification folder and create build folder. I modified camkelist file (See the end of the letter) to find ITK, if I did not change the cmakelist file, I got more errors<BR>&gt;&nbsp; Then in the build folder, I typed:<BR>&gt;&nbsp; ccmake ../IBSRClassification.<BR>&gt;&nbsp; and give the ITK directore, tyep C and G, and quitc cmake. Then typed make to build the code,&nbsp; I got a lot of errors. It seems that it can not find most of the header.&nbsp; I only copy some of them to here.<BR>&gt;&nbsp; Can sombody help me to figure this problem?<BR>&gt;&nbsp; Baoyun<BR>&gt;&nbsp; ***********************error messages<BR>&gt;&nbsp; In file included from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.h:228,<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from
 /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.h:22,<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.cxx:20:<BR>&gt; /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.txx:21:34: error: RawSliceVolumeReader.h: No such file or directory<BR>&gt; /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.txx:22:29: error: RawVolumeReader.h: No such file or directory<BR>&gt; In file included from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.h:24,<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.cxx:20:<BR>&gt;
 /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationOutput.h:22:29: error: RawVolumeWriter.h: No such file or directory<BR>&gt;&nbsp; ******************Below is the cmakelist file I modified to find ITK, if I did not change the cmakelist file, I got more errors<BR>&gt;&nbsp; cmake_minimum_required(VERSION 2.4)<BR>&gt;&nbsp; &nbsp; FIND_PACKAGE(ITK)<BR>&gt;&nbsp; IF(ITK_FOUND)<BR>&gt;&nbsp; &nbsp; INCLUDE(${ITK_USE_FILE})<BR>&gt;&nbsp; ELSE(ITK_FOUND)<BR>&gt;&nbsp; &nbsp; MESSAGE(FATAL_ERROR<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Cannot build InsightApplications without ITK.&nbsp; Please set ITK_DIR.")<BR>&gt;&nbsp; ENDIF(ITK_FOUND)<BR>&gt;&nbsp; INCLUDE_DIRECTORIES(<BR>&gt; ${IBSRClassification_SOURCE_DIR}/../Common<BR>&gt; ${IBSRClassification_SOURCE_DIR}<BR>&gt; )<BR>&gt; ADD_EXECUTABLE(GaussianIBSRClassificationApp Code/GaussianClassifierValidationApp.cxx)<BR>&gt; INSTALL_TARGETS(/bin
 GaussianIBSRClassificationApp)<BR>&gt; TARGET_LINK_LIBRARIES (GaussianIBSRClassificationApp<BR>&gt; ITKBasicFilters<BR>&gt; ITKIO<BR>&gt; )<BR>&gt; <BR>&gt; ADD_EXECUTABLE(KmeansIBSRClassificationApp Code/KmeansClassifierValidationApp.cxx)<BR>&gt; INSTALL_TARGETS(/bin KmeansIBSRClassificationApp)<BR>&gt; TARGET_LINK_LIBRARIES (KmeansIBSRClassificationApp<BR>&gt; ITKBasicFilters<BR>&gt; ITKIO<BR>&gt; )<BR>&gt; <BR>&gt; ADD_EXECUTABLE(MRFGaussianIBSRClassificationApp Code/MRFGaussianClassifierValidationApp.cxx)<BR>&gt; INSTALL_TARGETS(/bin MRFGaussianIBSRClassificationApp)<BR>&gt; TARGET_LINK_LIBRARIES (MRFGaussianIBSRClassificationApp<BR>&gt; ITKBasicFilters<BR>&gt; ITKIO<BR>&gt; )<BR>&gt; <BR>&gt; ADD_EXECUTABLE(MRFKmeansIBSRClassificationApp Code/MRFKmeansClassifierValidationApp.cxx)<BR>&gt; INSTALL_TARGETS(/bin MRFKmeansIBSRClassificationApp)<BR>&gt; TARGET_LINK_LIBRARIES (MRFKmeansIBSRClassificationApp<BR>&gt; ITKBasicFilters<BR>&gt; ITKIO<BR>&gt;
 )<BR>&gt; <BR></DIV></DIV></div><br>



      </body></html>