SLES11下安装PyQt4.94

环境:SLES11 SP1  +PYTHON3.2 +PyQt4.94


安装过程中第一次报如下错,这是因为需要SIP包,下载地址:http://www.riverbankcomputing.co.uk/news
bill131:~/PyQt-x11-gpl-4.9.4 # python3 configure.py 
Traceback (most recent call last):
  File "configure.py", line 32, in <module>
    import sipconfig
ImportError: No module named sipconfig

第二次报错,是因为没有安装libqt4-devel  ,从sles的SDK盘安装软件解决。
bill131:~/PyQt-x11-gpl-4.9.4 # python3  configure.py 
Error: Make sure you have a working Qt v4 qmake on your PATH or use the -q
argument to explicitly specify a working Qt v4 qmake.

在make时,大量报“warning: unused parameter 'address'”,在后面import  PyQt4时也没有报错。

/usr/local/include/python3.2m/pyatomic.h:59: warning: unused parameter 'address'
g++ -c -m64 -pipe -fPIC -O2 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/root/PyQt-x11-gpl-4.9.4/qpy/QtGui -I/usr/local/include/python3.2m -I/usr/mkspecs/linux-g++ -I/usr/include/QtGui -I/usr/include/QtCore -I/usr/include -I/usr/X11R6/include -o sipQtGuiQTextBlockGroup.o sipQtGuiQTextBlockGroup.cpp
In file included from /usr/local/include/python3.2m/Python.h:52,
                 from /usr/local/include/python3.2m/sip.h:32,

你可能感兴趣的:(SLES11下安装PyQt4.94)