[PyQt] SIP "-Zc:wchar_t-" to "-Zc:wchar_t"

Phil Thompson phil at riverbankcomputing.com
Mon Apr 9 18:57:22 BST 2018


On 9 Apr 2018, at 11:06 am, Kund Gordos <gordos.kund at gmail.com> wrote:
> 
> Hi!
> 
> If I try to compile my own Qt related dll as python module, I will receive QChar and wchar_t errors in SIP generated files.
> Qt version: 5.10.1 / SIP version: 4.19.8 / PyQt5 version 5.10.1.
> 
> I have spent a lot of time with debugging and I have found a solution:
> If I replace "-Zc:wchar_t-" to "-Zc:wchar_t" in two places in sipconfig.py file it will be compiled well.
> 
> Please change these compiler flags in next releases!

sipconfig.py is deprecated. The current values are correct for Qt4 but incorrect for Qt5. Your best bet is to import sysconfig then fix the data structures.

Phil


More information about the PyQt mailing list