<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span class="Apple-style-span" style="font-family: Georgia; line-height: 15px; "><div><span class="Apple-style-span" style="font-family: Georgia; line-height: 15px; ">I am trying for some time to get ITK running.</span></div><div><span class="Apple-style-span" style="font-family: Georgia; line-height: 15px; "></span>&nbsp;This time I wanted to use the ITK version which is coming with the osirix source code.&nbsp;</div><br style="line-height: 1.22em; outline-style: none; outline-width: initial; outline-color: initial; ">At first I created a new plugin with the "plugin generator". Then I added the ITK framework binaries from a compiled version of osirix.&nbsp;</span><div><span class="Apple-style-span" style="font-family: Georgia; line-height: 15px; ">Next I added the complete ITK180 folder from Osirix making that symlink to the ITK180 folder from
 Osirix.</span></div><div><span class="Apple-style-span" style="font-family: Georgia; line-height: 15px; ">My last step was changing the settings. I added the ITK180 directory and subdirectories to my "Header Search Path" and "User Header Search Path".<br style="line-height: 1.22em; outline-style: none; outline-width: initial; outline-color: initial; "></span></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;">But i alwasys get this error (well and a 1000 of others) while trying to compile at least this part of the code:</span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span"
 style="line-height: 15px;">'itk' has not been declared</span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;">Expected initializer before '&lt;' token</span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;"><br></span></font></div><div><font class="Apple-style-span" face="Georgia"><span class="Apple-style-span" style="line-height: 15px;"><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ce2b22"><span style="color: #77482c">#import </span>"DCMPix.h"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ce2b22"><span style="color: #77482c">#import </span>"ViewerController.h"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ce2b22"><span style="color: #77482c">#import </span>&lt;Cocoa/Cocoa.h&gt;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #77482c">#define id Id</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ce2b22"><span style="color: #77482c">#include </span>"itkImage.h"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ce2b22"><span style="color: #77482c">#include </span>"itkImportImageFilter.h"</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #77482c">#undef id</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span style="color: #b830a1">typedef</span> <span style="color: #b830a1">float</span> itkPixelType;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #b830a1">const<span style="color: #000000"> </span>unsigned<span style="color: #000000"> </span>int<span style="color: #000000"> </span><span style="color: #3d2380">Dimension</span><span style="color: #000000"> = </span><span style="color: #2a35d6">3</span><span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span style="color: #b830a1">typedef</span> itk::Image&lt;itkPixelType, Dimension&gt; ImageType;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"><span style="color: #b830a1">typedef</span> itk::ImportImageFilter&lt;itkPixelType, Dimension&gt; ImportFilterType;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">@interface <span style="color: #518187">ImageWrapper</span> : <span style="color: #6f41a8">NSObject</span> {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #6f41a8"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span>ImageType<span style="color: #000000">::</span>Pointer<span style="color: #000000"> </span><span style="color: #518187">image</span><span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #518187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="color: #b830a1">float</span><span style="color: #000000"> *</span>volumeData<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #518187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span>ViewerController<span style="color: #000000"> *</span>viewer<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #b830a1"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span>double<span style="color: #000000"> </span><span style="color: #518187">origin</span><span style="color: #000000">[</span><span style="color: #2a35d6">3</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #518187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="color: #b830a1">double</span><span style="color: #000000"> </span>voxelSpacing<span style="color: #000000">[</span><span style="color: #2a35d6">3</span><span style="color: #000000">];</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #518187"><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">        </span></span><span style="color: #b830a1">int</span><span style="color: #000000"> </span>sliceIndex<span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">}</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #6f41a8"><span style="color: #000000">- (</span>ImageType<span style="color: #000000">::</span>Pointer<span style="color: #000000">) </span><span style="color: #518187">image</span><span style="color: #000000">;</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">@end</p><div><br></div><div>I really can't figure out what i am doing wrong.</div><div>Cheers,</div><div>&nbsp;&nbsp;Ella</div></span></font></div></td></tr></table><br>