0

我已经使用 Qnx 套件编译了“frameBuffer”canvas3D 示例,并尝试在我的 Qnx 目标上运行该可执行文件,但它抛出以下错误:

./framebuffer &

[1] 1216519
QML debugging is enabled. Only use this in a safe environment.
QQnxScreen: QQNX_PHYSICAL_SCREEN_SIZE variable not set. Could not    determine physical screen size. Defaulting to 150x90.
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed

谁能建议如何安装这些缺少的模块。我正在使用 Qt Crea tor 3.5.1(企业)许可版本。

4

1 回答 1

0

尝试设置路径QML2_IMPORT_PATH= "qml path",它应该在您的 QT 安装文件夹中可用。

于 2017-03-03T05:07:10.797 回答