【发布时间】:2017-01-24 16:32:14
【问题描述】:
我按照说明在这里下载并安装了 sip 和 pyqt4
http://ubuntuforums.org/showthread.php?t=1777613
我有 PyQt4 via aptitude 为我的 Python 2.7 安装工作;为了让它适用于 Python 3,当我运行 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
有人知道解决办法吗?谢谢
【问题讨论】:
-
你的ubuntu中没有python3-pyqt4吗?你用的是 11.04 吗?
-
为什么不使用存储库上的版本? python3-pyqt4
-
那行得通..不知道这个选项。感谢负载
-
看看:stackoverflow.com/questions/7942887/… 我被卡住了,它解决了我的问题。