Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. module "QtQuick" version 2.12 is not installed
QtWS25 Last Chance

module "QtQuick" version 2.12 is not installed

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
modulenewbiedeployment
9 Posts 4 Posters 9.3k Views
  • 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 Offline
    I Offline
    IamJeff
    wrote on 31 Jul 2019, 22:21 last edited by IamJeff 8 Jan 2019, 14:10
    #1

    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.

    J 1 Reply Last reply 1 Aug 2019, 04:28
    0
    • I IamJeff
      31 Jul 2019, 22:21

      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.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Aug 2019, 04:28 last edited by
      #2

      @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 1 Aug 2019, 14:17
      1
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 1 Aug 2019, 06:01 last edited by
        #3

        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 2 Dec 2020, 10:07
        0
        • J jsulm
          1 Aug 2019, 04:28

          @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

          I Offline
          I Offline
          IamJeff
          wrote on 1 Aug 2019, 14:17 last edited by IamJeff 8 Jan 2019, 14:20
          #4

          @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. :-(

          J 1 Reply Last reply 1 Aug 2019, 14:53
          0
          • I IamJeff
            1 Aug 2019, 14:17

            @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. :-(

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 1 Aug 2019, 14:53 last edited by
            #5

            @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
            0
            • I Offline
              I Offline
              IamJeff
              wrote on 5 Aug 2019, 14:46 last edited by IamJeff 8 May 2019, 14:52
              #6

              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
              0
              • S SGaist
                1 Aug 2019, 06:01

                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.

                S Offline
                S Offline
                shashikumar
                wrote on 2 Dec 2020, 10:07 last edited by
                #7

                @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
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 2 Dec 2020, 19:01 last edited by
                  #8

                  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 4 Dec 2020, 10:44
                  0
                  • S SGaist
                    2 Dec 2020, 19:01

                    Do you have another Qt version installed on that device ?

                    S Offline
                    S Offline
                    shashikumar
                    wrote on 4 Dec 2020, 10:44 last edited by
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved