Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Get "module "QtQuick" is not installed" error when running make check for a qml autotest

    Installation and Deployment
    1
    2
    116
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Trung Nguyen Hoang last edited by Trung Nguyen Hoang

      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_Building

      Can anyone help me?
      Thanks,

      1 Reply Last reply Reply Quote 0
      • T
        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post