"QtQuick" The specified module could not be found



  • I'm trying to compile a project on Windows 10 Pro 64 bit using Qt 5.7 MinGW 5.3.0. but I encounter the following error:

    qrc:/main.qml:25 plugin cannot be loaded for module "QtQuick": Cannot load library C:\Qt\Qt5.7.0\5.7\mingw53_32\qml\QtQuick.2\qtquick2plugind.dll: The specified module could not be found.
    

    I've checked the path and the file is there but seems that for some reason is unable to find/load it.

    Here is the main.qml:

    import QtQuick 2.2
    import QtQuick.Window 2.1
    
    Window {
        id: windowID
        visible: true
        width: 800
        height: 600
    
        minimumHeight: 600
        minimumWidth: 800
    
        // other componenets
    }
    

    .pro file:

    TEMPLATE = app
    
    QT += qml quick widgets network concurrent
    
    SOURCES += // list of sources
    
    RESOURCES += qml.qrc
    
    CONFIG += c++11
    
    linux {
        // includes + libs paths
    } win32 {
        // includes + libs paths
    } macx {
        // includes + libs paths
    }
    
    # Additional import path used to resolve QML modules in Qt Creator's code model
    QML_IMPORT_PATH += "UI"
    
    # Default rules for deployment.
    include(deployment.pri)
    
    HEADERS += // list of headers
    

    The project builds successfully on Ubuntu 16.04 LTS with Qt 5.7 64 bits and OS X El Capital with Qt 5.7 64 bits.
    What I've tried so far:

    • Qt 5.5.1, 5.4.2 and 5.4.0 on Windows 10 Pro 64 bits.
    • Qt 5.7 and 5.4.0 on Windows 8 Pro 64 bits.
    • created an empty project with Qt 5.7 on Windows 10 and the it ran without any issues.
    • copied the file in the build folder but this time it specifies the build path:
    qrc:/main.qml:25 plugin cannot be loaded for module "QtQuick": Cannot load library \PATH\TO\BUILD\build-${PROJECT-NAME}-Desktop_Qt_5_7_0_MinGW_32bit-Debug\debug\QtQuick.2\qtquick2plugind.dll: The specified module could not be found.
    

Log in to reply
 

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