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. Unknown Module QML
Forum Updated to NodeBB v4.3 + New Features

Unknown Module QML

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
11 Posts 2 Posters 1.8k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    ham13
    wrote on last edited by
    #1

    Running QT 5.15.3 On Linux Machine. Useing QT Creator 6. Tried to build project. Got error "Unknown module QML". It 's been suggested that the qml module was not install by the default installer and I should reinstall qt.

    Looked for the qml module using the online installer but, I could not find it. How do I install it? Should I remove qt5 and install qt6? If so what is the best way to do it?

    Thanks,
    Marty

    SGaistS 1 Reply Last reply
    0
    • H ham13

      Running QT 5.15.3 On Linux Machine. Useing QT Creator 6. Tried to build project. Got error "Unknown module QML". It 's been suggested that the qml module was not install by the default installer and I should reinstall qt.

      Looked for the qml module using the online installer but, I could not find it. How do I install it? Should I remove qt5 and install qt6? If so what is the best way to do it?

      Thanks,
      Marty

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      5.15.3 was not provided as pre-built Qt version so there might be something fishy here.

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

      H 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        5.15.3 was not provided as pre-built Qt version so there might be something fishy here.

        H Offline
        H Offline
        ham13
        wrote on last edited by
        #3

        @SGaist - Ran qmake --version to list qt version in use. Result QT V 5.15.3 in /USR/LIB/X86-64-LINUX-GNU, QMAKE v 3.1.

        Looking in that directory shows both qt5 and qt 6 directories.

        The qt-unified-linux-x64-4.6.1-online.run online installer shows only qt 5.15.2. Unfortunately I do not remember how I installed qt 5.15.3.

        So now how do I completely remove the existing qt 5.15.3 version without harming my system or qt6?
        Using the online installer to remover it did not work.
        Should I just install 5.15.2 over 5.15.3?

        qt-chooser does not see qt6. It reports only default, qt4 and qt5. Is there a problem with qtchooser and how do I fix it.

        Thanks,
        Marty

        SGaistS 1 Reply Last reply
        0
        • H ham13

          @SGaist - Ran qmake --version to list qt version in use. Result QT V 5.15.3 in /USR/LIB/X86-64-LINUX-GNU, QMAKE v 3.1.

          Looking in that directory shows both qt5 and qt 6 directories.

          The qt-unified-linux-x64-4.6.1-online.run online installer shows only qt 5.15.2. Unfortunately I do not remember how I installed qt 5.15.3.

          So now how do I completely remove the existing qt 5.15.3 version without harming my system or qt6?
          Using the online installer to remover it did not work.
          Should I just install 5.15.2 over 5.15.3?

          qt-chooser does not see qt6. It reports only default, qt4 and qt5. Is there a problem with qtchooser and how do I fix it.

          Thanks,
          Marty

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It seems you are mixing system and Qt online installer versions of Qt.

          You should not try to nuke the versions from your system as it's likely used by your desktop environment and/or applications you installed.

          You should ensure that you are using a kit that is configured to use the Qt online installer version of Qt. If you would like to use the one from your system, you need to install the corresponding dev packages.

          As for qtchooser, you shouldn't use it to try and look for your custom Qt installed. If on the command line, use the explicit path to the qmake executable of the Qt version you want to use to build your application.

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

          1 Reply Last reply
          0
          • H Offline
            H Offline
            ham13
            wrote on last edited by
            #5

            OK. I'll keep 5.15.3. I have also installed qt6 and all of it's parts.

            I'm using qtcreator to build two projects that compiled under 5.15.2. on another PC long gone now.

            I need to point qtCreator to the proper version of qmake and get it to use qt6. So many options I do not know which to change. Tried using qmake6. That gave me more errors.

            Marty

            SGaistS 1 Reply Last reply
            0
            • H ham13

              OK. I'll keep 5.15.3. I have also installed qt6 and all of it's parts.

              I'm using qtcreator to build two projects that compiled under 5.15.2. on another PC long gone now.

              I need to point qtCreator to the proper version of qmake and get it to use qt6. So many options I do not know which to change. Tried using qmake6. That gave me more errors.

              Marty

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              If Qt Creator did not detect that version, did you create a new kit for Qt 6 ?

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

              1 Reply Last reply
              0
              • H Offline
                H Offline
                ham13
                wrote on last edited by
                #7

                I do not know if I created a kit or not. I did change the enviroment path and qtdir to those for qt6. Now qtcrteator sees qt6 and it's associted compilers.

                If do gcc --version I get 11.4. My projects still will not compile. Looks like it wants to use C++17 compiler. The highest version I have is 15. How do I install C++17. Not much on the net.

                Thanks,
                Marty

                SGaistS 1 Reply Last reply
                0
                • H ham13

                  I do not know if I created a kit or not. I did change the enviroment path and qtdir to those for qt6. Now qtcrteator sees qt6 and it's associted compilers.

                  If do gcc --version I get 11.4. My projects still will not compile. Looks like it wants to use C++17 compiler. The highest version I have is 15. How do I install C++17. Not much on the net.

                  Thanks,
                  Marty

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You don't install C++17, you install a compiler that supports it.

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

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    ham13
                    wrote on last edited by
                    #9

                    OK. How do I know which compiler supports C++17?
                    I have about 10 listed under Manage Kits. I'll see what I can find on the net.

                    Thanks,
                    Marty

                    SGaistS 1 Reply Last reply
                    0
                    • H ham13

                      OK. How do I know which compiler supports C++17?
                      I have about 10 listed under Manage Kits. I'll see what I can find on the net.

                      Thanks,
                      Marty

                      SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      Check the Qt 6 supported platforms page and see if it applies to your Linux distribution.

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

                      1 Reply Last reply
                      0
                      • H Offline
                        H Offline
                        ham13
                        wrote on last edited by
                        #11

                        Looks like Ubuntu supports GCC 11 X. I'll try it and see. Now I'm getting error "type_traits file not found". Maybe related to the compiler I've choosen. Let's see what happens with gcc 1. Will post results.

                        Marty

                        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