[PyQt] 64 bits and Snow Leopard make me crazy
Massimo Di Stefano
massimodisasha at yahoo.it
Thu Feb 25 13:33:59 GMT 2010
Hi You need the 64bit version of Qt (cocoa)
then to build sip and pyqt i used :
SIP :
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin \
-e /usr/local/include -v /usr/local/share/sip --arch=x86_64
PYQT :
python2.6 configure.py -d /Library/Python/2.6/site-packages -b /usr/local/bin --use-arch x86_64
i hope this help.
Il giorno 25/feb/2010, alle ore 14.18, <projetmbc at club-internet.fr> <projetmbc at club-internet.fr> ha scritto:
> Hello,
> I've downloaded qt-sdk-mac-opensource-2010.02.dmg . I've installed it.
>
> Then I've downloaded PyQt-mac-gpl-4.7 and sip-4.10.
>
> I've compiled sip using the following commands :
>
> python3.1 configure.py
> make
> sudo make install
>
> No problem.
>
> Then I decide, because I'm a crazy man :-) to compile pyqt using the following commands :
>
> python3.1 configure.py
> make
> sudo make install
>
> The make gives me the following "boring" error :
> ------------------------------------------------------------------------------------------------------------------------------------------------
> /Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error:
> #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."
> sipQtCorecmodule.cpp: In function ‘PyObject* PyInit_QtCore()’:
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_init’
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_index’
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_copy’
> make[1]: *** [sipQtCorecmodule.o] Error 1
> make: *** [all] Error 2
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
> What can I do ? Must I use another framework like wxPython ?
>
> Best regards.
> Christophe.
>
> === The whole message given by make ====
>
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_chimera.o qpycore_chimera.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_chimera_signature.o qpycore_chimera_signature.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_chimera_storage.o qpycore_chimera_storage.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_init.o qpycore_init.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_misc.o qpycore_misc.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_post_init.o qpycore_post_init.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtboundsignal.o qpycore_pyqtboundsignal.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtconfigure.o qpycore_pyqtconfigure.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtproperty.o qpycore_pyqtproperty.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtproxy.o qpycore_pyqtproxy.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtpyobject.o qpycore_pyqtpyobject.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtsignal.o qpycore_pyqtsignal.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_pyqtslot.o qpycore_pyqtslot.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qmetaobject.o qpycore_qmetaobject.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qmetaobject_helpers.o qpycore_qmetaobject_helpers.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qobject_helpers.o qpycore_qobject_helpers.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qstring.o qpycore_qstring.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qstringlist.o qpycore_qstringlist.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_sip_helpers.o qpycore_sip_helpers.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_types.o qpycore_types.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o qpycore_qvariant.o qpycore_qvariant.cpp
> /Developer/Tools/Qt/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -D__APPLE__ -D__GNUC__ qpycore_pyqtproxy.h -o moc_qpycore_pyqtproxy.cpp
> g++ -c -pipe -fno-strict-aliasing -O2 -arch i386 -fPIC -Wall -W -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Qt4.6/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/Versions/4/Headers -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/Versions/4/Headers -I/usr/include/QtGui -I/usr/include -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I../../QtCore -I. -I. -F/Library/Frameworks -o moc_qpycore_pyqtproxy.o moc_qpycore_pyqtproxy.cpp
> rm -f libqpycore.a
> ar cq libqpycore.a qpycore_chimera.o qpycore_chimera_signature.o qpycore_chimera_storage.o qpycore_init.o qpycore_misc.o qpycore_post_init.o qpycore_pyqtboundsignal.o qpycore_pyqtconfigure.o qpycore_pyqtproperty.o qpycore_pyqtproxy.o qpycore_pyqtpyobject.o qpycore_pyqtsignal.o qpycore_pyqtslot.o qpycore_qmetaobject.o qpycore_qmetaobject_helpers.o qpycore_qobject_helpers.o qpycore_qstring.o qpycore_qstringlist.o qpycore_sip_helpers.o qpycore_types.o qpycore_qvariant.o moc_qpycore_pyqtproxy.o
> ranlib -s libqpycore.a
> g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/Users/cbal/Downloads/PyQt-mac-gpl-4.7/qpy/QtCore -I/Library/Frameworks/Python.framework/Versions/3.1/include/python3.1 -I/mkspecs/macx-g++ -I/Library/Frameworks/QtCore.framework/Headers -I/usr/include -F/Users/cbal/Downloads/PyQt-mac-gpl-4.7/qpy/QtCore -F/Library/Frameworks -o sipQtCorecmodule.o sipQtCorecmodule.cpp
> In file included from /Library/Frameworks/QtCore.framework/Headers/qmetatype.h:45,
> from /Library/Frameworks/QtCore.framework/Headers/QMetaType:1,
> from sipAPIQtCore.h:40,
> from sipQtCorecmodule.cpp:34:
> /Library/Frameworks/QtCore.framework/Headers/qglobal.h:288:2: error: #error "You are building a 64-bit application, but using a 32-bit version of Qt. Check your build configuration."
> sipQtCorecmodule.cpp: In function ‘PyObject* PyInit_QtCore()’:
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_init’
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_index’
> sipQtCorecmodule.cpp:9854: warning: missing initializer for member ‘PyModuleDef_Base::m_copy’
> make[1]: *** [sipQtCorecmodule.o] Error 1
> make: *** [all] Error 2
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100225/53be4520/attachment-0001.html>
More information about the PyQt
mailing list