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">&lt;<a href="mailto:ella_kadas@yahoo.com">ella_kadas@yahoo.com</a>&gt;</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&#39;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 &#39;template&lt;class TInputImage, class TOutputImage&gt; class itk::MultiphaseFiniteDifferenceImageFilter&#39;</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 &#39;template&lt;class TInputImage, class TOutputImage&gt; class itk::MultiphaseFiniteDifferenceImageFilter&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.h:146: error: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;OutputImageType&#39; 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: &#39;Superclass&#39; 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: &#39;Superclass&#39; 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: &#39;OutputImageType&#39; 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: &#39;Superclass&#39; 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 &#39;itk::ConstNeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39;:</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 &#39;itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39;</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 &#39;itk::SparseFieldCityBlockNeighborList&lt;itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt; &gt;&#39;</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: &#39;int&#39; 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 &#39;itk::ConstNeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39;:</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 &#39;itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39;</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 &#39;itk::SparseFieldCityBlockNeighborList&lt;itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt; &gt;&#39;</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: &#39;int&#39; 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: &#39;OutputImageType&#39; 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 &#39;void itk::MultiphaseSparseFieldLevelSetImageFilter&lt;TInputImage, TOutputImage, TFunction&gt;::SetFunctionCount(unsigned int)&#39;:</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 &#39;::SetFunctionCount&#39;</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 &#39;typename itk::MultiphaseSparseFieldLevelSetImageFilter&lt;TInputImage, TOutputImage, TFunction&gt;::TimeStepType itk::MultiphaseSparseFieldLevelSetImageFilter&lt;TInputImage, TOutputImage, TFunction&gt;::CalculateChange()&#39;:</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:21: error: &#39;Superclass&#39; 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 &#39;df&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:26: error: &#39;Superclass&#39; 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 &#39;offset&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:30: error: &#39;df&#39; 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 &#39;itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;::SetLocation(const int&amp;)&#39;</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&lt;TImage, TBoundaryCondition&gt;::SetLocation(const itk::Index&lt;itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;::Dimension&gt;&amp;) [with TImage = int, TBoundaryCondition = itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt;]</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:57: error: &#39;class itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39; has no member named &#39;GetCenterPixel&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:66: error: &#39;class itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39; has no member named &#39;GetNext&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:67: error: &#39;class itk::NeighborhoodIterator&lt;int, itk::ZeroFluxNeumannBoundaryCondition&lt;int&gt; &gt;&#39; has no member named &#39;GetPrevious&#39;</p>

<p style="margin: 0px 0px 0px 12px; font: 11px Menlo;">/Users/ellaK/osirix/osirixplugins/_help/LesionDetection/ITK180/Code/BasicFilters/itkMultiphaseSparseFieldLevelSetImageFilter.txx:77: error: &#39;offset&#39; 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>