Solved Get "module "QtQuick" is not installed" error when running make check for a qml autotest
Trung Nguyen Hoang last edited by Trung Nguyen Hoang
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_Building
Can anyone help me?
Trung Nguyen Hoang 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.