[PyKDE] Errors making PyQt Windows DLL

Doug Bell dougbell at mnsinc.com
Thu Jun 28 03:40:15 BST 2001


> > > 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:
> 
> ============================================================================
> ==
> 
> sipqtQObject.obj : error LNK2001: unresolved external symbol
> "__declspec(dllimport) struct _object * __cdecl sipDisconnectRx(struct
> _object *,char *,struct _object *,char *)"
> (__imp_?sipDisconnectRx@@YAPAU_object@@PAU1 at PAD01@Z)
> 
> ============================================================================
> ==
> 
> I have no clue as to what needs to be linked to resolve these.
> 
>   -Erik Weber

I get the same errors you do - only the static version of SIP will
compile, then there are many unresolved symbols when linking PyQt.  

I am also very short on clues...

Doug.




More information about the PyQt mailing list