<!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=""> </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="">
</span>It has a developers version and I have been trying to use ITK
within
Amira’s framework.<span style=""> </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’s
libraries to link and compile correctly without using Amira’s Make
utility.<span style=""> </span>Is there an easy way that I
can use the ITK libraries without using Cmake?<span style="">
</span>I have attempted to add the appropriate paths for ITK within the
Amira
Make utility.<span style=""> </span>When I use the Amira Make
utility I get error messages like the following:
<br>
<!--[if !supportEmptyParas]--> <!--[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="">
</span>c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' 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="">
</span>c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' 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=""> </span>Any
suggestions would be welcomed.
</font><!--[if !supportEmptyParas]--><br>
<!--[if !supportEmptyParas]--> <!--[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]--> <!--[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="">
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' 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="">
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being
compiled
<br>
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53)
: error C2059: syntax error : ','
<br>
<span style="">
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being
compiled
<br>
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(54)
: error C2976: 'Neighborhood' : too few template arguments
<br>
<span style="">
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhood.h(254) :
see
declaration of 'Neighborhood'
<br>
<span style="">
</span>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhoodAlgorithm.h(66)
:
fatal error C1506: unrecoverable block scoping error </font><br>
<!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p>
<br>
I also seem to get a lot of the two following warnings:
<br>
<!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p>
<br>
warning C4251: … needs to have dll-interface to be used by
clients of class …
<br>
warning C4275: non dll-interface class … used as base for
dll-interface class …
<br>
<!--[if !supportEmptyParas]--> <!--[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=""> </span>I am not very familiar with
linking between libraries.
<br>
<!--[if !supportEmptyParas]--> <!--[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 & 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 & 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 & Women's College Health Sciences Centre</pre>
</body>
</html>