[Insight-users] Errors building GIT source
Scott Johnson
Scott.Johnson at neuwave.com
Mon Aug 29 15:21:15 EDT 2011
Hello,
I was going to take a look at the new C# interfaces for ITK 4.0 so I cloned a copy of the GIT repository and went to town. I wasn't able to find a concise set of directions for building the source with wrappers, so I did what I thought was best. I was eventually able to build ITK without the wrappers but when I turned on wrapping things have failed repeatedly.
My environment looks like:
Windows 7 64-bit
VS 2008
CMake 2.85
Swig 2.0.4
Perl 6.4
Python 2.7
GCC-XML 0.9.0
CCache 2.4
I've cleared the CMake cache several times. I've deleted the binaries folder several times. I've done both several times. I've even cloned a fresh copy of the git repository to start over. (I did this today, so I'm up to date.) All to no avail. I've got to be missing something simple.
The general problem seems to be definition and usage of MetaObject. The errors look like:
17>In file included from C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx:22:
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:55: error: 'MetaObject' does not name a type
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:64: error: expected ',' or '...' before '*' token
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:64: error: ISO C++ forbids declaration of 'MetaObjectType' with no type
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: ISO C++ forbids declaration of 'MetaObjectType' with no type
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: 'MetaObjectType' declared as a 'virtual' field
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: expected ';' before '*' token
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: ISO C++ forbids declaration of 'MetaObjectType' with no type
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: 'MetaObjectType' declared as a 'virtual' field
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: expected ';' before '*' token
17>In file included from C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:87,
17> from C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx:22:
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx: In member function 'virtual typename itk::MetaConverterBase<VDimension>::SpatialObjectPointer itk::MetaConverterBase<VDimension>::ReadMeta(const char*)':
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'MetaObjectType' was not declared in this scope
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'mo' was not declared in this scope
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx: In member function 'virtual bool itk::MetaConverterBase<VDimension>::WriteMeta(const itk::SpatialObject<TDimension>*, const char*)':
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'MetaObject' was not declared in this scope
17>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'mo' was not declared in this scope
17>Project : error PRJ0019: A tool returned an error code from "Generating itkMetaConverterBase.xml"
I believe that if I can get MetaObject correctly defined that I can get a lot further.
Thanks
-- Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110829/642200d2/attachment.htm>
More information about the Insight-users
mailing list