【发布时间】:2014-09-02 11:58:00
【问题描述】:
我正在尝试在 ubuntu 14.04 上构建 PyQt 5.3.1。我需要 QtWebKit 模块。
我按照步骤配置了它
python configure.py -q /usr/lib/x86_64-linux-gnu/qt5/bin/qmake --sip-incdir=/usr/include/python2.7 --sipdir=/usr/share/sip --enable QtWebKit QtWebKitWidgets
我在使用make时出现以下错误,
$HOME/PyQt-gpl-5.3.1/QtWebKit/sipQtWebKitQWebSettings.cpp:1208:48: error: ‘WebAudioEnabled’ is not a member of ‘QWebSettings’
{sipName_WebAudioEnabled, static_cast<int>(QWebSettings::WebAudioEnabled), 26},
^
make[1]: *** [sipQtWebKitQWebSettings.o] Error 1
make[1]: Leaving directory '$HOME/PyQt-gpl-5.3.1/QtWebKit'
make: *** [sub-QtWebKit-make_first-ordered] Error 2
我该如何解决这个问题?
提前致谢。
【问题讨论】:
-
好像helpful!
-
或者,您可以使用
apt-get install python3-pyqt5安装它。
标签: python-2.7 ubuntu-14.04 pyqt5