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

:-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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 27 Dec 2021, 16:25 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 28 Dec 2021, 07:01
    0
    • S SGaist
      27 Dec 2021, 16:25

      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 28 Dec 2021, 07:01 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
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 28 Dec 2021, 19:44 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 29 Dec 2021, 07:46
        0
        • S SGaist
          28 Dec 2021, 19:44

          Can you show the content of your .pro file ?

          L Offline
          L Offline
          Leway Previs 0
          wrote on 29 Dec 2021, 07:46 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 29 Dec 2021, 08:40
          0
          • L Leway Previs 0
            29 Dec 2021, 07:46

            @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 29 Dec 2021, 08:40 last edited by
            #7

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

            L 1 Reply Last reply 3 Jan 2022, 10:13
            0
            • A aliks-os
              29 Dec 2021, 08:40

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

              L Offline
              L Offline
              Leway Previs 0
              wrote on 3 Jan 2022, 10:13 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
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 3 Jan 2022, 20:06 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 4 Jan 2022, 13:15
                0
                • S SGaist
                  3 Jan 2022, 20:06

                  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 4 Jan 2022, 13:15 last edited by Leway Previs 0 1 Apr 2022, 13:18
                  #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.)

                  J 1 Reply Last reply 4 Jan 2022, 13:23
                  0
                  • L Leway Previs 0
                    4 Jan 2022, 13:15

                    @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.)

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 4 Jan 2022, 13:23 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 7 Jan 2022, 11:27
                    0
                    • J jsulm
                      4 Jan 2022, 13:23

                      @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 7 Jan 2022, 11:27 last edited by Leway Previs 0 1 Jul 2022, 11:28
                      #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

                      12/12

                      7 Jan 2022, 11:27

                      • Login

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