[PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint
Nico Dufort
ndufort at gmail.com
Tue Dec 27 10:55:57 GMT 2011
Hi Phil,
Thanks for the quick answer. It does return the correct sip (4.13.1), and
the output of the configure reported the correct version as well.
I just noticed a few errors from the output, but I do not think that would
be related to my problem (sorry for the long output). Anything I should
worry about, or that I may be missing?
I am installing Ubuntu on virtualbox to see if it's my environment.
Thanks. nico.
nico at slimline:~/Downloads/py4nk/PyQt-x11-gpl-4.9$
/opt/python-2.6.7/bin/python2.6 ./configure.py -q
/usr/local/Trolltech/Qt-4.8.0/bin/qmake -w
Determining the layout of your Qt installation...
/usr/local/Trolltech/Qt-4.8.0/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB
-DQT_SHARED -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/linux-g++-64 -I.
-I/usr/local/Trolltech/Qt-4.8.0/include/QtCore
-I/usr/local/Trolltech/Qt-4.8.0/include -I. -o qtdirs.o qtdirs.cpp
g++ -m64 -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -o qtdirs
qtdirs.o -L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread
./qtdirs
This is the GPL version of PyQt 4.9 (licensed under the GNU General Public
License) for Python 2.6.7 on linux3.
Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
g++ -DQT_NO_DEBUG -DQT_GUI_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtGui
-I/usr/local/Trolltech/Qt-4.8.0/include -I/usr/X11R6/include -m64 -pipe -O2
-w -D_REENTRANT cfgtest_QtGui.cpp -o cfgtest_QtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lXext -lX11 -lm -lpthread
Checking to see if the QtHelp module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtHelp
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtHelp.cpp -o cfgtest_QtHelp -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtHelp
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtSql
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui -L/usr/X11R6/lib64 -lQtNetwork
-lQtCore -lpthread -lpthread
Checking to see if the QtMultimedia module should be built...
g++ -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtMultimedia
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtMultimedia.cpp -o cfgtest_QtMultimedia
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtMultimedia
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore -lpthread
-lpthread
Checking to see if the QtNetwork module should be built...
g++ -DQT_NO_DEBUG -DQT_NETWORK_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtNetwork
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtNetwork.cpp -o cfgtest_QtNetwork
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtNetwork
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lpthread
Checking to see if the QtDBus module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtDBus
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtDBus.cpp -o cfgtest_QtDBus -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtDBus -lpthread
cfgtest_QtDBus.cpp:1:29: fatal error: qdbusconnection.h: No such file or
directory
compilation terminated.
Checking to see if the QtDeclarative module should be built...
g++ -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtDeclarative
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtDeclarative.cpp -o cfgtest_QtDeclarative
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtDeclarative
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtScript
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtSvg -L/usr/X11R6/lib64 -lQtSql
-lQtXmlPatterns -lQtGui -lQtNetwork -lQtCore -lpthread -lpthread
Checking to see if the QtOpenGL module should be built...
g++ -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_CORE_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtOpenGL
-I/usr/local/Trolltech/Qt-4.8.0/include/QtCore
-I/usr/local/Trolltech/Qt-4.8.0/include -I/usr/X11R6/include -m64 -pipe -O2
-w -D_REENTRANT cfgtest_QtOpenGL.cpp -o cfgtest_QtOpenGL
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtOpenGL -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lGL -lXext -lX11 -lm
-lpthread
cfgtest_QtOpenGL.cpp:1:17: fatal error: qgl.h: No such file or directory
compilation terminated.
Checking to see if the QtScript module should be built...
g++ -DQT_NO_DEBUG -DQT_SCRIPT_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtScript
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtScript.cpp -o cfgtest_QtScript
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtScript
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lpthread
Checking to see if the QtScriptTools module should be built...
g++ -DQT_NO_DEBUG -DQT_SCRIPTTOOLS_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtScriptTools
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtScriptTools.cpp -o cfgtest_QtScriptTools
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtScriptTools
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtScript
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui -L/usr/X11R6/lib64 -lQtCore
-lpthread -lpthread
Checking to see if the QtSql module should be built...
g++ -DQT_NO_DEBUG -DQT_SQL_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtSql
-I/usr/local/Trolltech/Qt-4.8.0/include/QtGui
-I/usr/local/Trolltech/Qt-4.8.0/include -I/usr/X11R6/include -m64 -pipe -O2
-w -D_REENTRANT cfgtest_QtSql.cpp -o cfgtest_QtSql
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtSql
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lQtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lXext -lX11 -lm -lpthread
Checking to see if the QtSvg module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtSvg
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtSvg.cpp -o cfgtest_QtSvg -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtSvg
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore -lpthread
-lpthread
Checking to see if the QtTest module should be built...
g++ -DQT_NO_DEBUG -DQT_TEST_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtTest
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtTest.cpp -o cfgtest_QtTest -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtTest
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lpthread
Checking to see if the QtWebKit module should be built...
g++ -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_CORE_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtWebKit
-I/usr/local/Trolltech/Qt-4.8.0/include/QtCore
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtWebKit.cpp -o cfgtest_QtWebKit
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtWebKit -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lpthread
Checking to see if the QtXml module should be built...
g++ -DQT_NO_DEBUG -DQT_XML_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtXml
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtXml.cpp -o cfgtest_QtXml -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtXml
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lpthread
Checking to see if the QtXmlPatterns module should be built...
g++ -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtXmlPatterns
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtXmlPatterns.cpp -o cfgtest_QtXmlPatterns
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtXmlPatterns
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtNetwork
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore -lpthread -lpthread
Checking to see if the phonon module should be built...
g++ -DQT_NO_DEBUG -DQT_PHONON_LIB -I.
-I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/phonon
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_phonon.cpp -o cfgtest_phonon -L/usr/local/Trolltech/Qt-4.8.0/lib
-Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lphonon -lpthread
cfgtest_phonon.cpp:1:32: fatal error: phonon/videowidget.h: No such file or
directory
compilation terminated.
Checking to see if the QtAssistant module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtAssistant
-I/usr/local/Trolltech/Qt-4.8.0/include/QtGui
-I/usr/local/Trolltech/Qt-4.8.0/include/QtNetwork
-I/usr/local/Trolltech/Qt-4.8.0/include -I/usr/X11R6/include -m64 -pipe -O2
-w -D_REENTRANT cfgtest_QtAssistant.cpp -o cfgtest_QtAssistant
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtAssistantClient -lQtGui
-L/usr/local/Trolltech/Qt-4.8.0/lib -L/usr/X11R6/lib64 -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lQtNetwork
-L/usr/local/Trolltech/Qt-4.8.0/lib -lQtCore
-L/usr/local/Trolltech/Qt-4.8.0/lib -lpthread -lXext -lX11 -lm -lpthread
cfgtest_QtAssistant.cpp:1:30: fatal error: qassistantclient.h: No such file
or directory
compilation terminated.
Checking to see if the QtDesigner module should be built...
g++ -DQT_NO_DEBUG -I. -I/usr/local/Trolltech/Qt-4.8.0/mkspecs/default
-I/usr/local/Trolltech/Qt-4.8.0/include/QtDesigner
-I/usr/local/Trolltech/Qt-4.8.0/include -m64 -pipe -O2 -w -D_REENTRANT
cfgtest_QtDesigner.cpp -o cfgtest_QtDesigner
-L/usr/local/Trolltech/Qt-4.8.0/lib -Wl,-O1
-Wl,-rpath,/usr/local/Trolltech/Qt-4.8.0/lib -lQtDesigner -lpthread
Checking to see if the dbus support module should be built...
DBus v1 does not seem to be installed.
Qt v4.8.0 free edition is being used.
SIP 4.13.1 is being used.
The Qt header files are in /usr/local/Trolltech/Qt-4.8.0/include.
The shared Qt libraries are in /usr/local/Trolltech/Qt-4.8.0/lib.
The Qt binaries are in /usr/local/Trolltech/Qt-4.8.0/bin.
The Qt mkspecs directory is in /usr/local/Trolltech/Qt-4.8.0.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDeclarative, QtScript, QtScriptTools, QtSql, QtSvg, QtTest,
QtWebKit, QtXml, QtXmlPatterns, QtDesigner.
The PyQt Python package will be installed in
/opt/python-2.6.7/lib/python2.6/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in
/usr/local/Trolltech/Qt-4.8.0/plugins/designer.
The PyQt .sip files will be installed in /opt/python-2.6.7/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /opt/python-2.6.7/bin.
Generating the C++ source for the QtCore module...
"/opt/python-2.6.7/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_OpenSSL
-x PyQt_NoPrintRangeBug -t Qt_4_8_0 -x Py_v3 -g -a QtCore.api -c
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/QtCore -b QtCore/QtCore.sbf -I
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip/QtCore/QtCoremod.sip
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
"/opt/python-2.6.7/bin/sip" -w -o -P -x VendorID -t WS_X11 -x PyQt_OpenSSL
-x PyQt_NoPrintRangeBug -t Qt_4_8_0 -x Py_v3 -g -a QtDeclarative.api -c
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/QtDeclarative -b
QtDeclarative/QtDeclarative.sbf -I
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip
/home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip/QtDeclarative/QtDeclarativemod.sip
sip: __or__() unsupported function return type - provide %MethodCode and a
C++ signature
Error: Unable to create the C++ code.
On Tue, Dec 27, 2011 at 10:54 AM, Phil Thompson <phil at riverbankcomputing.com
> wrote:
> On Tue, 27 Dec 2011 10:32:36 +0100, Nico Dufort <ndufort at gmail.com> wrote:
> > Hello,
> >
> > I need to build PyQt4 for use with an existing software (The Foundry's
> > Nuke6.3v4). That software uses Python 2.6 which requires me to build a
> > separate version of Python for my system (LinuxMint 12, w/ Python 2.7).
> >
> > I have built python-2.6.7 fine.
> > I have built sip-4.13.1 fine.
> > I have built qt-everywhere-opensource-4.8.0 fine.
> > I fail on configuring PyQt-4.9 before evening building it (using
> > /opt/python-2.6.7/bin/python2.6
> > ./configure.py -q /usr/local/Trolltech/Qt-4.8.0/bin/qmake -w):
> >
> > Generating the C++ source for the QtDeclarative module...
> > "/opt/python-2.6.7/bin/sip" -w -o -P -x VendorID -t WS_X11 -x
> PyQt_OpenSSL
> > -x PyQt_NoPrintRangeBug -t Qt_4_8_0 -x Py_v3 -g -a QtDeclarative.api -c
> > /home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/QtDeclarative -b
> > QtDeclarative/QtDeclarative.sbf -I
> > /home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip
> >
>
> /home/nico/Downloads/py4nk/PyQt-x11-gpl-4.9/sip/QtDeclarative/QtDeclarativemod.sip
> > sip: __or__() unsupported function return type - provide %MethodCode and
> a
> > C++ signature
> > Error: Unable to create the C++ code.
> >
> > Earlier this year, I managed to build PyQt4 on Ubuntu, but it was a
> version
> > for Python 2.5. I do not recall having any problem at all when I did.
> I'm
> > about to install VirtualBox to run a few test cases, but if anyone can
> > point me towards what I may be doing wrong, that would be great. Not
> sure
> > if that -x Py_v3 is a hint. Or perhaps there is a mismatch elsewhere in
> my
> > packages?
> >
> > Thanks. nico
>
> Run...
>
> /opt/python-2.6.7/bin/sip -V
>
> ...to make sure you are actually using the right version of sip.
>
> Phil
>
--
"Attention, attention. Here and now, boys," the mynah repeated. "Here and
now, boys."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111227/5a3c2fd6/attachment-0001.html>
More information about the PyQt
mailing list