<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 have cloned a new copy of ITK from git and am running into errors trying to build it.&nbsp; I can build straight ITK fine, but get errors attempting to build the wrappers.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>My environment:<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'>VC 2008<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>cmake Version 2.8.5<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>gccxml Version 0.9.0&nbsp; (Packaged with CableSwig)<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>cswig Version 1.3.20<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve tracked the problem down to the execution of gccxml on several files.&nbsp; As an example I&#8217;ve picked the generation of itkMetaConverterBase.xml (but it happens with others as well).&nbsp; If I execute the same command in a cmd window I get the following output:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>Microsoft Windows [Version 6.1.7600]<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>Copyright (c) 2009 Microsoft Corporation.&nbsp; All rights reserved.<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p>&nbsp;</o:p></p><p class=MsoNormal style='margin-left:.5in'>C:\Windows\System32&gt;C:\development\ITK\CableSwigBinaries\bin\Release\gccxml.exe -fxml-start=_cable_ -fxml=C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.xml --gccxml-gcc-options C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/gcc_xml.inc -DCSWIG-DCABLE_CONFIGURATION -DITK_MANUAL_INSTANTIATION C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>In file included from C:/development/ITK/Binaries2/Wrapping/WrapITK/Libraries/ITKSpatialObjects/itkMetaConverterBase.cxx:21:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:55: error: 'MetaObject' does not name a type<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:64: error: expected ',' or '...' before '*' token<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>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></p><p class=MsoNormal style='margin-left:.5in'>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></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: 'MetaObjectType' declared as a 'virtual' field<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:67: error: expected ';' before '*' token<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>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></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: 'MetaObjectType' declared as a 'virtual' field<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:76: error: expected ';' before '*' token<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>In file included from C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.h:86,<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>&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:21:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>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></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'MetaObjectType' was not declared in this scope<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:33: error: 'mo' was not declared in this scope<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>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></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'MetaObject' was not declared in this scope<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>C:/development/ITK/Trunk2/Modules/Core/SpatialObjects/include/itkMetaConverterBase.hxx:46: error: 'mo' was not declared in this scope<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The key problem seems to be that gccxml doesn&#8217;t think that the MetaObject class has been defined.&nbsp; I&#8217;ve looked through gcc-xml.inc and it seems to have the proper paths to find metaobject.h.&nbsp; I&#8217;m not sure why gccxml can&#8217;t find it or why it thinks MetaObject is not defined.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Does anyone have any advice on what is going wrong?<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>