<div dir="ltr"><div>Hi Phil,</div><div>I tried that , <br></div><div>

<p style="margin:0px;white-space:pre-wrap">py> QtCore.PYQT_CONFIGURATION</p>
<p style="margin:0px;white-space:pre-wrap">{'sip_flags': '-t WS_WIN -t Qt_5_7_0'}</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">And in configure.py <br></p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">sip_cmd = " ".join([<br>    config.sip_bin,"-c", ".", "-b", build_file,<br>    "-t", "WS_WIN", "-t", "Qt_5_7_0",<br>    basename + ".sip"<br>])<br></p>
<p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">I still get <br>sip: HWND is undefined</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">My .sip files looks like this, should I be adding something else?</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap">%Module QtWinMigrate 0<br><br>%Platforms {WS_WIN}<br><br>%Import QtGui/QtGuimod.sip<br>%Import QtWidgets/QtWidgetsmod.sip<br><br>%Include qwinhost.sip<br>%Include qwinwidget.sip<br>%Include qmfcapp.sip<br><br></p><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 16, 2018 at 9:38 AM, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15 Jun 2018, at 9:27 pm, Andrew Cunningham <<a href="mailto:pyqt@a-cunningham.com">pyqt@a-cunningham.com</a>> wrote:<br>
> <br>
> HI,<br>
> <br>
> I am trying to create a QWinMigrate module using SIP for Qt5.7 I followed the instructions on <a href="https://cbuelter.wordpress.com/2015/02/11/compiling-pyqt-and-qtwinmigrate-for-3ds-max-2015/3/" rel="noreferrer" target="_blank">https://cbuelter.wordpress.<wbr>com/2015/02/11/compiling-pyqt-<wbr>and-qtwinmigrate-for-3ds-max-<wbr>2015/3/</a><br>
> <br>
> But I am stuck at the SIP step. I had to modify the .sip file for QT5<br>
> %Import QtCore/QtCoremod.sip<br>
> %Import QtGui/QtGuimod.sip<br>
> %Import QtWidgets/QtWidgetsmod.sip<br>
> <br>
> But I still get the error message <br>
> sip: HWND is undefined<br>
<br>
</span>You have to use the same -t and -x flags that were used to build the copy of PyQt5 you are building against. The only way to find these is to introspect PyQt5 using...<br>
<br>
<a href="http://pyqt.sourceforge.net/Docs/PyQt5/extension_api.html#python-api" rel="noreferrer" target="_blank">http://pyqt.sourceforge.net/<wbr>Docs/PyQt5/extension_api.html#<wbr>python-api</a><br>
<span class="HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>