[vtkusers] Error compilling with mingw

David Cole david.cole at kitware.com
Thu Dec 7 10:38:14 EST 2006


This has been fixed in the main trunk of CVS VTK and also in the VTK-5-0
branch. If you pull the source tree for VTK from CVS, it should be fixed.
Alternatively, you can simply edit vtkPythonUtil.cxx and change the "char *"
to "const char *" on line 771...

Hope this helps,
David Cole


On 12/7/06, Wolfgang <wollez at gmx.net> wrote:
>
> Hello,
>
> I'm quite new to VTK but I want tu use the python (2.5) bindings. During
> compillation with mingw32 I get the following error:
>
> [ 13%] Building CXX object
> Common/CMakeFiles/vtkCommonPythonD.dir/vtkPythonUtil.
> obj
> C:\VTK\Common\vtkPythonUtil.cxx: In function `PyObject*
> PyVTKClassMetaType_GetAt
> tr(PyTypeObject*, char*)':
> C:\VTK\Common\vtkPythonUtil.cxx:771: error: invalid conversion from
> `const char*
> ' to `char*'
> mingw32-make[2]: ***
> [Common/CMakeFiles/vtkCommonPythonD.dir/vtkPythonUtil.obj]
> Error 1
> mingw32-make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
> Any Ideas?
> Wolfgang
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061207/7f0404ea/attachment.htm>


More information about the vtkusers mailing list