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

Could not find the Qt platform plugin "xcb" in "" (static runtime, static build)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.0
    • QPA: X11/XCB
    • None
    • OS: openSUSE Tumbleweed x86_64
      Kernel: 5.8.0-1-default
      GCC: 10.2.1 20200805
    • Linux/X11

      qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this proble

      If you add to the cpp file:

      Q_IMPORT_PLUGIN (QXcbIntegrationPlugin)

      , you get an undefined reference:

      /home/continue/qt5/qtbase/src/plugins/platforms/xcb/qxcbmain.cpp:56: undefined reference to `QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**)'
      

       
      Libraries added to the linker:

      "Qt5Core", 
      "Qt5Gui",
      "Qt5Widgets",
      "Qt5EventDispatcherSupport",
      "Qt5FontDatabaseSupport",
      "Qt5PlatformCompositorSupport",
      "Qt5ThemeSupport",
      "qtfreetype",
      "qtlibpng",
      "qminimal",
      "qxcb",
      "qtpcre2",
      "qtharfbuzz",
      "dl",
      "pthread"

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

            liaqi Liang Qi
            continue continue
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes