[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
Thu Jul 12 08:22:37 EDT 2018


See https://gitlab.kitware.com/vtk/vtk/issues/17350 for bug report and
patches.
Thanks for bringing this issue to my attention.

 - David

On Tue, Jul 10, 2018 at 11:42 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> 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/20180712/c2014d59/attachment.html>


More information about the vtkusers mailing list