Qt static x64 build fail



  • Hi,

    It's not the first time i'm building Qt but this one confuse me.

    I'm using Qt5.5.0 with mingw64, the source are built with success, but when i try to do 'mingw32-make install' i have the following errors:

    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(QFlagsQNetworkSession::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 found nothing about "undefined reference to QBasicFontDatabse" issue on internet...

    i really need to have a static x64 Qt5 build.

    Hope someone will help, thanks!


Log in to reply
 

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