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:

Qt Code:
  1. [GOTO "D:\Qt\Qt5.5.0\5.5\Src\qtbase\mkspecs" AND FIND COMPILER NAME.
  2. LIKE "win32-g++"
  3.  
  4. Go TO THE qmake.conf file and edit QMAKE_LFLAGS line to:
  5. QMAKE_LFLAGS = -static -static-libgcc
  6.  
  7. GO TO QT COMMAND PROMPT:
  8. cd "D:\Qt\Qt5.5.1.static\5.5\Src\qtbase"
  9.  
  10. THEN:
  11. 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
  12.  
  13. TO SHOW OPTIONS:
  14. configure -h
  15.  
  16. THEN:
  17. configure -static -release -platform win32-g++ -opengl desktop -opensource
  18.  
  19. THEN:
  20. y
  21.  
  22. THEN:
  23. mingw32-make sub-src
To copy to clipboard, switch view to plain text mode 


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

Here is my .pro file:
Qt Code:
  1. QT += core gui
  2. QT += network
  3.  
  4. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  5.  
  6. TARGET = SH3DC
  7. TEMPLATE = app
  8.  
  9. SOURCES += main.cpp
  10. mainwindow.cpp
  11. populate.cpp
  12. batch.cpp
  13. table.cpp
  14. grabdata.cpp
  15. savesdata.cpp
  16. aboutdialog.cpp
  17. forgotdialog.cpp
  18. settingsdialog.cpp
  19.  
  20. HEADERS += mainwindow.h
  21. populate.h
  22. batch.h
  23. table.h
  24. grabdata.h
  25. savesdata.h
  26. aboutdialog.h
  27. forgotdialog.h
  28. settingsdialog.h
  29.  
  30. FORMS += mainwindow.ui
  31. aboutdialog.ui
  32. forgotdialog.ui
  33. settingsdialog.ui
  34.  
  35. RESOURCES +=
  36. images.qrc
  37.  
  38. RC_FILE = icon.rc
  39.  
  40. TRANSLATIONS = SH3DC_de_COMP.ts
To copy to clipboard, switch view to plain text mode