Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt build during exe build

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
static buildpluginsstatic library
3 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pditty8811
    wrote on 21 Oct 2015, 22:25 last edited by pditty8811
    #1

    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


    1 Reply Last reply
    0
    • P Offline
      P Offline
      pditty8811
      wrote on 21 Oct 2015, 22:32 last edited by
      #2

      Note:

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

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pditty8811
        wrote on 25 Oct 2015, 18:33 last edited by pditty8811
        #3

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

        1 Reply Last reply
        0

        3/3

        25 Oct 2015, 18:33

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved