[PyKDE] Errors making PyQt Windows DLL

Phil Thompson phil at river-bank.demon.co.uk
Fri Jun 29 00:36:03 BST 2001


Erik Weber wrote:
> 
> Doug Bell wrote:
> > > Erik Weber wrote:
> > > > I get unresolved externals in attempting to link the PYQt bindings on
> > > > Windows.  I suspect that I am failing to correctly build the SIP
> library,
> > > > but can find no documentation on how to do this.  I installed sip-2.4
> and
> > > > compiled sip.lib there, but it does not reference the qt*.sip files,
> so I
> > > > assume I am compling a sip.lib with no bindings.  How do I create a
> sip.lib
> > > > for PyQt?
> > > Read the file INSTALL.win32 - there is one for SIP and PyQt.
> > > Otherwise, which symbols?
> > I am also having problems building SIP using MSVC.  I have the new QT
> > Non-Commercial edition installed (I'd like to be able to give a couple
> > of apps I've written from Linux to some MS-only friends).  This is the
> > error message I'm getting:
> >
> > moc_sipQt.obj : error LNK2001: unresolved external symbol "class
> QApplication *
> > qApp" (?qApp@@3PAVQApplication@@A)
> > sip.dll : fatal error LNK1120: 1 unresolved externals
> > NMAKE : fatal error U1077: 'C:\PROGRA~1\MSVISU~1\VC98\BIN\link.exe' :
> > return code '0x460'
> 
> I got this error first by using the 'Makefile.win32-msvc.'  When I switched
> to 'Makefile.win32-msvc.static,'  Those errors went away and my sip build
> completed (producing the static library 'sip.lib' as opposed to an import
> library 'sip.lib' plus 'sip.dll.'  When I attempt to link the PyQt bindings
> with this library, however, I get many link errors like:

Since I stopped releasing PyQt binaries for Windows I no longer test the
DLL build so there could be problems. I regularly test the static
library build because that's what BlackAdder uses. I'll get back to
testing the DLL build when I start using the new non-commercial Windows
binary.

Phil




More information about the PyQt mailing list