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. Qtcreator can't start on Red Hat Enterprise Linux 9.3
QtWS25 Last Chance

Qtcreator can't start on Red Hat Enterprise Linux 9.3

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.9k 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.
  • H Offline
    H Offline
    Hanqaqa
    wrote on last edited by
    #1

    So I am starting a new job as a Qt developer with a new employer and I'll be the only one using qt and I'll be using RHEL 9.3 as the OS in their computer (company policy).

    Since I have never used Red Hat I decided to fire up my VirtualBox and try isntalling Qt on RHEL 9.3.

    The docs tells us to install https://doc.qt.io/qt-6/linux.html

    First of all

    sudo yum groupinstall "C Development Tools and Libraries"
    sudo yum install mesa-libGL-devel
    

    Yum says that C Development Tools and libraries is not available so I isntall

    sudo dnf groupinstall "Development Tools"
    

    The online installer still asks for missing xcb libraries so I install

    sudo dnf install xcb*
    

    Then procceed with the installation as normal. And when I try to launch qtcreator from the /Tools/QtCreator/bin. I get

    [marco@localhost bin]$ ./qtcreator
    Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
    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, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.
    
    Aborted (core dumped)
    

    I have already tried reinstalling xcb but no luck.

    Any tips on what it could be?

    aha_1980A 1 Reply Last reply
    0
    • H Hanqaqa

      So I am starting a new job as a Qt developer with a new employer and I'll be the only one using qt and I'll be using RHEL 9.3 as the OS in their computer (company policy).

      Since I have never used Red Hat I decided to fire up my VirtualBox and try isntalling Qt on RHEL 9.3.

      The docs tells us to install https://doc.qt.io/qt-6/linux.html

      First of all

      sudo yum groupinstall "C Development Tools and Libraries"
      sudo yum install mesa-libGL-devel
      

      Yum says that C Development Tools and libraries is not available so I isntall

      sudo dnf groupinstall "Development Tools"
      

      The online installer still asks for missing xcb libraries so I install

      sudo dnf install xcb*
      

      Then procceed with the installation as normal. And when I try to launch qtcreator from the /Tools/QtCreator/bin. I get

      [marco@localhost bin]$ ./qtcreator
      Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      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, vkkhrdisplay, vnc, wayland-egl, wayland, xcb.
      
      Aborted (core dumped)
      

      I have already tried reinstalling xcb but no luck.

      Any tips on what it could be?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @Hanqaqa

      since version 12.0 QtCreator also needs libxcb-cursor. I don't know how the package is named in Red Hat, for Ubuntu I did sudo apt install libxcb-cursor0.

      I hope that helps.

      Regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hanqaqa
        wrote on last edited by
        #3

        @aha_1980 That wasn't the case.
        I just got it to work by writing in the terminal

        export QT_QPA_PLATFORM=wayland
        ./qtcreator
        

        in the /home/USER/Qt/Tools/QtCreator/bin/ folder.

        I have also made it to work when I press the menu icon by modifying the .desktop file in /home/USER/.local/share/applications and edit the org.qt-project.qtcreator.desktop. Change the Exec line into this:

        Exec=env QT_QPA_PLATFORM=wayland "/home/USER/Qt/Tools/QtCreator/bin/qtcreator" %F
        

        Now Qt Creator will succesfully launch in RHEL!

        Hope someone else finds this useful.

        T 1 Reply Last reply
        2
        • H Hanqaqa has marked this topic as solved on
        • H Hanqaqa

          @aha_1980 That wasn't the case.
          I just got it to work by writing in the terminal

          export QT_QPA_PLATFORM=wayland
          ./qtcreator
          

          in the /home/USER/Qt/Tools/QtCreator/bin/ folder.

          I have also made it to work when I press the menu icon by modifying the .desktop file in /home/USER/.local/share/applications and edit the org.qt-project.qtcreator.desktop. Change the Exec line into this:

          Exec=env QT_QPA_PLATFORM=wayland "/home/USER/Qt/Tools/QtCreator/bin/qtcreator" %F
          

          Now Qt Creator will succesfully launch in RHEL!

          Hope someone else finds this useful.

          T Offline
          T Offline
          thatguy2048
          wrote on last edited by
          #4

          @Hanqaqa Thanks, I had the same problem with RHEL 8.9 and Qt Creator 13.0.1

          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