[PyQt] Trouble installing PyQt on Mac

Yasir Suhail yasir.suhail at gmail.com
Thu Mar 5 00:15:20 GMT 2009


Unfortunately, configuring pyqt with "-p darwin-g++" and running make
gives the same error. Where can I download QT 3, so I can install it
correctly? How do I install QT 3 natively?

Thanks.

On Wed, Mar 4, 2009 at 4:58 PM, Phil Thompson
<phil at riverbankcomputing.com> wrote:
> On Wed, 4 Mar 2009 16:37:00 -0500, Yasir Suhail <yasir.suhail at gmail.com>
> wrote:
>> I did not provide any options when configuring sip. Do you suggest I
>> re-install sip with some specific options?
>>
>> I looked up sipconfig.py that config.py generated, and I think the
>> relevant section is:
>> # These are installation specific values created when SIP was configured.
>> _pkg_config = {
>>     'default_bin_dir':
>>     '/Library/Frameworks/Python.framework/Versions/2.5/bin',
>>     'default_mod_dir':
>>
> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages',
>>     'default_sip_dir':
>> '/Library/Frameworks/Python.framework/Versions/2.5/share/sip',
>>     'export_all':       0,
>>     'platform':         'macx-g++',
>>     'py_conf_inc_dir':
>> '/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5',
>>     'py_inc_dir':
>> '/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5',
>>     'py_lib_dir':
>> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config',
>>     'py_version':       0x020502,
>>     'sip_bin':
>> '/Library/Frameworks/Python.framework/Versions/2.5/bin/sip',
>>     'sip_config_args':  '',
>>     'sip_inc_dir':
>> '/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5',
>>     'sip_mod_dir':
>>
> '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages',
>>     'sip_version':      0x040709,
>>     'sip_version_str':  '4.7.9',
>>     'universal':        None
>> }
>
> Then it looks like you built Qt against X11, rather than native. If so then
> you will need to configure sip with "-p darwin-g++" to match. It may work -
> but PyQt doesn't support Qt/X11 builds on Mac (ie. its not tested).
>
> Phil
>
>> On Wed, Mar 4, 2009 at 4:16 PM, Phil Thompson
>> <phil at riverbankcomputing.com> wrote:
>>> On Wed, 4 Mar 2009 16:07:14 -0500, Yasir Suhail <yasir.suhail at gmail.com>
>>> wrote:
>>>> Sure,
>>>> my sip version is 4.7.9. Found as
>>>> $ python
>>>> Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
>>>> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>> import sip
>>>>>>> sip.SIP_VERSION_STR
>>>> '4.7.9'
>>>>>>> sip.SIP_VERSION
>>>> 263945
>>>>
>>>> I am trying to install from PyQt-mac-gpl-3.17.6
>>>>
>>>> The QT I have is 3.3.8
>>>> $ /opt/local/lib/qt3/bin/qmake --version
>>>> Qmake version: 1.07a (Qt 3.3.8)
>>>> Qmake is free software from Trolltech ASA.
>>>>
>>>>
>>>> I hope that helps. I'll be glad to provide any other information.
>>>
>>> How did you configure SIP?
>>>
>>> It looks like you used -p darwin-g++ (ie. to build against Qt/X11)
> rather
>>> than the default.
>>>
>>> Phil
>>>
>>>> On Wed, Mar 4, 2009 at 3:52 PM, Adam Tenderholt <atenderholt at gmail.com>
>>>> wrote:
>>>>> You should probably specify which versions of PyQt and SIP you are
>>> using.
>>>>>
>>>>> On Wed, Mar 4, 2009 at 9:53 AM, Yasir Suhail <yasir.suhail at gmail.com>
>>>>> wrote:
>>>>>> I have Python 2.5, GCC 4.0, SIP, and QT3 installed. After running
>>>>>> $ python configure.py -q /opt/local/lib/qt3/
>>>>>>
>>>>>> I run make and it gives the following errors. Any ideas on what is
>>> going
>>>>>> on?
>>>>>>
>>>>>> $ make
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtcmodule.o sipqtcmodule.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQPtrList.o sipqtQPtrList.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWorkspace.o sipqtQWorkspace.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWMatrix.o sipqtQWMatrix.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWizard.o sipqtQWizard.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWidgetStack.o sipqtQWidgetStack.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWidgetList.o sipqtQWidgetList.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWhatsThis.o sipqtQWhatsThis.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQWaitCondition.o sipqtQWaitCondition.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQVGroupBox.o sipqtQVGroupBox.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQVButtonGroup.o sipqtQVButtonGroup.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQVBox.o sipqtQVBox.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQVariant.o sipqtQVariant.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQValueList.o sipqtQValueList.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQRegExpValidator.o sipqtQRegExpValidator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQDoubleValidator.o sipqtQDoubleValidator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQIntValidator.o sipqtQIntValidator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQValidator.o sipqtQValidator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQUuid.o sipqtQUuid.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQUrlOperator.o sipqtQUrlOperator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQUrlInfo.o sipqtQUrlInfo.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQUrl.o sipqtQUrl.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQTranslator.o sipqtQTranslator.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQTranslatorMessage.o sipqtQTranslatorMessage.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQToolTip.o sipqtQToolTip.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQToolTipGroup.o sipqtQToolTipGroup.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQToolButton.o sipqtQToolButton.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQToolBox.o sipqtQToolBox.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQToolBar.o sipqtQToolBar.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQTimer.o sipqtQTimer.cpp
>>>>>> g++-4.0 -c -pipe -fPIC -Os -Wall -W -D__DARWIN_X11__ -DQT_NO_DEBUG
>>>>>> -DQT_THREAD_SUPPORT -I. -I/opt/local/lib/qt3/include
>>>>>> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
>>>>>> -I/opt/local/lib/qt3/mkspecs/default -I/usr/X11R6/include -o
>>>>>> sipqtQThread.o sipqtQThread.cpp
>>>>>> sipqtQThread.cpp: In function 'PyObject*
>>>>>> meth_QThread_currentThread(PyObject*, PyObject*)':
>>>>>> sipqtQThread.cpp:143: error: invalid conversion from 'long unsigned
>>>>>> int' to 'void*'
>>>>>> make[1]: *** [sipqtQThread.o] Error 1
>>>>>> make: *** [all] Error 2
>>>>>> _______________________________________________
>>>>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>>>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> PyQt mailing list    PyQt at riverbankcomputing.com
>>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>>
>>>
>>
>



More information about the PyQt mailing list