我按照说明在这里下载并安装了sip和pyqt4。
http://ubuntuforums.org/showthread.php?t=1777613
在我的Python2.7安装中,我让PyQt4 via aptitude工作;为了让它在Python3中工作,当我运行sudo make时,我得到了以下消息:
make[1]: Entering directory `/home/usman/programs/PyQt-x11-gpl-4.10/QtCore'
g++ -c -m64 -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DNDEBUG -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_CORE_LIB -I. -I/home/usman/programs/PyQt-x11-gpl-4.10/qpy/QtCore -I/usr/include/python3.2mu -I/usr/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4 -o sipQtCorecmodule.o sipQtCorecmodule.cpp
/home/usman/programs/PyQt-x11-gpl-4.10/QtCore/sipQtCorecmodule.cpp:9883:1: error: braces around scalar initialiser for type ‘sipSubClassConvertorDef* {aka _sipSubClassConvertorDef*}’
make[1]: *** [sipQtCorecmodule.o] Error 1
make[1]: Leaving directory `/home/usman/programs/PyQt-x11-gpl-4.10/QtCore'
make: *** [all] Error 2有人知道解决方案吗?谢谢
发布于 2017-01-24 16:32:14
你需要做sudo make。一旦你这样做了,你应该能够编译源代码。
https://stackoverflow.com/questions/15957106
复制相似问题