[Insight-users] Syntax Errors and not Using Cmake

Lorensen, William E (Research) lorensen at crd.ge.com
Wed Aug 25 11:29:26 EDT 2004


MIchael,
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.
 
Bilkl

-----Original Message-----
From: Michael Hardisty [mailto:m.hardisty at utoronto.ca]
Sent: Wednesday, August 25, 2004 11:19 AM
To: insight-users at itk.org
Subject: [Insight-users] Syntax Errors and not Using Cmake


Hello ITK, 
            I have recently been trying to use ITK with Amira (TGS) a
commercially available piece of software for viewing 3d image data.  It has
a developers version and I have been trying to use ITK within Amira's
framework.  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.  Is there an easy way that I can use the ITK
libraries without using Cmake?  I have attempted to add the appropriate
paths for ITK within the Amira Make utility.  When I use the Amira Make
utility I get error messages like the following: 
<!--[if !supportEmptyParas]--> <!--[endif]--> 
c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(53) :
error C2065: 'ITK_TYPENAME' : undeclared identifier
 
c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(53) :
error C2143: syntax error : missing ',' before 'tag::id'
 
c:\itk\insighttoolkit-1.6.0\code\common\itkconstneighborhooditerator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled
There seem to be a lot of syntax errors within the ITK code. I assume that
this is a result of not using Cmake.  Any suggestions would be welcomed.
<!--[if !supportEmptyParas]-->
<!--[if !supportEmptyParas]--> <!--[endif]--> 
Similarly when I use Cmake and attempt to build the Amira libraries into it
I get similar syntax error messages such as: 
<!--[if !supportEmptyParas]--> <!--[endif]-->
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53) :
error C2065: 'ITK_TYPENAME' : undeclared identifier 
 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53) :
error C2143: syntax error : missing ',' before 'tag::id' 
 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(53) :
error C2059: syntax error : ',' 
 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(464)
: see reference to class template instantiation
'itk::ConstNeighborhoodIterator<TImage,TBoundaryCondition>' being compiled 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkConstNeighborhoodIterator.h(54) :
error C2976: 'Neighborhood' : too few template arguments 
        C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhood.h(254) : see
declaration of 'Neighborhood' 
 
C:\ITK\InsightToolkit-1.6.0\Code\Common\itkNeighborhoodAlgorithm.h(66) :
fatal error C1506: unrecoverable block scoping error 
<!--[if !supportEmptyParas]--> <!--[endif]--> 
I also seem to get a lot of the two following warnings: 
<!--[if !supportEmptyParas]--> <!--[endif]--> 
warning C4251: ... needs to have dll-interface to be used by clients of
class ... 
warning C4275: non dll-interface class ... used as base for dll-interface
class ... 
<!--[if !supportEmptyParas]--> <!--[endif]--> 
I have added the preprocessor definitions that Amira requires, other then
that I have not altered the project files created by Cmake.  I am not very
familiar with linking between libraries. 
<!--[if !supportEmptyParas]--> <!--[endif]--> 
Thanks for any assistance 
<!--[if !supportEmptyParas]-->
-- 
Michael Hardisty
M.A.Sc Student
University of Toronto
Orthopaedic Biomechanics Laboratory
Sunnybrook & Women's College Health Sciences Centre 

-- 

Michael Hardisty

M.A.Sc Student

University of Toronto

Orthopaedic Biomechanics Laboratory

Sunnybrook & Women's College Health Sciences Centre

-- 

Michael Hardisty

M.A.Sc Student

University of Toronto

Orthopaedic Biomechanics Laboratory

Sunnybrook & Women's College Health Sciences Centre

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20040825/34fbfe7d/attachment-0001.html


More information about the Insight-users mailing list