Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt 6 fresh installation - can't launch QtCreator

    Mobile and Embedded
    2
    7
    337
    Loading More Posts
    • 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.
    • J
      johnyboy last edited by

      I've installed Qt 6 and I can't launch QtCreator.

      qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
      This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

      Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

      Aborted

      inside the directory

      ~/Qt/Tools/QtCreator/lib/Qt/plugins/platforms

      there are the following files:

      libqeglfs.so libqlinuxfb.so libqminimalegl.so libqminimal.so libqoffscreen.so libqvnc.so libqxcb.so

      I've installed already mesa-common-dev and other packages.

      What is the solution to this strange problem after a fresh installation?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @johnyboy last edited by jsulm

        @johnyboy Install libxcb-util1 package
        See here for needed packages: https://doc.qt.io/qt-5/linux-requirements.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        J 1 Reply Last reply Reply Quote 1
        • jsulm
          jsulm Lifetime Qt Champion @johnyboy last edited by

          @johnyboy said in Qt 6 fresh installation - can't launch QtCreator:

          What is the solution to this strange problem after a fresh installation?

          Open a terminal and do

          export QT_DEBUG_PLUGINS=1
          # Start QtCreator
          PATH_TO_QTCREATOR_EXE
          

          Post the output from the terminal here.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          J 1 Reply Last reply Reply Quote 0
          • J
            johnyboy @jsulm last edited by

            @jsulm Opened terminal and entered "export QT_DEBUG_PLUGINS=1". After running QtCreator I get:

            Cannot load library /home/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)

            QLibraryPrivate::loadPlugin failed on "/home/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/johny/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)"

            qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

            jsulm 1 Reply Last reply Reply Quote 0
            • jsulm
              jsulm Lifetime Qt Champion @johnyboy last edited by jsulm

              @johnyboy Install libxcb-util1 package
              See here for needed packages: https://doc.qt.io/qt-5/linux-requirements.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              J 1 Reply Last reply Reply Quote 1
              • J
                johnyboy @jsulm last edited by

                @jsulm Do you mean libxcb-util0 and libxcb-util0-dev perhaps because I can't find anything with libxcb-util1 when I type sudo apt? Or I have to build it from scratch?

                jsulm 1 Reply Last reply Reply Quote 0
                • jsulm
                  jsulm Lifetime Qt Champion @johnyboy last edited by jsulm

                  @johnyboy said in Qt 6 fresh installation - can't launch QtCreator:

                  libxcb-util0

                  This one. Dev package shouldn't be needed. In my distribution it is called libxcb-util1

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    johnyboy @jsulm last edited by

                    @jsulm It worked! I already had libxcb-util0 installed but that didn't work with Qt6, so I manually installed libxcb-util1 and it works perfectly, thanks!

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post