简体   繁体   中英

Error:: QtQuick packages are not installed

I am trying to execute the canvas3d project on qnx platform. While execution it throws an error as below

qrc:/main.qml:40:1: module "QtQuick.Layouts" is not installed
qrc:/main.qml:39:1: module "QtQuick.Controls" is not installed
qrc:/main.qml:38:1: module "QtCanvas3D" is not installed

main.qml has imported below

import QtQuick 2.0 import QtCanvas3D 1.0 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 Can anyone help me to figure out how can I install this missing modules? I am using Qt Creator 3.5.1(enterprise) licensed version. Thanks in advance.

I was able to resolve this error by using env variable QML2_IMPORT_PATH. But Now I am getting an error qrc:/main.qml:37:1: module "QtCanvas3D" plugin "qtcanvas3d" not found

Can some one please let me know what can be done for this?

sudo apt install qml-module-qtquick-controls
sudo apt install qml-module-qtquick-layouts

etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM