[PyQt] Cannot 'configure' PyQt4.9 before build on Linuxmint

Nico Dufort ndufort at gmail.com
Wed Dec 28 14:18:05 GMT 2011


Hello Phil,

I did a test with xubuntu on a virtual machine, and I ran into the exact
same error.  I can try on a non-ubuntu/non-debian based environment when I
have more time, but I would want to believe that someone else got this
version to build.


All my files were downloaded from their respective websites:

Python 2.6.7: http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tgz
Sip 4.13.1:
http://www.riverbankcomputing.com/static/Downloads/sip4/sip-4.13.1.tar.gz
Qt 4.8.0:
ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz
PyQt 4.9:
http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-x11-gpl-4.9.tar.gz

Just for the sake of trying, I re-downloaded everything for both test
environments, but that made no difference.  I do not think corruption is an
issue.  Any suggestion as to what might be worth trying next?
I got a hold of an older build of PyQt that meets my needs and works with
Nuke, but I really would like to be able to build this one properly on my
own, for the sake of getting it to work. =)

Thanks in advance.
nico

On Tue, Dec 27, 2011 at 12:04 PM, Phil Thompson <phil at riverbankcomputing.com
> wrote:

> On Tue, 27 Dec 2011 11:55:57 +0100, Nico Dufort <ndufort at gmail.com> wrote:
> > 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.
>
> QtDeclarativemod.sip doesn't contain any C++ declarations. Is it
> corrupted?
>
> 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/20111228/f679da47/attachment-0001.html>


More information about the PyQt mailing list