[PyQt] PyQt 'make' fails on Leopard Default Py install

Andy Davidoff adavidoff at smytheonline.com
Tue Oct 30 18:52:39 GMT 2007


The simple solution is to link /Library/Frameworks/Python/.../site- 
packages to /System/Library/...Python...site-packages.  Then your  
package installations will be visible to the normal python instance.

With that minor change I was able to install pyqt-4.3.1 without any  
issues.


On Oct 30, 2007, at 2:20 PM, Scott Willman wrote:
> Mac OSX Leopard 10.5
> Python 2.5.1 (default install)
>
> Qt Opensource 4.3.2
> sip 4.7.1
> PyQt Mac 4.3.1
>
> I just got my new OSX 10.5 (leopard) and am trying to set up Qt,  
> Sip, and PyQt with the default install of Python. Everything goes  
> fine until the latter half of the make for PyQt. The make returns  
> the error at the bottom of this post. I've checked for all of the  
> frameworks specified in the c++ statement and they all seem to be  
> there. However, some are in /System/Library/Frameworks and some  
> (including the Qt) are in /Library/Frameworks. I've been trying to  
> get this for two days now, any ideas?
>
> On another note, /System/Library/Frameworks/Python.framework/ 
> Versions/2.5/lib/python2.5/site-packages was not in the path  
> initially and had to be added with a .pth file.
>
>
> Make Error:
>
> c++ -headerpad_max_install_names -bundle -F/System/Library/ 
> Frameworks -framework Python -o QtOpenGL.so sipQtOpenGLcmodule.o  
> sipQtOpenGLQGLPixelBuffer.o sipQtOpenGLQGLFramebufferObject.o  
> sipQtOpenGLQGLColormap.o sipQtOpenGLQGLWidget.o  
> sipQtOpenGLQGLContext.o sipQtOpenGLQGLFormatOpenGLVersionFlags.o  
> sipQtOpenGLQGLFormat.o sipQtOpenGLQGLFormatOptions.o  
> sipQtOpenGLQGL.o -F/Library/Frameworks -L/Library/Frameworks - 
> framework QtOpenGL -framework OpenGL -framework AGL -framework QtGui  
> -framework Carbon -framework AppKit -framework QtCore -lz -lm - 
> liconv -framework ApplicationServices -framework QtGui -framework  
> Carbon -framework AppKit -framework QtCore -lz -lm -liconv - 
> framework ApplicationServices -framework QtCore -lz -lm -liconv - 
> framework ApplicationServices -framework OpenGL -framework AGL
> Undefined symbols:
>   "QGLContext::deleteTexture(unsigned int)", referenced from:
>       _meth_QGLContext_deleteTexture in sipQtOpenGLQGLContext.o
>   "QGLWidget::bindTexture(QImage const&, unsigned int, int)",  
> referenced from:
>       _meth_QGLWidget_bindTexture in sipQtOpenGLQGLWidget.o
>   "QGLFramebufferObject::QGLFramebufferObject(QSize const&,  
> QGLFramebufferObject::Attachment, unsigned int, unsigned int)",  
> referenced from:
>       sipQGLFramebufferObject::sipQGLFramebufferObject(QSize const&,  
> QGLFramebufferObject::Attachment, unsigned int, unsigned int)in  
> sipQtOpenGLQGLFramebufferObject.o
>   "QGLContext::bindTexture(QPixmap const&, unsigned int, int)",  
> referenced from:
>       _meth_QGLContext_bindTexture in sipQtOpenGLQGLContext.o
>   "QGLPixelBuffer::bindToDynamicTexture(unsigned int)", referenced  
> from:
>       _meth_QGLPixelBuffer_bindToDynamicTexture in  
> sipQtOpenGLQGLPixelBuffer.o
>   "QGLPixelBuffer::bindTexture(QPixmap const&, unsigned int)",  
> referenced from:
>       _meth_QGLPixelBuffer_bindTexture in sipQtOpenGLQGLPixelBuffer.o
>   "QGLPixelBuffer::deleteTexture(unsigned int)", referenced from:
>       _meth_QGLPixelBuffer_deleteTexture in  
> sipQtOpenGLQGLPixelBuffer.o
>   "QGLContext::bindTexture(QImage const&, unsigned int, int)",  
> referenced from:
>       _meth_QGLContext_bindTexture in sipQtOpenGLQGLContext.o
>   "QGLPixelBuffer::bindTexture(QImage const&, unsigned int)",  
> referenced from:
>       _meth_QGLPixelBuffer_bindTexture in sipQtOpenGLQGLPixelBuffer.o
>   "QGLFramebufferObject::QGLFramebufferObject(int, int,  
> QGLFramebufferObject::Attachment, unsigned int, unsigned int)",  
> referenced from:
>       sipQGLFramebufferObject::sipQGLFramebufferObject(int, int,  
> QGLFramebufferObject::Attachment, unsigned int, unsigned int)in  
> sipQtOpenGLQGLFramebufferObject.o
>   "QGLWidget::deleteTexture(unsigned int)", referenced from:
>       _meth_QGLWidget_deleteTexture in sipQtOpenGLQGLWidget.o
>   "QGLPixelBuffer::updateDynamicTexture(unsigned int) const",  
> referenced from:
>       _meth_QGLPixelBuffer_updateDynamicTexture in  
> sipQtOpenGLQGLPixelBuffer.o
>   "QGLFramebufferObject::QGLFramebufferObject(int, int, unsigned  
> int)", referenced from:
>       sipQGLFramebufferObject::sipQGLFramebufferObject(int, int,  
> unsigned int)in sipQtOpenGLQGLFramebufferObject.o
>   "QGLWidget::bindTexture(QPixmap const&, unsigned int, int)",  
> referenced from:
>       _meth_QGLWidget_bindTexture in sipQtOpenGLQGLWidget.o
>   "QGLFramebufferObject::QGLFramebufferObject(QSize const&, unsigned  
> int)", referenced from:
>       sipQGLFramebufferObject::sipQGLFramebufferObject(QSize const&,  
> unsigned int)in sipQtOpenGLQGLFramebufferObject.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [QtOpenGL.so] Error 1
> make: *** [all] Error 2
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the PyQt mailing list