<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE></TITLE>
<META content="MSHTML 6.00.2800.1276" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><SPAN class=785412715-25082004><FONT face=Arial color=#0000ff
size=2>MIchael,</FONT></SPAN></DIV>
<DIV><SPAN class=785412715-25082004><FONT face=Arial color=#0000ff size=2>You
must build itk with cmake. But you don't have to build Amira with it. You should
be able to build itk, install it (the includes and libs) and use it in a
non-cmake build system. Just treat it like you do OpenGL or any other 3rd party
package.</FONT></SPAN></DIV>
<DIV><SPAN class=785412715-25082004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=785412715-25082004><FONT face=Arial color=#0000ff
size=2>Bilkl</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Michael Hardisty
[mailto:m.hardisty@utoronto.ca]<BR><B>Sent:</B> Wednesday, August 25, 2004
11:19 AM<BR><B>To:</B> insight-users@itk.org<BR><B>Subject:</B>
[Insight-users] Syntax Errors and not Using Cmake<BR><BR></FONT></DIV>Hello
ITK,
<BR><SPAN>
</SPAN>I have recently been trying to use ITK with Amira (TGS) a commercially
available piece of software for viewing 3d image data.<SPAN> </SPAN>It
has a developers version and I have been trying to use ITK within Amira’s
framework.<SPAN> </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> </SPAN>Is there an easy way
that I can use the ITK libraries without using Cmake?<SPAN> </SPAN>I
have attempted to add the appropriate paths for ITK within the Amira Make
utility.<SPAN> </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>
</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>
</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> </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>
</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>
</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>
</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>
</SPAN>C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhood.h(254) : see
declaration of 'Neighborhood'
<BR><SPAN>
</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> </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></BLOCKQUOTE></BODY></HTML>