<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote cite="mid:54D7938F.4020702@arcor.de" type="cite"> Hello,<br>
<br>
I am trying to create a python binding for the <a
moz-do-not-send="true"
href="https://qt.gitorious.org/qt-solutions/qt-solutions/source/67a72e3bc2e49ffc9e99b9845b1c314bf86f6941:qtwinmigrate">QtWinMigrate
</a>library on Windows, but I am having problems with the final
steps.<br>
I managed to build sip, Qt 4.8.5 and PyQt 4.11.3. There are
existing sip files for QtWinMigrate at: <a moz-do-not-send="true"
href="https://github.com/glennra/PyQtWinMigrate">https://github.com/glennra/PyQtWinMigrate</a><br>
<br>
Now here is the part I am not really sure about:<br>
<br>
I copied the sip files to: C:\PyQt-win-gpl-4.11.3\sip and tried to
run:<br>
<font color="#3333ff">cd C:\PyQt-win-gpl-4.11.3\sip<br>
sip -c . -I . QtWinMigrate.sip</font><br>
<br>
Which fails with:<br>
<font color="#cc0000">sip: Q_PID is undefined</font><br>
<br>
I then tried:<br>
<font color="#3333ff">sip -c . -I . -t WS_WIN QtWinMigrate.sip</font><br>
<br>
Which fails with:<br>
<font color="#cc0000">sip: HWND is undefined</font><br>
<br>
So either way something is missing and I have no idea how to add
it.<br>
<br>
Any ideas what I am doing wrong?<br>
<br>
Cheers,<br>
Chris<br>
</blockquote>
<br>
Hi,<br>
<br>
I am pretty close to building Python bindings for QtWinMigrate using
<a href="https://github.com/glennra/PyQtWinMigrate">these sip files</a>,
Qt 4.8.5, Python 2.7.3 and nmake on Windows.<br>
<br>
I have my own little configure.py to use sip's build system to
create a Makefile, sipAPI*.h and sip*.cpp files based on the
QtWinMigrate.sip.<br>
The two needed moc files I created manually like: <font
color="#3333ff">moc -o moc_qwinwidget.h qwinwidget.h</font><br>
Please see the complete Makefile here: <a
href="http://pastebin.com/WG1WRTGw">http://pastebin.com/WG1WRTGw<br>
</a><br>
However the Makefile somehow misses some includes, which I added
manually (line 8, headers for Qt and QtWinMigrate).<br>
It also seems to expect a QtWinMigrate.lib, which I am not sure how
to create and setup properly.<br>
<br>
When I build the qtwinmigrate project using:<br>
<font color="#3333ff">cd qtwinmigrate<br>
configure -library<br>
qmake<br>
nmake<br>
<font color="#000000">it will build a .dll, .exp and .lib in the \lib
directory, but named like
QtSolutions_MFCMigrationFramework-head.lib.<br>
<br>
Is that the one I need? How to reference it correctly in the
Makefile?<br>
Btw, do I have to reference the MFC libraries/headers somehow?<br>
<br>
Thanks for your help,<br>
Chris<br>
</font><br>
</font><br>
</body>
</html>