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

Trying to build static Qt5 in Ubuntu 12.04; all apps quit with ‘Failed to load platform plugin “xcb”’

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.0.0 RC 2
    • 5.0.0 RC 1
    • Core: Plugins
    • None
    • Ubuntu 12.04 i386

    Description

      I’ve built a static version of Qt 5 RC 1, but all of the applications I build, including the Qt examples, will immediately quit with the following message:
      Failed to load platform plugin "xcb". Available platforms are:

      The program has unexpectedly finished.

      Here’s the configure call I used to build:
      ./configure -release -static -opensource -nomake examples -nomake tests -qt-xcb

      My issue looked similar to QTBUG-24496 which suggested adding the following to main.cpp:
      #include <QtCore/QtPlugin>
      ...
      Q_IMPORT_PLUGIN(QXcbIntegrationPlugin)

      but that just results in the following link error:
      undefined reference to `qt_static_plugin_QXcbIntegrationPlugin()’

      Attachments

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

        Activity

          People

            guygizmo Brian Kendall
            guygizmo Brian Kendall
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes