"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-libgccGO 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\binTO SHOW OPTIONS:
configure -hTHEN:
configure -static -release -platform win32-g++ -opengl desktop -opensourceTHEN:
yTHEN:
mingw32-make sub-src*Here is my .pro file:
QT += core gui
QT += networkgreaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = SH3DC
TEMPLATE = appSOURCES += main.cpp
mainwindow.cpp
populate.cpp
batch.cpp
table.cpp
grabdata.cpp
savesdata.cpp
aboutdialog.cpp
forgotdialog.cpp
settingsdialog.cppHEADERS += mainwindow.h
populate.h
batch.h
table.h
grabdata.h
savesdata.h
aboutdialog.h
forgotdialog.h
settingsdialog.hFORMS += mainwindow.ui
aboutdialog.ui
forgotdialog.ui
settingsdialog.uiRESOURCES +=
images.qrcRC_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-libgccGO 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\binTO SHOW OPTIONS:
configure -hTHEN:
configure -static -release -platform win32-g++ -opengl desktop -opensourceTHEN:
yTHEN:
mingw32-make sub-src*Here is my .pro file:
QT += core gui
QT += networkgreaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = SH3DC
TEMPLATE = appSOURCES += main.cpp
mainwindow.cpp
populate.cpp
batch.cpp
table.cpp
grabdata.cpp
savesdata.cpp
aboutdialog.cpp
forgotdialog.cpp
settingsdialog.cppHEADERS += mainwindow.h
populate.h
batch.h
table.h
grabdata.h
savesdata.h
aboutdialog.h
forgotdialog.h
settingsdialog.hFORMS += mainwindow.ui
aboutdialog.ui
forgotdialog.ui
settingsdialog.uiRESOURCES +=
images.qrcRC_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?