Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24496

Make Qt5 static plugins work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.0.0 RC 1
    • 5.0.0
    • Core: Plugins
    • None
    • win7, vs2010, g++-win32

      With introduction of QPA every single Qt app has at least one dynamically loaded plugin the one in 'platforms' folder.

      This breaks Qt static build (ot compiles, but the application fails with exception).

      To make static builds work I hacked qplatformintegrationfactory_qpa.cpp to return QWindowsIntegration instance explicitly,
      then link windowsd.lib into final app. Also qRegisterWidgetsVariant() method had to be called explicitly.

      An option of configure script similar to qt-sql<driver> should be introduced (e.g. qt-qpa<driver>) to handle this case in a nice way.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            buddenha Oswald Buddenhagen
            shaforostoff Nick Shaforostoff
            Votes:
            6 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes