<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey,<br>
<br>
I think I narrowed it down to my qtwinmigrate project not building
correctly. I was able to create a .lib as described below,<br>
but I think I need to include the MFC libraries from Visual Studio
somehow.<br>
<br>
I think so because a <font color="#3333ff">dumpbin /exports</font>
on the dll file gave pretty much nothing, it seems the dll does not
expose any functions and also I am getting __declspec and
__declimport errors during the <font color="#3333ff">nmake </font>process
when using the .lib file. The dumpbin result showed exported
functions when I removed the _AFXDLL include from the
qtwinmigrate.pri file, as it suggests when a build wihtout that
dependency is needed.<br>
<br>
So my question is: <br>
<br>
How can I tell the qtwinmigrate to include the MFC
headers/libraries? To be honest I haven't even found the files yet.<br>
<br>
Regards,<br>
Chris<br>
<br>
<br>
<br>
--------------------------------------------------------------------<br>
<br>
Hi,<br>
<br>
I am pretty close to building Python bindings for QtWinMigrate using
<a moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
</font></font>
<blockquote cite="mid:54D9160C.90003@arcor.de" type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<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</blockquote>
</blockquote>
<br>
</body>
</html>