"undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt build during exe build



  • I get a building error for my 5.5.1 Qt static build :

    "undefined reference to 'qt_static_plugin_AccessibleFactory()'"

    This error has occurred for all static builds after 5.3.

    Here is my process of building Static Qt:

    *[GOTO "D:\Qt\Qt5.5.0\5.5\Src\qtbase\mkspecs" AND FIND COMPILER NAME.
    LIKE "win32-g++"

    Go TO THE qmake.conf file and edit QMAKE_LFLAGS line to:
    QMAKE_LFLAGS = -static -static-libgcc

    GO TO QT COMMAND PROMPT:
    cd "D:\Qt\Qt5.5.1.static\5.5\Src\qtbase"

    THEN:
    set PATH=D:\Qt\Qt5.5.1.static\Tools\mingw492_32\bin;c:\Windows;c:\Windows\System32;D:\Python33;D:\strawberry\perl\bin;D:\Ruby200\bin

    TO SHOW OPTIONS:
    configure -h

    THEN:
    configure -static -release -platform win32-g++ -opengl desktop -opensource

    THEN:
    y

    THEN:
    mingw32-make sub-src*

    Here is my .pro file:


    QT += core gui
    QT += network

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = SH3DC
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp
    populate.cpp
    batch.cpp
    table.cpp
    grabdata.cpp
    savesdata.cpp
    aboutdialog.cpp
    forgotdialog.cpp
    settingsdialog.cpp

    HEADERS += mainwindow.h
    populate.h
    batch.h
    table.h
    grabdata.h
    savesdata.h
    aboutdialog.h
    forgotdialog.h
    settingsdialog.h

    FORMS += mainwindow.ui
    aboutdialog.ui
    forgotdialog.ui
    settingsdialog.ui

    RESOURCES +=
    images.qrc

    RC_FILE = icon.rc

    TRANSLATIONS = SH3DC_de_COMP.ts


    @pditty8811 said in "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt build during exe build:

    I get a building error for my 5.5.1 Qt static build :

    "undefined reference to 'qt_static_plugin_AccessibleFactory()'"

    This error has occurred for all static builds after 5.3.

    Here is my process of building Static Qt:

    *[GOTO "D:\Qt\Qt5.5.0\5.5\Src\qtbase\mkspecs" AND FIND COMPILER NAME.
    LIKE "win32-g++"

    Go TO THE qmake.conf file and edit QMAKE_LFLAGS line to:
    QMAKE_LFLAGS = -static -static-libgcc

    GO TO QT COMMAND PROMPT:
    cd "D:\Qt\Qt5.5.1.static\5.5\Src\qtbase"

    THEN:
    set PATH=D:\Qt\Qt5.5.1.static\Tools\mingw492_32\bin;c:\Windows;c:\Windows\System32;D:\Python33;D:\strawberry\perl\bin;D:\Ruby200\bin

    TO SHOW OPTIONS:
    configure -h

    THEN:
    configure -static -release -platform win32-g++ -opengl desktop -opensource

    THEN:
    y

    THEN:
    mingw32-make sub-src*

    Here is my .pro file:


    QT += core gui
    QT += network

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = SH3DC
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp
    populate.cpp
    batch.cpp
    table.cpp
    grabdata.cpp
    savesdata.cpp
    aboutdialog.cpp
    forgotdialog.cpp
    settingsdialog.cpp

    HEADERS += mainwindow.h
    populate.h
    batch.h
    table.h
    grabdata.h
    savesdata.h
    aboutdialog.h
    forgotdialog.h
    settingsdialog.h

    FORMS += mainwindow.ui
    aboutdialog.ui
    forgotdialog.ui
    settingsdialog.ui

    RESOURCES +=
    images.qrc

    RC_FILE = icon.rc

    TRANSLATIONS = SH3DC_de_COMP.ts




  • Note:

    I have used the above process for static builds on all versions prior to 5.4 without problems.



  • Does anyone have instructions for Qt static build that is version 5.4 or greater?



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