[PyQt] can SIP 3.3 and PyQt 3.3, built with Python 2.7.1 ?

Vivek Narvekar Vivek.Narvekar at mscsoftware.com
Thu Nov 10 06:50:45 GMT 2011


Hello Phil,

I was trying to build SIP 3.3 and PyQt 3.3, with Python 2.7.1 and was able to build SIP successfully.
Then, I tried building PyQt, where, the first module ie qt module got build successfully.
but there was a linking error, while building qtgl module as follows

sipqtglQGLContext.obj : error LNK2019: unresolved external symbol "private: stat
ic class QGLContext * QGLContext::currentCtx" (?currentCtx at QGLContext@@0PEAV1 at EA
) referenced in function "public: static class QGLContext const * __cdecl QGLCon
text::currentContext(void)" (?currentContext at QGLContext@@SAPEBV1 at XZ)
r:\bld\release\python\win64\Lib\site-packages\libqtglc.pyd : fatal error LNK1120
: 1 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"R:\imports\qt\qt3\bin\nmake.exe"' : return code '0x
2'
Stop.


I checked out qgl.h and found that QGLContext had following definition 

class QM_EXPORT_OPENGL QGLContext : public QGL
{
public:
   	// some member functions
    static const QGLContext*	currentContext();
        
protected:
	// some member functions

private:
	// some member functions
    static QGLContext*	currentCtx;
};

What could be the possible reason for this ?

Thanks a lot for helping
Regards
Vivek



-----Original Message-----
From: Vivek Narvekar 
Sent: 08 November 2011 16:43
To: 'Phil Thompson'
Subject: RE: [PyQt] can SIP 3.3 and PyQt 3.3, built with Python 2.7.1 ?

Thanks a lot Phil.

-----Original Message-----
From: Phil Thompson [mailto:phil at riverbankcomputing.com] 
Sent: 08 November 2011 14:42
To: Vivek Narvekar
Cc: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] can SIP 3.3 and PyQt 3.3, built with Python 2.7.1 ?

On Mon, 7 Nov 2011 21:53:49 -0800, "Vivek Narvekar"
<Vivek.Narvekar at mscsoftware.com> wrote:
> Hello,
> 
>  
> 
> I wanted to know if  SIP 3.3 and PyQt 3.3, can be built with Python
> 2.7.1 ?
> 
> are they compatible ?

Probably.

Phil


More information about the PyQt mailing list