[Insight-users] Syntax Errors and not Using Cmake

Michael Hardisty m.hardisty at utoronto.ca
Wed Aug 25 11:18:51 EDT 2004


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:
 
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.
 
Similarly when I use Cmake and attempt to build the Amira libraries into 
it I get similar syntax error messages such as:
 
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 
 
I also seem to get a lot of the two following warnings:
 
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 ...
 
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.
 
Thanks for any assistance

-- 
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/dbafd64c/attachment.html


More information about the Insight-users mailing list