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(s) in QT: declarative
Forum Updated to NodeBB v4.3 + New Features

Unknown module(s) in QT: declarative

Scheduled Pinned Locked Moved Solved Installation and Deployment
6 Posts 2 Posters 5.9k 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
    Helena32
    wrote on last edited by Helena32
    #1

    Sorry, this may be a dumb question, but I'm totally new in QT, I just need to run a project and Log some data.
    I installed Qt "qt-unified-windows-x86-2.0.3-2-online", open the project and then click on configure, and then I got this error:
    Project ERROR: Unknown module(s) in QT: declarative
    which wont let me compile the code. Everything else looks fine.
    From researching I get that I may lack some libraries, I'm using windows, How do I get the proper library in windows? which is the library I need?

    Thank you.

    1 Reply Last reply
    0
    • H Offline
      H Offline
      Helena32
      wrote on last edited by Helena32
      #6

      I got the solution.

      The error occurs when trying to build a project that depends on the deprecated QtDeclarative module on Qt version 5.6 and later, as the module was removed in version 5.6.

      The source code for the module is still available you can compile it from source. Or you can use a Qt version below Qt 5.6 to build the project.

      Thank you all.

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

        Hi and welcome to devnet,

        Which version of Qt did you install ?

        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
          Helena32
          wrote on last edited by
          #3

          Thanks for your reply.

          the version I download from the webpage is

          Qt Creator 4.1.0
          Based on Qt 5.7.0 (MSVC 2013, 32 bit)
          Built on Aug 24 2016 14:56:50

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

            That's Qt Creator, what about Qt itself ? also 5.7 ?

            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
              Helena32
              wrote on last edited by Helena32
              #5

              I see, So sorry. like eclipse and jdk.
              Qt Creator user the kit Desktop Qt 5.7.0 MinGW 32bit.
              I think this is it right?

              Im actually trying to figure out windeployqt -declarative, which I think would be the solution. but according to the docs:
              he simplest way to use windeployqt is to add the bin directory of your Qt installation (e.g. <QT_DIR\bin>) to the PATH variable (Done) and then run: windeployqt <path-to-app-binary> what is this path-to-app-binary? app-binary of what?

              1 Reply Last reply
              0
              • H Offline
                H Offline
                Helena32
                wrote on last edited by Helena32
                #6

                I got the solution.

                The error occurs when trying to build a project that depends on the deprecated QtDeclarative module on Qt version 5.6 and later, as the module was removed in version 5.6.

                The source code for the module is still available you can compile it from source. Or you can use a Qt version below Qt 5.6 to build the project.

                Thank you all.

                1 Reply Last reply
                1

                • Login

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