Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 6 fresh installation - can't launch QtCreator

Qt 6 fresh installation - can't launch QtCreator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 2 Posters 577 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.
  • J Offline
    J Offline
    johnyboy
    wrote on last edited by
    #1

    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?

    jsulmJ 1 Reply Last reply
    0
    • J johnyboy

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

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #4

      @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
      1
      • J johnyboy

        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?

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @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
        0
        • jsulmJ jsulm

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

          J Offline
          J Offline
          johnyboy
          wrote on last edited by
          #3

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

          jsulmJ 1 Reply Last reply
          0
          • J johnyboy

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

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by jsulm
            #4

            @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
            1
            • jsulmJ jsulm

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

              J Offline
              J Offline
              johnyboy
              wrote on last edited by
              #5

              @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?

              jsulmJ 1 Reply Last reply
              0
              • J johnyboy

                @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?

                jsulmJ Online
                jsulmJ Online
                jsulm
                Lifetime Qt Champion
                wrote on last edited by jsulm
                #6

                @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
                0
                • jsulmJ 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

                  J Offline
                  J Offline
                  johnyboy
                  wrote on last edited by
                  #7

                  @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
                  1

                  • Login

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