[vtk-developers] Error building Python wrappings of member functions that return vtkVector2i/f with VS2010

David Gobbi david.gobbi at gmail.com
Thu Jun 2 09:37:10 EDT 2011


The VTK dashboard tests the VTK 5.8 branch on VS2010 with
Python every night and has never shown this issue.  On your
system, the problem might be an incorrectly generated hierarchy file
Filtering/vtkRenderingHierarchy.txt, can you open this file in an
editor on both your Windows build and OS X build to see if the
vtkVector2i entries are the same in each?

Also, just to confirm, do your OS X build and VS2010 build use git
checkouts from the same date?  Because the vtkVector header file was
recently moved into the VTK/Common directory, and that is what most
likely triggerred this issue.

 - David


On Thu, Jun 2, 2011 at 6:59 AM, Takuya OSHIMA
<oshima at eng.niigata-u.ac.jp> wrote:
> Hi,
>
> Trying to build VTK 5.8 branch head on a Windows7/VS2010 system with
> Python wrapping ON, I am getting errors compiling Python-wrapper
> generated code of class member functions that return vtkVector2i or
> vtkVector2f objects.
>
> For example, in the Python-wrapper generated code of
> vtkFreeTypeStringToImage, vtkFreeTypeStringToImagePython.cxx, a piece
> of wrapping code for vtkFreeTypeStringToImage::GetBounds()
>
> static PyObject *
> PyvtkFreeTypeStringToImage_GetBounds_s1(PyObject *self, PyObject *args)
> {
>  vtkPythonArgs ap(self, args, "GetBounds");
>  vtkObjectBase *vp = ap.GetSelfPointer(self, args);
>  vtkFreeTypeStringToImage *op = static_cast<vtkFreeTypeStringToImage *>(vp);
>
>  vtkTextProperty *temp0 = NULL;
>  vtkUnicodeString temp1;
>  vtkVector2i tempr;
>  .....(snip).....
>
> invokes 'undefined type vtkVector2i' at the declaration of variable tempr.
>
> However, if I build the 5.8 branch head on OS X, the wrapping of
> GetBounds() is omitted from the generated *Python.cxx and the whole
> VTK builds fine.
>
> Any thoughts?
>
> Takuya
>
> Takuya OSHIMA, Ph.D.
> Faculty of Engineering, Niigata University
> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



More information about the vtk-developers mailing list