[ITK] Problems compiling Python wrappings in current ITK master

Cory Quammen cory.quammen at kitware.com
Tue Aug 23 22:44:05 EDT 2016


Hi all,

I am attempting to compile ITK with Python wrappings on. I had this
working for ITK 4.9RC1, but current ITK master isn't so happy.

When I compile target ITKCommonCastXML, I get the following errors:

/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:40:50:
error: expected expression
    typedef itk::VectorContainer< unsigned long, > itkVectorContainerUL;
                                                 ^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:41:50:
error: expected expression
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                 ^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:41:53:
error: definition or redeclaration of 'Pointer' cannot name the global
scope
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                  ~~^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:41:53:
error: typedef declarator cannot be qualified
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                  ~~^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:41:60:
error: expected ';' after top level declarator
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                           ^
                                                           ;
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:49:50:
error: expected expression
    typedef itk::VectorContainer< unsigned long, > itkVectorContainerUL;
                                                 ^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:50:50:
error: expected expression
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                 ^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:50:53:
error: definition or redeclaration of 'Pointer' cannot name the global
scope
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                  ~~^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:50:53:
error: typedef declarator cannot be qualified
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;
                                                  ~~^
/Users/cory.quammen/bin/itk-default/Wrapping/itkVectorContainer.cxx:50:60:
error: expected ';' after top level declarator
    typedef itk::VectorContainer< unsigned long, >::Pointer
itkVectorContainerUL_Pointer;

And so on. I also get similar errors for

/Users/cory.quammen/bin/itk-default/Wrapping/itkMapContainer.cxx:27:47:
error: expected expression
    typedef itk::MapContainer< unsigned long, > itkMapContainerUL;

It seems as though the second template parameter for the UL wrapped
type is being left out.

Does anyone know what might be going on?

Thanks!
Cory

-- 
Cory Quammen
R&D Engineer
Kitware, Inc.


More information about the Community mailing list