Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building/Running static plugin?
Forum Updated to NodeBB v4.3 + New Features

Building/Running static plugin?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
static buildstaticplugin
2 Posts 2 Posters 2.4k 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.
  • R Offline
    R Offline
    RyanB
    wrote on 27 Feb 2016, 22:16 last edited by
    #1

    Hello all,

    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.
    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sookoio
      wrote on 17 Aug 2018, 11:08 last edited by
      #2

      use macro:
      Q_IMPORT_PLUGIN(QLinuxFbIntegrationPlugin);

      1 Reply Last reply
      0

      • Login

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