Unknown module(s) in QT: declarative



  • 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.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Which version of Qt did you install ?



  • 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


  • Lifetime Qt Champion

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



  • 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?



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.