[ITK] Problems compiling Python wrappings in current ITK master

Matt McCormick matt.mccormick at kitware.com
Wed Aug 24 08:22:08 EDT 2016


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


More information about the Community mailing list