<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>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.&nbsp; I wasn&#8217;t able to find a concise set of directions for building the source with wrappers, so I did what I thought was best.&nbsp; I was eventually able to build ITK without the wrappers but when I turned on wrapping things have failed repeatedly.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>My environment looks like:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Windows 7 64-bit<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>VS 2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>CMake 2.85<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Swig 2.0.4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Perl 6.4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Python 2.7<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>GCC-XML 0.9.0<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>CCache 2.4<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve cleared the CMake cache several times.&nbsp; I&#8217;ve deleted the binaries folder several times.&nbsp; I&#8217;ve done both several times.&nbsp; I&#8217;ve even cloned a fresh copy of the git repository to start over.&nbsp; (I did this today, so I&#8217;m up to date.)&nbsp; All to no avail.&nbsp; I&#8217;ve got to be missing something simple.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The general problem seems to be definition and usage of MetaObject.&nbsp; The errors look like:<o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;In file included from C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx:22:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:55: error: 'MetaObject' does not name a type<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:64: error: expected ',' or '...' before '*' token<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:64: error: ISO C++ forbids declaration of 'MetaObjectType' with no type<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: ISO C++ forbids declaration of 'MetaObjectType' with no type<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: 'MetaObjectType' declared as a 'virtual' field<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: expected ';' before '*' token<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: ISO C++ forbids declaration of 'MetaObjectType' with no type<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: 'MetaObjectType' declared as a 'virtual' field<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: expected ';' before '*' token<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;In file included from C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:87,<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx:22:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx: In member function 'virtual typename itk::MetaConverterBase&lt;VDimension&gt;::SpatialObjectPointer itk::MetaConverterBase&lt;VDimension&gt;::ReadMeta(const char*)':<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'MetaObjectType' was not declared in this scope<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'mo' was not declared in this scope<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx: In member function 'virtual bool itk::MetaConverterBase&lt;VDimension&gt;::WriteMeta(const itk::SpatialObject&lt;TDimension&gt;*, const char*)':<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'MetaObject' was not declared in this scope<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'mo' was not declared in this scope<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Courier New"'>17&gt;Project : error PRJ0019: A tool returned an error code from &quot;Generating itkMetaConverterBase.xml&quot;<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I believe that if I can get MetaObject correctly defined that I can get a lot further.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Scott<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>