[PyQt] Failure to compile PyQt4 Python3.2

Phil Thompson phil at riverbankcomputing.com
Fri Mar 4 09:04:31 GMT 2011


On Fri, 4 Mar 2011 15:16:56 +1100, Algis Kabaila <akabaila at pcug.org.au>
wrote:
> Hi,
> 
> I want to upgrade from Python 2.6 to Python 3.2, including PyQt.  
> So far I used PyQt installed as binaries from ubuntu 10.10 
> repositories as well as Qt4 : 4.7.0ubuntu4.2.
> 
> I did not re-install Qt, available from nokia as source package:
> qt-everywhere-opensource-src-4.7.2.tar.gz.  If that is the cause 
> of the problem, please tell me and I will install it first.
> 
> The steps of installation in detail were:
> 
> The first step,  installation of python3.2 appeared to be ok -
> ./configure.py
> make
> make test
> sudo make install
> completed satisfactorily.
> Next step, sip-4.12.1.tar.gz was expanded and installed in the 3 
> steps:
> python3 configure.py
> make
> sudo make install
> Installation seemed to proceed without complaints.  The python3 
> script invokes python 3.2.
> 
> PyQt-x11-gpl-4.8.3.tar.gz expanded ok. After
> python3 configure.py was satisfactorily complete,
> make
> failed with the following tail of messages:
> /usr/local/include/python3.2m/pyatomic.h:59: warning: unused 
> parameter ‘address’
> g++ -c -pipe -fPIC -O2 -fno-optimize-sibling-calls -fno-
> optimize-sibling-calls -Wall -W -D_REENTRANT -DNDEBUG -
> DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -
> DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/python3.2m -
> I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtHelp -
> I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -
> I/usr/include/qt4 -I/usr/X11R6/include -o 
> sipQtHelpQHelpContentModel.o sipQtHelpQHelpContentModel.cpp
> In file included from /usr/local/include/python3.2m/Python.h:52,
>                  from /usr/local/include/python3.2m/sip.h:32,
>                  from sipAPIQtHelp.h:38,
>                  from sipQtHelpQHelpContentModel.cpp:34:
> /usr/local/include/python3.2m/pyatomic.h:59: warning: unused 
> parameter ‘address’
> g++ -c -pipe -fPIC -O2 -fno-optimize-sibling-calls -fno-
> optimize-sibling-calls -Wall -W -D_REENTRANT -DNDEBUG -
> DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -
> DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/local/include/python3.2m -
> I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtHelp -
> I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -
> I/usr/include/qt4 -I/usr/X11R6/include -o 
> sipQtHelpQHelpContentItem.o sipQtHelpQHelpContentItem.cpp
> In file included from /usr/local/include/python3.2m/Python.h:52,
>                  from /usr/local/include/python3.2m/sip.h:32,
>                  from sipAPIQtHelp.h:38,
>                  from sipQtHelpQHelpContentItem.cpp:34:
> /usr/local/include/python3.2m/pyatomic.h:59: warning: unused 
> parameter ‘address’
> g++ -shared -Wl,-O1 -Wl,-rpath,/usr/lib -Wl,--version-
> script=QtHelp.exp -o QtHelp.so sipQtHelpcmodule.o 
> sipQtHelpQList0100QHelpSearchQuery.o 
> sipQtHelpQMap0100QString0100QUrl.o 
> sipQtHelpQList0100QStringList.o 
> sipQtHelpQHelpSearchResultWidget.o 
> sipQtHelpQHelpSearchQueryWidget.o sipQtHelpQHelpSearchEngine.o 
> sipQtHelpQHelpSearchQuery.o sipQtHelpQHelpIndexWidget.o 
> sipQtHelpQHelpIndexModel.o sipQtHelpQHelpEngine.o 
> sipQtHelpQHelpEngineCore.o sipQtHelpQHelpContentWidget.o 
> sipQtHelpQHelpContentModel.o sipQtHelpQHelpContentItem.o -
> L/usr/lib -L/usr/X11R6/lib -lQtHelp -lQtGui -lQtCore -lXext -
> lX11 -lm -lpthread
> /usr/bin/ld: cannot find -lXext
> collect2: ld returned 1 exit status
> make[1]: *** [QtHelp.so] Error 1
> make[1]: Leaving directory `/home/ak/PyQt/PyQt-x11-
> gpl-4.8.3/QtHelp'
> make: *** [all] Error 2
> ak at amd64:~/PyQt/PyQt-x11-gpl-4.8.3$
> 
> All of the tail listing is too deep for me to fathom. Your help 
> will be greatly appreciated!
> 
> OldAl.

Sounds like you are missing the libxext-dev package.

Phil


More information about the PyQt mailing list