<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
Hello ITK,
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>I have
recently been trying to use ITK with Amira (TGS) a commercially
available piece
of software for viewing 3d image data.<span style="">&nbsp;
</span>It has a developers version and I have been trying to use ITK
within
Amira&#8217;s framework.<span style="">&nbsp; </span>The problem that I
am running into is that Amira has its own custom Make utility that
seems to
operate quite similarly to Cmake and I can not seem to get ITK to link
and
compiler properly without using Cmake and I cannot seem to get Amira&#8217;s
libraries to link and compile correctly without using Amira&#8217;s Make
utility.<span style="">&nbsp; </span>Is there an easy way that I
can use the ITK libraries without using Cmake?<span style="">&nbsp;
</span>I have attempted to add the appropriate paths for ITK within the
Amira
Make utility.<span style="">&nbsp; </span>When I use the Amira Make
utility I get error messages like the following:
<br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
<font face="Times New Roman" size="-1">c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(53)
: error C2065: 'ITK_TYPENAME' : undeclared identifier<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;' being
compiled<br>
c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(53)
: error C2143: syntax error : missing ',' before 'tag::id'<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;' being
compiled<br>
There seem to be a lot of syntax errors within the ITK code.
I assume that this is a result of not using Cmake.<span style="">&nbsp; </span>Any
suggestions would be welcomed.
</font><!--[if !supportEmptyParas]--><br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
Similarly when I use Cmake and attempt to build the Amira
libraries into it I get similar syntax error messages such as:
<br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><br>
<font face="Times New Roman" size="-1">C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53)
: error C2065: 'ITK_TYPENAME' : undeclared identifier
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;' being
compiled
<br>
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53)
: error C2143: syntax error : missing ',' before 'tag::id'
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;' being
compiled
<br>
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53)
: error C2059: syntax error : ','
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator&lt;TImage,TBoundaryCondition&gt;' being
compiled
<br>
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(54)
: error C2976: 'Neighborhood' : too few template arguments
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhood.h(254) :
see
declaration of 'Neighborhood'
<br>
<span style="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhoodAlgorithm.h(66)
:
fatal error C1506: unrecoverable block scoping error&nbsp;</font><br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
I also seem to get a lot of the two following warnings:
<br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
warning C4251: &#8230; needs to have dll-interface to be used by
clients of class &#8230;
<br>
warning C4275: non dll-interface class &#8230; used as base for
dll-interface class &#8230;
<br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
I have added the preprocessor definitions that Amira
requires, other then that I have not altered the project files created
by
Cmake.<span style="">&nbsp; </span>I am not very familiar with
linking between libraries.
<br>
<!--[if !supportEmptyParas]-->&nbsp;<!--[endif]--><o:p></o:p>
<br>
Thanks for any assistance
<br>
<!--[if !supportEmptyParas]--><br>
-- <br>
Michael Hardisty<br>
M.A.Sc Student<br>
University of Toronto<br>
Orthopaedic Biomechanics Laboratory<br>
Sunnybrook &amp; Women's College Health Sciences Centre
<br>
<pre class="moz-signature" cols="72">-- 
Michael Hardisty
M.A.Sc Student
University of Toronto
Orthopaedic Biomechanics Laboratory
Sunnybrook &amp; Women's College Health Sciences Centre</pre>
<br>
<pre class="moz-signature" cols="72">-- 
Michael Hardisty
M.A.Sc Student
University of Toronto
Orthopaedic Biomechanics Laboratory
Sunnybrook &amp; Women's College Health Sciences Centre</pre>
</body>
</html>