Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in
read-only mode
.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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?
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
@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.