当QML程序(例如以太坊,在这种情况下从PPA安装 )试图
import QtWebEngine 1.0 import QtWebEngine.experimental 1.0
然后我得到这些错误
file:////usr/share/mist/qml/views/browser.qml:5 module "QtWebEngine" is not installed file:////usr/share/mist/qml/views/browser.qml:6 module "QtWebEngine.experimental" is not installed
QtWebEngine是在我已经安装的Qt 5.4
#> qmake --version QMake version 3.0 Using Qt version 5.4.0 in /usr/lib/x86_64-linux-gnu
我试图build立自己的QtWebEngine,但没有喜悦:
#> git clone git@gitorious.org:qt-labs/qtwebengine.git Cloning into 'qtwebengine'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
1)如果安装了Qt 5.4,为什么不安装QtWebEngine?
2)有没有一种方法来安装它,而不是自己构build它?
3) git clone
命令有什么问题?
谢谢阅读。 我在Ubuntu 14.10上做这个。
这是特定于以太坊和以太坊-qt PPA ,从Qt 5.4.0升级到5.4.1,需要几个小时才能完成。 只需apt-get update && apt-get upgrade
,一切都应该修复。
我发现这个“模块”Qt *“未安装”类的问题在Ubuntu上的另一个原因至少是没有设置环境变量LD_LIBRARY_PATH
。 它应该包括你的Qt安装的lib目录的路径,例如
if [ "x$LD_LIBRARY_PATH" = "x" ]; then export LD_LIBRARY_PATH=/home/username/Qt5.4.1/5.4/gcc_64/lib else export LD_LIBRARY_PATH=/home/username/Qt5.4.1/5.4/gcc_64/lib:$LD_LIBRARY_PATH fi