未找到 QtQuick(Lubuntu)

未找到 QtQuick(Lubuntu)

在全新安装的 Lubuntu 13.04 中,我从官方 ubuntu 存储库安装了 Qt5。但此 Qt5 安装找不到 QtQuick 模块。我遗漏了什么?

qmlscene test.qml

测试.qml:

import QtQuick 2.0

Rectangle {
}

输出:

file:///home/.../test.qml:1 模块“QtQuick”未安装

我已经仔细检查过以下相关软件包是否已安装:

$ dpkg --get-selections | grep libqt5
libqt53d5:amd64                 install
libqt5clucene5:amd64                install
libqt5concurrent5:amd64             install
libqt5core5:amd64               install
libqt5dbus5:amd64               install
libqt5declarative5:amd64            install
libqt5designer5:amd64               install
libqt5designercomponents5:amd64         install
libqt5gui5:amd64                install
libqt5help5:amd64               install
libqt5location5:amd64               install
libqt5network5:amd64                install
libqt5opengl5:amd64             install
libqt5opengl5-dev               install
libqt5printsupport5:amd64           install
libqt5qml5:amd64                install
libqt5quick5:amd64              install
libqt5quickparticles5:amd64         install
libqt5quicktest5:amd64              install
libqt5script5:amd64             install
libqt5sensors5:amd64                install
libqt5sql5:amd64                install
libqt5sql5-mysql:amd64              install
libqt5sql5-sqlite:amd64             install
libqt5svg5:amd64                install
libqt5test5:amd64               install
libqt5v8-5:amd64                install
libqt5webkit5:amd64             install
libqt5widgets5:amd64                install
libqt5xml5:amd64                install

答案1

您需要qtdeclarative5-qtquick2-plugin安装。如果您只是安装,ubuntu-sdk它将安装您需要的几乎所有东西。

相关内容