Qt 5.5.0 static build fail on command mingw32-make install



  • Hi,

    I'm trying to build Qt 5.5.0 with mingw64, i had an error about qtactiveqt earlier but i found a fix on internet.

    The compilation is completed (140 minutes) but now i'm trying to do mingw32-make install and after some minutes i have this:

    C:/Qt/Qt5Static-m64/qtbase/qml/QtQuick/Window.2/libwindowplugin.a(plugin.o):plugin.cpp:(.text$_ZN20QtQuick2WindowPlugin13registerTypesEPKc[_ZN20QtQuick2WindowPlugin13registerTypesEPKc]+0x1): undefined reference to QQuickWindowModule::defineModule()' C:/Qt/Qt5Static-m64/qtbase/qml/QtQuick.2/libqtquick2plugin.a(plugin.o):plugin.cpp:(.text$_ZN14QtQuick2Plugin13registerTypesEPKc[_ZN14QtQuick2Plugin13registerTypesEPKc]+0x1): undefined reference toQQmlQtQuick2Module::defineModule()'
    C:/Qt/Qt5Static-m64/qtbase/qml/QtQuick.2/libqtquick2plugin.a(plugin.o):plugin.cpp:(.text$_ZN14QtQuick2PluginD1Ev[_ZN14QtQuick2PluginD1Ev]+0x1e): undefined reference to QQmlQtQuick2Module::undefineModule()' C:/Qt/Qt5Static-m64/qtbase/qml/QtQuick.2/libqtquick2plugin.a(plugin.o):plugin.cpp:(.text$_ZN14QtQuick2PluginD0Ev[_ZN14QtQuick2PluginD0Ev]+0x1e): undefined reference toQQmlQtQuick2Module::undefineModule()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(main.o):main.cpp:(.text+0x43): undefined reference to QBearerEnginePlugin::~QBearerEnginePlugin()' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(main.o):main.cpp:(.text+0x123): undefined reference toQBearerEnginePlugin::QBearerEnginePlugin(QObject*)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(main.o):main.cpp:(.text+0x27b): undefined reference to QBearerEnginePlugin::QBearerEnginePlugin(QObject*)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(main.o):main.cpp:(.text+0x2b): undefined reference toQBearerEnginePlugin::~QBearerEnginePlugin()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qgenericengine.o):qgenericengine.cpp:(.rdata$.refptr._ZTV22QNetworkSessionPrivate[.refptr._ZTV22QNetworkSessionPrivate]+0x0): undefined reference to vtable for QNetworkSessionPrivate' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(moc_qnetworksession_impl.o):moc_qnetworksession_impl.cpp:(.text+0x510): undefined reference toQNetworkSessionPrivate::qt_metacall(QMetaObject::Call, int, void**)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(moc_qnetworksession_impl.o):moc_qnetworksession_impl.cpp:(.text+0x5d): undefined reference to QNetworkSessionPrivate::qt_metacast(char const*)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(moc_qnetworksession_impl.o):moc_qnetworksession_impl.cpp:(.rdata+0x80): undefined reference toQNetworkSessionPrivate::staticMetaObject'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x228): undefined reference to QNetworkSessionPrivate::stateChanged(QNetworkSession::State)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x233): undefined reference toQNetworkSessionPrivate::error(QNetworkSession::SessionError)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x251): undefined reference to QNetworkSessionPrivate::error(QNetworkSession::SessionError)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x2a0): undefined reference toQNetworkSessionPrivate::quitPendingWaitsForOpened()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x2c0): undefined reference to QNetworkSessionPrivate::stateChanged(QNetworkSession::State)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x3c8): undefined reference toQNetworkSessionPrivate::closed()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x3f0): undefined reference to QNetworkSessionPrivate::error(QNetworkSession::SessionError)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x410): undefined reference toQNetworkSessionPrivate::stateChanged(QNetworkSession::State)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xaf1): undefined reference to QNetworkSessionPrivate::closed()' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xb0a): undefined reference toQNetworkSessionPrivate::stateChanged(QNetworkSession::State)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xb45): undefined reference to QNetworkSessionPrivate::quitPendingWaitsForOpened()' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xb8c): undefined reference toQNetworkSessionPrivate::closed()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xe77): undefined reference to QNetworkSessionPrivate::stateChanged(QNetworkSession::State)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xf6a): undefined reference toQNetworkSessionPrivate::newConfigurationActivated()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xf84): undefined reference to QNetworkSessionPrivate::stateChanged(QNetworkSession::State)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x14ea): undefined reference toQNetworkSessionPrivate::error(QNetworkSession::SessionError)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x362): undefined reference to QNetworkSessionPrivate::closed()' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0x385): undefined reference toQNetworkSessionPrivate::error(QNetworkSession::SessionError)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xa69): undefined reference to QNetworkSessionPrivate::usagePoliciesChanged(QFlags<QNetworkSession::UsagePolicy>)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqgenericbearer.a(qnetworksession_impl.o):qnetworksession_impl.cpp:(.text+0xba5): undefined reference toQNetworkSessionPrivate::error(QNetworkSession::SessionError)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqnativewifibearer.a(main.o):main.cpp:(.text+0x43): undefined reference to QBearerEnginePlugin::~QBearerEnginePlugin()' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqnativewifibearer.a(main.o):main.cpp:(.text+0xd3): undefined reference toQBearerEnginePlugin::QBearerEnginePlugin(QObject*)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqnativewifibearer.a(main.o):main.cpp:(.text+0x77b): undefined reference to QBearerEnginePlugin::QBearerEnginePlugin(QObject*)' C:/Qt/Qt5Static-m64/qtbase/plugins/bearer/libqnativewifibearer.a(main.o):main.cpp:(.text+0x2b): undefined reference toQBearerEnginePlugin::~QBearerEnginePlugin()'
    C:/Qt/Qt5Static-m64/qtbase/plugins/platforms/libqwindows.a(qwindowsfontdatabase_ft.o):qwindowsfontdatabase_ft.cpp:(.text+0xa1): undefined reference to QBasicFontDatabase::fontEngine(QFontDef const&, void*)' C:/Qt/Qt5Static-m64/qtbase/plugins/platforms/libqwindows.a(qwindowsfontdatabase_ft.o):qwindowsfontdatabase_ft.cpp:(.text+0x298): undefined reference toQBasicFontDatabase::fontEngine(QByteArray const&, double, QFont::HintingPreference)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/platforms/libqwindows.a(qwindowsfontdatabase_ft.o):qwindowsfontdatabase_ft.cpp:(.rdata$_ZTV22QWindowsFontDatabaseFT[_ZTV22QWindowsFontDatabaseFT]+0x50): undefined reference to QBasicFontDatabase::addApplicationFont(QByteArray const&, QString const&)' C:/Qt/Qt5Static-m64/qtbase/plugins/platforms/libqwindows.a(qwindowsfontdatabase_ft.o):qwindowsfontdatabase_ft.cpp:(.rdata$_ZTV22QWindowsFontDatabaseFT[_ZTV22QWindowsFontDatabaseFT]+0x58): undefined reference toQBasicFontDatabase::releaseHandle(void*)'
    C:/Qt/Qt5Static-m64/qtbase/plugins/platforms/libqwindows.a(qwindowsfontdatabase_ft.o):qwindowsfontdatabase_ft.cpp:(.rdata$.refptr._ZTV18QBasicFontDatabase[.refptr._ZTV18QBasicFontDatabase]+0x0): undefined reference to `vtable for QBasicFontDatabase'
    collect2.exe: error: ld returned 1 exit status
    Makefile.Release:86: recipe for target 'C:\Qt\Qt5Static-m64\qtbase\bin\qml.exe' failed
    mingw32-make[4]: *** [C:\Qt\Qt5Static-m64\qtbase\bin\qml.exe] Error 1
    mingw32-make[4]: Leaving directory 'C:/Qt/Qt5Static-m64/qtdeclarative/tools/qml'
    Makefile:44: recipe for target 'release-install' failed
    mingw32-make[3]: *** [release-install] Error 2
    mingw32-make[3]: Leaving directory 'C:/Qt/Qt5Static-m64/qtdeclarative/tools/qml'
    Makefile:106: recipe for target 'sub-qml-install_subtargets' failed
    mingw32-make[2]: *** [sub-qml-install_subtargets] Error 2
    mingw32-make[2]: Leaving directory 'C:/Qt/Qt5Static-m64/qtdeclarative/tools'
    Makefile:78: recipe for target 'sub-tools-install_subtargets' failed
    mingw32-make[1]: *** [sub-tools-install_subtargets] Error 2
    mingw32-make[1]: Leaving directory 'C:/Qt/Qt5Static-m64/qtdeclarative'
    makefile:232: recipe for target 'module-qtdeclarative-install_subtargets' failed
    mingw32-make: *** [module-qtdeclarative-install_subtargets] Error 2

    I really don't know why... i have no crash during mingw32-make, why i have this now?

    If i try to make a Qt application using this build i have these errors: http://prntscr.com/96jrt6

    Thanks!



  • Nobody know? It's not my first Qt build (x86) but it's my first one on x64.

    The main error is: undefined reference to QBasicFontDatabase


  • Lifetime Qt Champion

    Hi,

    Do you mean that if you build with MinGW-32 it's all working fine but not with MinGW-64 ?


Log in to reply
 

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