Results 1 to 4 of 4

Thread: "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt

  1. #1

    Default "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt

    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 

  2. #2

    Default Re: "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt

    Does anyone have instructions for Qt static build that is version 5.4 or greater?
    Last edited by pditty8811; 25th October 2015 at 20:11.

  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt

    Is that error produced when you build Qt itself, or when you build your program?

  4. #4

    Default Re: "undefined reference to 'qt_static_plugin_AccessibleFactory()'" for static Qt

    Quote Originally Posted by ChrisW67 View Post
    Is that error produced when you build Qt itself, or when you build your program?
    When I build my program.

    My static build of Qt steps are the same I've used always. But I'm only getting this error after v5.4.


    Added after 7 minutes:


    OK, so the error is specific to this project only. My other projects compile fine with static Qt post v5.4.

    What could be the issue with this particular project? It's a big project, what files should I post? The .pro file is already posted in the OP.


    Added after 4 minutes:


    Ok, so the file in reference to in the error is the plugin_import file. It looks like this:

    Qt Code:
    1. // This file is autogenerated by qmake. It imports static plugin classes for
    2. // static plugins specified using QTPLUGIN and QT_PLUGIN_CLASS.<plugin> variables.
    3. #include <QtPlugin>
    4. Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
    5. Q_IMPORT_PLUGIN(QICOPlugin)
    6. Q_IMPORT_PLUGIN(QGenericEnginePlugin)
    7. Q_IMPORT_PLUGIN(QNativeWifiEnginePlugin)
    To copy to clipboard, switch view to plain text mode 

    Where is 'qt_static_plugin_AccessibleFactory()' in all of that above?
    Last edited by pditty8811; 25th October 2015 at 22:09.

Similar Threads

  1. Replies: 1
    Last Post: 15th January 2014, 09:14
  2. error of installing qscintilla2 on Linux "undefined reference"
    By dtustudy68 in forum Installation and Deployment
    Replies: 0
    Last Post: 31st March 2013, 23:12
  3. "undefined reference for vtable" problem
    By jepessen in forum Qt Programming
    Replies: 3
    Last Post: 14th September 2011, 20:30
  4. Replies: 2
    Last Post: 27th August 2011, 13:59
  5. Replies: 11
    Last Post: 20th March 2011, 09:38

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.