Qt Forum

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

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

    General and Desktop
    qtqml missing files
    5
    12
    566
    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.
    • L
      Leway Previs 0 last edited by

      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 Reply Quote 0
      • AxelVienna
        AxelVienna last edited by

        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 Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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 Reply Quote 0
          • L
            Leway Previs 0 @SGaist last edited by Leway Previs 0

            @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 Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • L
                Leway Previs 0 @SGaist last edited by

                @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 Reply Quote 0
                • A
                  aliks-os @Leway Previs 0 last edited by

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

                  L 1 Reply Last reply Reply Quote 0
                  • L
                    Leway Previs 0 @aliks-os last edited by

                    @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 Reply Quote 0
                    • SGaist
                      SGaist Lifetime Qt Champion last edited by

                      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 Reply Quote 0
                      • L
                        Leway Previs 0 @SGaist last edited by 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.)

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

                          @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 Reply Quote 0
                          • L
                            Leway Previs 0 @jsulm last edited by Leway Previs 0

                            @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 Reply Quote 0
                            • First post
                              Last post