Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator don't launch on Ubuntu 20.04 LTS
Forum Updated to NodeBB v4.3 + New Features

Qt Creator don't launch on Ubuntu 20.04 LTS

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 3.5k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    apaczenko1993
    wrote on last edited by
    #1

    Hello All,
    today I installed the lasted Qt LTS Open Source version on Ubuntu 20.04 LTS. I download installer from Qt site (qt-unified-linux-x64-4.0.1-online.run). After instalation I have created new two icons: Qt Creator and Qt Maintenance. I don't know why, but QT Creator don't launch. After clicking Icon nothing happen. Maybe somebody of you know soluton? BR Michał

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi and welcome to the forums

      Try to start it from a shell and see if something is written so we can debug from there.

      Can also try with
      /path/qtcreator -noload all -load Core

      to see if its a plugin that prevents start.

      1 Reply Last reply
      2
      • A Offline
        A Offline
        apaczenko1993
        wrote on last edited by apaczenko1993
        #3

        Ok I understand that I should start this program
        (/home/apaczenko1993/Qt/Tools/QtCreator/bin/qtcreator)
        from shell yes? After this I have this information:

        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.

        Przerwane (zrzut pamięci)

        JonBJ mrjjM 2 Replies Last reply
        0
        • A apaczenko1993

          Ok I understand that I should start this program
          (/home/apaczenko1993/Qt/Tools/QtCreator/bin/qtcreator)
          from shell yes? After this I have this information:

          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.

          Przerwane (zrzut pamięci)

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by JonB
          #4

          @apaczenko1993
          This is asked many, many times, and your error message with possible reasons is all over the web.

          Set environment variable export QT_DEBUG_PLUGINS=1 in the shell and then try running your program. Look at the end of the diagnostic output for the reason you are failing.

          [EDIT You can first just try @mrjj's below, it is likely though not certain one of those packages will resolve.]

          1 Reply Last reply
          2
          • A apaczenko1993

            Ok I understand that I should start this program
            (/home/apaczenko1993/Qt/Tools/QtCreator/bin/qtcreator)
            from shell yes? After this I have this information:

            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.

            Przerwane (zrzut pamięci)

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @apaczenko1993
            Hi
            It seems the "normal" ubuntu case

            https://forum.qt.io/topic/116299/qt-creator-ubuntu-20-04

            so try
            sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

            (might not need all )

            1 Reply Last reply
            7
            • A Offline
              A Offline
              apaczenko1993
              wrote on last edited by
              #6

              Ok after:
              sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

              everything works well
              Thanks

              M 1 Reply Last reply
              5
              • A apaczenko1993

                Ok after:
                sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

                everything works well
                Thanks

                M Offline
                M Offline
                Mark W.
                wrote on last edited by
                #7

                @apaczenko1993 It's now early June '21, and the problem still exists. Fortunately, you guys had the answer. It took me a while to find it, but it solves the problem. Thank you very much!

                1 Reply Last reply
                2
                • K Offline
                  K Offline
                  karmayogi
                  wrote on last edited by
                  #8

                  export QT_DEBUG_PLUGINS=1
                  then see error by scrolling to the bottom

                  then install the missing library , in my case it was

                  sudo apt-get install -y libxcb-cursor0

                  it all worked !!

                  1 Reply Last reply
                  0

                  • Login

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