Building/Running static plugin?
I have been trying to compile/execute an application with QT statically linked. I have been able to build the static QT libraries successfully and I have linked them with my application. However, when I run the application I get the following error:
"This application failed to start because it could not find or load the Qt platform plugin “linuxfb”"
With QT_DEBUG_PLUGINS set to 1, it also reports that" QFactoryLoader::QFactoryLoader() ignoring "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.2" since plugins are disabled in static builds"
I have linked the libqlinuxfb.a file, and I followed the directions outlined on this page (http://doc.qt.io/qt-5/plugins-howto.html#static-plugins) and added qlinux to the QTPLUGIN line, but I still get the same message. I have also tried putting the Q_IMPORT_PLUGIN(qlinuxfb) macro in my main.cpp, but at linktime I get the following error: "undefined reference to `qt_static_plugin_qlinuxfb()".
Any help or advice is greatly appreciated.