Get "module "QtQuick" is not installed" error when running make check for a qml autotest
-
wrote on 11 Oct 2021, 08:41 last edited by Trung Nguyen Hoang 10 Nov 2021, 10:44
Hi everyone,
I'm trying to run Qt default autotest on my Ubuntu for some purpose by calling "make check".
Everything runs fine until running the qml tests.
When running qml autotest, eg: qt5/qtdeclarative/tests/auto/qmltest, I receive the below error:module "QtQuick" is not installed"
import QtQuick 2.0
^
module "QtTest" is not installed
import QtTest 1.1
^
I search around on the google but cannot find any useful information.
I'm using qt5 v5.10.1.
And following the guide below to build Qt in -developer-mode: https://wiki.qt.io/Building_Qt_5_from_Git#Configuring_and_BuildingCan anyone help me?
Thanks, -
wrote on 19 Jan 2022, 08:20 last edited by
For the people who face the same issue as me:
I found the solution for this issue.
We need to set QML2_IMPORT_PATH environment variable to qml dir in qtdeclarative component by running: export QML2_IMPORT_PATH=/path/qt5/qtdeclarative/qml before running make check.