[PyQt] Problem with snapshot and OpenGL

Phil Thompson phil at riverbankcomputing.com
Sat Feb 6 22:23:01 GMT 2010


On Sat, 6 Feb 2010 11:03:51 -0700, "Shane Holloway (TG)"
<shane at techgame.net> wrote:
> There are two frameworks on the OSX 10.5 build box.  
> 
> MacOSX10.5 sdk has both GLbitfield and GLenum as typedef unsigned int. 
The
> MacOSX10.4u sdk, however, has GLbitfield and GLenum as typedef unsigned
> long.  
> 
> I'm using python.org's distribution of Python 2.6.4, which is compiled
> against MacOSX10.4u.sdk, as lib/python2.6/config/Makefile testifies.

So if you configure SIP with "--sdk MacOSX10.4u.sdk" and rebuild it and
PyQt it should work?

Phil

> On Feb 3, 2010, at 3:34 PM, Phil Thompson wrote:
> 
>> Can you check you build box for how GLEnum and GLbitfield are being
>> defined?
>> 
>> 
>> On Wed, 3 Feb 2010 14:02:45 -0700, Brian Brown <rbb at techgame.net> wrote:
>>> Here you go:
>>> 
>>> Downloads/demangle% c++filt
>>> __ZN20QGLFramebufferObject15blitFramebufferEPS_RK5QRectS0_S3_mm
>>> 
>>> 	QGLFramebufferObject::blitFramebuffer(QGLFramebufferObject*, QRect
>> const&,
>>> 	QGLFramebufferObject*, QRect const&, unsigned long, unsigned long)
>>> 
>>> 
>>> Downloads/demangle% c++filt
>>> __ZN20QGLFramebufferObject15blitFramebufferEPS_RK5QRectS0_S3_jj
>>> 
>>> 	QGLFramebufferObject::blitFramebuffer(QGLFramebufferObject*, QRect
>> const&,
>>> 	QGLFramebufferObject*, QRect const&, unsigned int, unsigned int)
>>> 
>>> Thanks to Shane and finding that command :)
>> 
>> That implies that Qt is being built with GLenum and GLbitfield defined
as
>> unsigned long, but PyQt is being built as them defined as unsigned int.
>> 
>> gl.h on my (32 bit) Mac defines them as being unsigned int. (I'd be
>> surprised if it was any different on a 64 bit Mac.) What about your Mac?
>> 
>> Phil


More information about the PyQt mailing list