[ITK] Problems compiling Python wrappings in current ITK master

Cory Quammen cory.quammen at kitware.com
Wed Aug 24 14:41:31 EDT 2016


Thanks for responding, Matt.

More details on posted on this tomviz pull request:

https://github.com/OpenChemistry/tomviz/pull/567

Thanks,
Cory

On Wed, Aug 24, 2016 at 8:22 AM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> Hi Cory,
>
> Are there non-default CMake options for the build?
>
> Thanks,
> Matt
>
> On Tue, Aug 23, 2016 at 10:44 PM, Cory Quammen <cory.quammen at kitware.com>
> wrote:
> > 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.
> > _______________________________________________
> > Community mailing list
> > Community at itk.org
> > http://public.kitware.com/mailman/listinfo/community
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160824/3a954040/attachment.html>


More information about the Community mailing list