Qt Forum

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

    Unsolved module "QtQuick" version 2.12 is not installed

    Installation and Deployment
    module newbie deployment
    4
    9
    7482
    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.
    • I
      IamJeff last edited by IamJeff

      We are upgrading our software from Qt 5.7, but it crashes with the dreaded module "QtQuick" version 2.12 not installed
      import QtQuick 2.12

      [Edit] I don't mind including the module or library, I just don't know how to find this one.

      The application runs fine, inside qtcreator, on the machine where I installed Qt 5.12.3. I'm now working on a deployment strategy for other machines. Both machines have the same Ubuntu packages. The machine with the error does not have the Qt 5.12 package installed. (Due to disk space, that may not be an option.) There are no files in /usr/lib with the characters qt.

      As a complete newbie to Qt and the Qt way of doing things, where do I find (and how do I install) the QtQuick beast? Is it an OS package? I cannot find one with that exact name. (There are lots of qml-module-qtquick-blahblah-5.12.2_amd64.deb packages, along with lots of dependencies.) Is there another option, such as copying libraries buried somewhere, such as /opt/Qt5.12.3/Tools/QtCreator/lib/Qt/lib, from the machine with Qt 5.12.3 installed?

      I have found https://doc.qt.io/qt-5/qtqml-syntax-imports.html#qml-import-path, but do not know how to examine the path. (I'm a complete Qt newbie, remember.) I've seen other module "QtQuick" version X.Y is not installed questions, but none with an answer to where to find it.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @IamJeff last edited by

        @iamjeff said in module "QtQuick" version 2.12 is not installed:

        Due to disk space, that may not be an option

        You can't use a Qt application without Qt libs used by this application. So you will anyway have to install parts of Qt you need - why is it not an option?
        Alternative is to deploy your app with all Qt modules used by it. There is a deployment tool you can use for that: https://github.com/probonopd/linuxdeployqt

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        I 1 Reply Last reply Reply Quote 1
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          Beside what @jsulm wrote, you have to check the QtQuick import version that is available in Qt 5.7.

          These version changes when new stuff and fixes are made.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply Reply Quote 0
          • I
            IamJeff @jsulm last edited by IamJeff

            @jsulm All I have is a 32GB disk and several canned videos that need to be included. I probably should have been clearer, I don't mind copying the library/module, I just don't know where to find it. I do want to avoid the shotgun approach of including a bazillion library files when I only need one or two. (And at this point, I don't know where to place them, either.) I'll check your link, but the description says it's to make a self-contained app. I'm still trying to get my application built. :-(

            jsulm 1 Reply Last reply Reply Quote 0
            • jsulm
              jsulm Lifetime Qt Champion @IamJeff last edited by

              @iamjeff said in module "QtQuick" version 2.12 is not installed:

              self-contained app

              That just means a directory with your executable and all needed libs

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • I
                IamJeff last edited by IamJeff

                Okay, I think I found what I was looking for. Instead of looking for the library in /opt/Qt-blah-blah, I needed to look at in the Ubuntu repositories for something named qml-module-qtquick. If this works out, I'll mark the question solved. If someone has suggestions, like "you usually need all these modules" or "here is a table describing the versions" I'll happily upvote their reply. (I don't see a way to credit someone with solving/answering the question, as is done on some of the other forums.)

                I apologize for not providing more detail in the original question. These hosts are air-gapped, so I can't just do a apt-cache search qtquick.

                1 Reply Last reply Reply Quote 0
                • S
                  shashikumar @SGaist last edited by

                  @SGaist I was built Qt 5.12.6 source code using raspberry pi compiler and when i am trying to deploy qml application with having import QtQuick 2.12 , it's giving error like "module "QtQuick" version 2.12 is not installed ". but i am able to run successfully by using import QtQuick 2.10 therefore please tell me why it's giving error like that.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Do you have another Qt version installed on that device ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      shashikumar @SGaist last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post