Hi Ella,<br><br>A) You should configure ITK with the CMake option:<br><br> ITK_USE_FLAT_DIRECTORY_INSTALL<br><br> turned ON (you will find it in the Advanced options)<br><br>B) You should turn on ITK_USE_REVIEW<br>
<br><br>In that way, you only need to provide a single<br>directory to search for headers to the project <br>that uses ITK.<br><br><br> Regards,<br><br><br> Luis<br><br><br>----------------------------------<br>
<div class="gmail_quote">On Fri, Feb 18, 2011 at 7:31 AM, Ella Maria Kadas <span dir="ltr"><<a href="mailto:ella_kadas@yahoo.com">ella_kadas@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi,<div><br></div><div>I used so far in Xcode at setting the User Header Search Path the ITK180 files from Osirix source code, because i am developing a plugin for Osirix, and there was no other way that i could include this headers without getting thousands of errors.</div>
<div> Now i want to use The Chan And Vese Level Set Segmentation, but it was still not in the ITK180 folder from Osirix, so although i copied the headers in the ITK180 folder , it seems i am again like at the beginning with 2076 errors. Is there another way. I tried already compiling InsightToolkit-3.20.0 with cmake, but it just wouldn't work with Osirix.</div>
<div>Thanks,</div><div>Ella</div><div><br></div><div><p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">In file included from
/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Algorithms/itkSparseMultiphaseSegmentationLevelSetImageFilter.h:20,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Algorithms/itkSparseMultiphaseLevelSetImageFilter.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkRegionBasedLevelSetFunction.h:7,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkScalarLevelSetFunctionBase.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkScalarChanAndVeseLevelSetFunction.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ChanVese.h:38,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ChanVese.m:9:</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:135: error: wrong number of template arguments (3, should be 2)</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkMultiphaseFiniteDifferenceImageFilter.h:119: error: provided for 'template<class TInputImage, class TOutputImage> class itk::MultiphaseFiniteDifferenceImageFilter'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:140: error: wrong number of template arguments (3, should be 2)</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkMultiphaseFiniteDifferenceImageFilter.h:119: error: provided for 'template<class TInputImage, class TOutputImage> class itk::MultiphaseFiniteDifferenceImageFilter'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:146: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:156: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:157: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:158: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:159: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:160: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:161: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:163: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:164: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:165: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:166: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:167: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:168: error: 'OutputImageType' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:169: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:170: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:171: error: 'OutputImageType' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:176: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkConstNeighborhoodIterator.h: In instantiation of 'itk::ConstNeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >':</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkNeighborhoodIterator.h:213: instantiated from 'itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkSparseFieldLevelSetImageFilter.h:73: instantiated from 'itk::SparseFieldCityBlockNeighborList<itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> > >'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:257: instantiated from here</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkConstNeighborhoodIterator.h:55: error: 'int' is not a class, struct, or union type</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"><font face="arial" size="3"><span style="font-size: 13px;"><font face="Menlo" size="3"><span style="font-size: 11px;"><p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">
/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkConstNeighborhoodIterator.h: In instantiation of 'itk::ConstNeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >':</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkNeighborhoodIterator.h:213: instantiated from 'itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkSparseFieldLevelSetImageFilter.h:73: instantiated from 'itk::SparseFieldCityBlockNeighborList<itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> > >'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:257: instantiated from here</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkConstNeighborhoodIterator.h:508: error: 'int' is not a class, struct, or union type</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:268: error: 'OutputImageType' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h: In member function 'void itk::MultiphaseSparseFieldLevelSetImageFilter<TInputImage, TOutputImage, TFunction>::SetFunctionCount(unsigned int)':</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:427: error: invalid use of qualified-name '::SetFunctionCount'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">In file included from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:450,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Algorithms/itkSparseMultiphaseSegmentationLevelSetImageFilter.h:20,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Algorithms/itkSparseMultiphaseLevelSetImageFilter.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkRegionBasedLevelSetFunction.h:7,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkScalarLevelSetFunctionBase.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkScalarChanAndVeseLevelSetFunction.h:4,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ChanVese.h:38,</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;"> from /Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ChanVese.m:9:</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx: In member function 'typename itk::MultiphaseSparseFieldLevelSetImageFilter<TInputImage, TOutputImage, TFunction>::TimeStepType itk::MultiphaseSparseFieldLevelSetImageFilter<TInputImage, TOutputImage, TFunction>::CalculateChange()':</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:21: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:21: error: expected initializer before 'df'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:26: error: 'Superclass' is not a class or namespace</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:26: error: expected initializer before 'offset'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:30: error: 'df' was not declared in this scope</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:51: error: no matching function for call to 'itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >::SetLocation(const int&)'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/Common/itkConstNeighborhoodIterator.h:351: note: candidates are: void itk::ConstNeighborhoodIterator<TImage, TBoundaryCondition>::SetLocation(const itk::Index<itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>::Dimension>&) [with TImage = int, TBoundaryCondition = itk::ZeroFluxNeumannBoundaryCondition<int>]</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:57: error: 'class itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >' has no member named 'GetCenterPixel'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:66: error: 'class itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >' has no member named 'GetNext'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:67: error: 'class itk::NeighborhoodIterator<int, itk::ZeroFluxNeumannBoundaryCondition<int> >' has no member named 'GetPrevious'</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:77: error: 'offset' was not declared in this scope</p>
<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/</p></span></font></span></font></p></div></td></tr></tbody></table><br><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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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>