Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. :-1: error: Project ERROR: Unknown module(s) in QT: qml
QtWS25 Last Chance

:-1: error: Project ERROR: Unknown module(s) in QT: qml

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtqmlmissing files
12 Posts 5 Posters 2.5k 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.
  • L Offline
    L Offline
    Leway Previs 0
    wrote on last edited by
    #1

    Okay, some details first: Qt 6.2.2, on Fedora 35.

    So, obvious question: how can I get hold of the QtQml module (and, to be fair, the rest of the QML modules)? I've tried the Maintenance Tool, and it seems to think they're there already.

    1 Reply Last reply
    0
    • AxelViennaA Offline
      AxelViennaA Offline
      AxelVienna
      wrote on last edited by
      #2

      Can you post the installation tree of your maintenance tool?

      C++ and Python walk into a bar. C++ reuses the first glass.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Some more details are required:

        • type of project: qmake or cmake ?
        • how did you create the project ?

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

        L 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Some more details are required:

          • type of project: qmake or cmake ?
          • how did you create the project ?
          L Offline
          L Offline
          Leway Previs 0
          wrote on last edited by Leway Previs 0
          #4

          @SGaist

          1: From what I can tell, qmake. (I just pressed the "Build" button, but this pops up when I modify the .pro file, before I try to build it.)
          2: Not sure what you mean by this question; I've been using Qt Creator to write my project.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Can you show the content of your .pro file ?

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

            L 1 Reply Last reply
            0
            • SGaistS SGaist

              Can you show the content of your .pro file ?

              L Offline
              L Offline
              Leway Previs 0
              wrote on last edited by
              #6

              @SGaist, this is what it looks like. You'll note the line causing the error is in Line 1.

              QT       += core gui network qml
              
              greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
              
              CONFIG += c++11
              
              # You can make your code fail to compile if it uses deprecated APIs.
              # In order to do so, uncomment the following line.
              #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
              
              SOURCES += \
                  main.cpp \
                  qircbot.cpp \
                  qircbotmainwindow.cpp
              
              HEADERS += \
                  qircbot.h \
                  qircbotmainwindow.h
              
              # Default rules for deployment.
              qnx: target.path = /tmp/$${TARGET}/bin
              else: unix:!android: target.path = /opt/$${TARGET}/bin
              !isEmpty(target.path): INSTALLS += target
              

              (As I'm sure you can tell at this point, the project in question is an IRC bot. I am not asking for advice on how to write it; this is a project that is being rebuilt from the ground up, so I've done this before, in this manner before.)

              A 1 Reply Last reply
              0
              • L Leway Previs 0

                @SGaist, this is what it looks like. You'll note the line causing the error is in Line 1.

                QT       += core gui network qml
                
                greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
                
                CONFIG += c++11
                
                # You can make your code fail to compile if it uses deprecated APIs.
                # In order to do so, uncomment the following line.
                #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
                
                SOURCES += \
                    main.cpp \
                    qircbot.cpp \
                    qircbotmainwindow.cpp
                
                HEADERS += \
                    qircbot.h \
                    qircbotmainwindow.h
                
                # Default rules for deployment.
                qnx: target.path = /tmp/$${TARGET}/bin
                else: unix:!android: target.path = /opt/$${TARGET}/bin
                !isEmpty(target.path): INSTALLS += target
                

                (As I'm sure you can tell at this point, the project in question is an IRC bot. I am not asking for advice on how to write it; this is a project that is being rebuilt from the ground up, so I've done this before, in this manner before.)

                A Offline
                A Offline
                aliks-os
                wrote on last edited by
                #7

                @Leway-Previs-0
                run clean project, then qmake and rebuild

                L 1 Reply Last reply
                0
                • A aliks-os

                  @Leway-Previs-0
                  run clean project, then qmake and rebuild

                  L Offline
                  L Offline
                  Leway Previs 0
                  wrote on last edited by
                  #8

                  @aliks-os I have just done that. On Clean, it brought up that it couldn't find the QML module. Ran QMake, it showed the error in the thread title.

                  Now, I apologise if I sound like a jerk from this point onwards. As I stated in my original post, it cannot find the files required; it actually seems like they do not exist in my install. (And before anyone asks, yes, I looked.) What I want to know is, where can I find the files required for these modules, and what needs to be located where? That is all I needed to know.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    How did you install Qt ?
                    I would have guessed using the online installer in which case you should not be missing these files.

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

                    L 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      How did you install Qt ?
                      I would have guessed using the online installer in which case you should not be missing these files.

                      L Offline
                      L Offline
                      Leway Previs 0
                      wrote on last edited by Leway Previs 0
                      #10

                      @SGaist I did, yes.

                      Where would they be located normally? I'm certain I have not missed them, but y'know, best to double check. (I'm on a Linux system, if that helps.)

                      jsulmJ 1 Reply Last reply
                      0
                      • L Leway Previs 0

                        @SGaist I did, yes.

                        Where would they be located normally? I'm certain I have not missed them, but y'know, best to double check. (I'm on a Linux system, if that helps.)

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @Leway-Previs-0 Maybe you also installed Qt packaged by your Linux distribution and are now using that one?
                        Make sure you use qmake from the Qt installation you want to use.

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

                        L 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Leway-Previs-0 Maybe you also installed Qt packaged by your Linux distribution and are now using that one?
                          Make sure you use qmake from the Qt installation you want to use.

                          L Offline
                          L Offline
                          Leway Previs 0
                          wrote on last edited by Leway Previs 0
                          #12

                          @jsulm That crossed my mind also, so I did a full uninstall, then reinstalled from the Qt installer. Didn't change.

                          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