[PyQt] Build Error

Brown, Christopher A cbrown1 at pitt.edu
Mon Jun 30 14:58:55 BST 2014


Hi,

I am trying to build PyQt on Scientific Linux (a RHEL derivative). I
have successfully built and installed python 2.7.3, qt 4.8.6 and sip
4.16.1. Can anyone help with the following pyqt build error:

[code-breaker at office PyQt-x11-gpl-4.11]$ /opt/python2.7/bin/python2.7
configure.py --confirm-license --no-designer-plugin  -q
/opt/qt-4.8.6/bin/qmake
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.11 (licensed under the GNU General Public
License) for Python 2.7.3 on linux2.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtHelp module should be built...
Checking to see if the QtMultimedia module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtDeclarative module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtSql module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtWebKit module should be built...
Checking to see if the QtXmlPatterns module should be built...
Checking to see if the phonon module should be built...
Checking to see if the QtAssistant module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the QAxContainer module should be built...
Checking to see if the dbus support module should be built...
The Python dbus module doesn't seem to be installed.
Qt v4.8.6 free edition is being used.
SIP 4.16.1 is being used.
The Qt header files are in /opt/qt-4.8.6/include.
The shared Qt libraries are in /opt/qt-4.8.6/lib.
The Qt binaries are in /opt/qt-4.8.6/bin.
The Qt mkspecs directory is in /opt/qt-4.8.6.
These PyQt modules will be built: QtCore, QtGui, QtHelp, QtMultimedia,
QtNetwork, QtDBus, QtDeclarative, QtScript, QtScriptTools, QtXml, QtSql,
QtSvg,
QtTest, QtWebKit, QtXmlPatterns, QtDesigner.
The PyQt Python package will be installed in
/opt/python2.7/lib/python2.7/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The PyQt .sip files will be installed in /opt/python2.7/share/sip/PyQt4.
pyuic4, pyrcc4 and pylupdate4 will be installed in /opt/python2.7/bin.
Embedding sip flags...
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtDeclarative module...
Creating the Makefile for the QtDeclarative module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtHelp module...
Creating the Makefile for the QtHelp module...
Generating the C++ source for the QtMultimedia module...
Creating the Makefile for the QtMultimedia module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtDBus module...
Creating the Makefile for the QtDBus module...
Generating the C++ source for the QtScript module...
Creating the Makefile for the QtScript module...
Generating the C++ source for the QtScriptTools module...
Creating the Makefile for the QtScriptTools module...
Generating the C++ source for the QtSql module...
Creating the Makefile for the QtSql module...
Generating the C++ source for the QtSvg module...
Creating the Makefile for the QtSvg module...
Generating the C++ source for the QtTest module...
Creating the Makefile for the QtTest module...
Generating the C++ source for the QtWebKit module...
Creating the Makefile for the QtWebKit module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Generating the C++ source for the QtXmlPatterns module...
Creating the Makefile for the QtXmlPatterns module...
Generating the C++ source for the QtDesigner module...
Creating the Makefile for the QtDesigner module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy support library for QtDeclarative Makefile...
Creating QPy support library for QtCore Makefile...
Creating QPy support library for QtGui Makefile...
Creating QPy support library for QtDesigner Makefile...
Creating QPy support library for QtDBus Makefile...
Creating QPy support libraries Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating pyqtconfig.py...
[code-breaker at office PyQt-x11-gpl-4.11]$ make
make[1]: Entering directory
`/home/code-breaker/rpmbuild/SOURCES/PyQt-x11-gpl-4.11/qpy'
make[2]: Entering directory
`/home/code-breaker/rpmbuild/SOURCES/PyQt-x11-gpl-4.11/qpy/QtDeclarative'
g++ -Wl,-O1 -Wl,-rpath,/opt/qt-4.8.6/lib -o w_qpydeclarative
-L/opt/qt-4.8.6/lib -lQtGui -L/opt/qt-4.8.6/lib -L/usr/X11R6/lib
-lQtCore -lpthread
/usr/lib/gcc/i686-redhat-linux/4.4.6/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [w_qpydeclarative] Error 1
make[2]: Leaving directory
`/home/code-breaker/rpmbuild/SOURCES/PyQt-x11-gpl-4.11/qpy/QtDeclarative'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/code-breaker/rpmbuild/SOURCES/PyQt-x11-gpl-4.11/qpy'
make: *** [all] Error 2
[code-breaker at office PyQt-x11-gpl-4.11]$


More information about the PyQt mailing list