【问题标题】:How can I install QtWebEngine on Ubuntu如何在 Ubuntu 上安装 QtWebEngine
【发布时间】:2015-05-19 06:14:44
【问题描述】:

当 QML 程序(例如以太坊,在本例中为 installed from the 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 myself,但没有喜悦:

#> 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) 如果 QtWebEngine 在安装了 的 Qt 5.4 中,为什么没有安装它?

2) 除了自己构建之外,还有其他方法可以安装吗?

3) git clone 命令有什么问题?

感谢阅读。我在 Ubuntu 14.10 上执行此操作。

【问题讨论】:

  • 你真的应该问问在那个 PPA 中提供 deb 包的人,显然他们的依赖关系不正确。
  • 软件包正在升级,对于 Qt 来说这需要几个小时。显然,您在发表评论之前没有进一步调查。

标签: git qt ubuntu qml qtwebengine


【解决方案1】:

这是特定于 Ethereum 和 ethereum-qt PPA,它正在从 Qt 5.4.0 升级到 5.4.1,这需要几个小时才能完成。只需apt-get update && apt-get upgrade,一切都应该修复。

【讨论】:

  • 感谢您的及时回复。我刚才运行了这些命令,一大堆 qt 包确实更新了,但是我在启动雾时遇到了完全相同的错误。
  • 试试apt-get dist-upgrade,因为按照您链接到的说明操作在这里(tm)工作并且被许多其他人报告工作。
【解决方案2】:

我发现在 Ubuntu 上导致这个“模块“Qt*”未安装”类问题的另一个原因至少是环境变量 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

【讨论】:

    猜你喜欢
    • 2021-12-19
    • 2017-06-29
    • 2017-11-07
    • 2017-07-12
    • 2011-09-24
    • 2011-11-06
    • 2020-01-27
    • 2014-01-07
    • 2020-09-03
    相关资源
    最近更新 更多