Jeffrey Lam - 2020-07-14

Hello PythonQt Team,

I am writing to you as I am having issues building PythonQt.

A bit of background: I am currently on Python 2.7 (from prebuilt Python installer) as well as Qt 5.12.6 and get the following issue below when running “nmake” in the x86 Native Tools Command Prompt for VS 2019.

paraview\PythonQt\src\PythonQtConversion.h(493): error C2664: 'PyObject PyObject_CallMethod(PyObject ,char ,char ,...)': cannot convert argument 2 from 'const char [6]' to 'char *'

followed by:

Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

Note I tried to refer to https://sourceforge.net/p/pythonqt/discussion/631393/thread/4608e69f/ but it didn’t seem to apply to my case as I don’t use Miniconda.

Any help or guidance would greatly be appreciated.