<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> </DIV>
<DIV>Thank you so much. I did as you suggested, now I can build the application.</DIV>
<DIV> </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> </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> </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> </DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </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 <luis.ibanez@kitware.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Baoyun Li <baoyun_li123@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> 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> not from the IBSRClassification subdirectory<BR><BR>2) Then, cd in to the IBSRClassification subdir<BR> and type 'make'<BR><BR><BR> Regards,<BR><BR><BR> Luis<BR><BR><BR>----------------<BR>Baoyun Li wrote:<BR>> Dear Luis and All:<BR>> I am trying to buid IBSRClassification in the ITK application for gaussian mixture models classification. But I got a lot
of buid errors.<BR>> I have one folder called 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>> Then in the build folder, I typed:<BR>> ccmake ../IBSRClassification.<BR>> and give the ITK directore, tyep C and G, and quitc cmake. Then typed make to build the code, I got a lot of errors. It seems that it can not find most of the header. I only copy some of them to here.<BR>> Can sombody help me to figure this problem?<BR>> Baoyun<BR>> ***********************error messages<BR>> In file included from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.h:228,<BR>> from
/home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.h:22,<BR>> from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.cxx:20:<BR>> /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.txx:21:34: error: RawSliceVolumeReader.h: No such file or directory<BR>> /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationInputParser.txx:22:29: error: RawVolumeReader.h: No such file or directory<BR>> In file included from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.h:24,<BR>> from /home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/GaussianClassifierValidationApp.cxx:20:<BR>>
/home/gtao/code/vector_segmentation/EM_MRF/IBSRClassification/Code/ClassifierValidationOutput.h:22:29: error: RawVolumeWriter.h: No such file or directory<BR>> ******************Below is the cmakelist file I modified to find ITK, if I did not change the cmakelist file, I got more errors<BR>> cmake_minimum_required(VERSION 2.4)<BR>> FIND_PACKAGE(ITK)<BR>> IF(ITK_FOUND)<BR>> INCLUDE(${ITK_USE_FILE})<BR>> ELSE(ITK_FOUND)<BR>> MESSAGE(FATAL_ERROR<BR>> "Cannot build InsightApplications without ITK. Please set ITK_DIR.")<BR>> ENDIF(ITK_FOUND)<BR>> INCLUDE_DIRECTORIES(<BR>> ${IBSRClassification_SOURCE_DIR}/../Common<BR>> ${IBSRClassification_SOURCE_DIR}<BR>> )<BR>> ADD_EXECUTABLE(GaussianIBSRClassificationApp Code/GaussianClassifierValidationApp.cxx)<BR>> INSTALL_TARGETS(/bin
GaussianIBSRClassificationApp)<BR>> TARGET_LINK_LIBRARIES (GaussianIBSRClassificationApp<BR>> ITKBasicFilters<BR>> ITKIO<BR>> )<BR>> <BR>> ADD_EXECUTABLE(KmeansIBSRClassificationApp Code/KmeansClassifierValidationApp.cxx)<BR>> INSTALL_TARGETS(/bin KmeansIBSRClassificationApp)<BR>> TARGET_LINK_LIBRARIES (KmeansIBSRClassificationApp<BR>> ITKBasicFilters<BR>> ITKIO<BR>> )<BR>> <BR>> ADD_EXECUTABLE(MRFGaussianIBSRClassificationApp Code/MRFGaussianClassifierValidationApp.cxx)<BR>> INSTALL_TARGETS(/bin MRFGaussianIBSRClassificationApp)<BR>> TARGET_LINK_LIBRARIES (MRFGaussianIBSRClassificationApp<BR>> ITKBasicFilters<BR>> ITKIO<BR>> )<BR>> <BR>> ADD_EXECUTABLE(MRFKmeansIBSRClassificationApp Code/MRFKmeansClassifierValidationApp.cxx)<BR>> INSTALL_TARGETS(/bin MRFKmeansIBSRClassificationApp)<BR>> TARGET_LINK_LIBRARIES (MRFKmeansIBSRClassificationApp<BR>> ITKBasicFilters<BR>> ITKIO<BR>>
)<BR>> <BR></DIV></DIV></div><br>
</body></html>