Qt World Summit: Register Today!

Qt 64bit on Windows missing qtquick, please help!

  • Hi everybody!

    I have built Qt 5.5.1 from sources on windows 10 for 64bit, using the MinGW tool chain
    with the following command:
    configure -static -prefix %CD%\qtbase -commercial -nomake tests -nomake examples -opengl desktop
    Everything went fine though it seems that I'm missing something in the qtquick package.

    When I try to build a simple qtquick application using the 64 kit I get the following errors:
    plugin.cpp:-1: error: undefined reference to 'QQmlQtQuick2Module::defineModule()'
    plugin.cpp:-1: error: undefined reference to 'QQuickWindowModule::defineModule()'

    Here are the details in the Compile Output view:
    'C:/Qt/qt-everywhere-enterprise-src-5.5.1/qtbase/qml/QtQuick.2/libqtquick2plugin.a(plugin.o):plugin.cpp:(.text$_ZN14QtQuick2Plugin13registerTypesEPKc[_ZN14QtQuick2Plugin13registerTypesEPKc]+0x1): undefined reference to 'QQmlQtQuick2Module::defineModule()' C:/Qt/qt-everywhere-enterprise-src-5.5.1/qtbase/qml/QtQuick.2/libqtquick2plugin.a(plugin.o):plugin.cpp:(.text$_ZN14QtQuick2PluginD1Ev[_ZN14QtQuick2PluginD1Ev]+0x1e): undefined reference to QQmlQtQuick2Module::undefineModule()' ...

    Any ideas what went wrong here?
    Many thanks in advance

  • Hi again,

    I found part of my problem:
    I had to link with the following two static libraries, here the line in my .pro:

    CONFIG(release, debug|release): LIBS += -L$$PWD/libs/ -lqtquick2plugin -lwindowplugin

    However now I get the runtime error:
    QQmlApplicationEngine failed to load component qrc:/main.qml:3 module "QtQuick.Controls" is not installed

    Any ideas?

Log in to reply