[vtkusers] Build VTK 8.1.1 on Windows vc12 - vtkPythonArgs.cxx Line 105 Error cannot convert from 'const char *' to 'char *
David Gobbi
david.gobbi at gmail.com
Tue Jul 10 13:42:03 EDT 2018
It looks like the Python folks changed the PyUnicode_AsUTF8() function in
Python 3.7. This function used to return "char *" but in 3.7 it returns
"const char *".
I'll start working on a patch for the VTK master branch, but for now your
best option is to use Python 3.6.
- David
On Tue, Jul 10, 2018 at 8:41 AM, Camilo Diaz <k.diaz99 at gmail.com> wrote:
> Hello,
>
> Compiling VTK 8.1.1 + python wrapper on visual studio 2013 throws this
> error:
>
> error C2440: '=' : cannot convert from 'const char *' to 'char *'
> D:\VTK-8.1.1\Wrapping\PythonCore\vtkPythonArgs.cxx 105 1
> vtkWrappingPythonCore
>
> I installed Python 3.7 in a windows 10 pc.
> I used cmake-gui to build the project.
>
> I'll appreciate any help.
>
> --
> Kmilo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180710/b81be4d5/attachment.html>
More information about the vtkusers
mailing list