QtCreator problems after update on RHEL8
-
Hello!
I'm facing some problems with QtCreator 7 (with 5.12.5) after a normal yum update on linux RHEL 8.x:
- The application appears several minutes after start.
- Some QtCreator GUI controls are not correctly shown until I pass the mouse over.
- Despite the development tools are correctly installed, QtCreator build kit cannot find some tools such as debugger and qmake.
Thinging that is a specific-machine problem, I have done a new installation on a new RHEL 8.5 virtual machine but unfortunately I have experienced exactly the same problems.
I suppose there's some kind of conflict with some component/version but I didn't find it.
This is the log of QtCreator during start:
[root@localhost bin]# ./qtcreator -test all QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' addOverrideAction /Switch to <b>Studio</b> mode: Action /Switch to <b>Welcome</b> mode is already registered for context Global Context. "The command \"/bin/qmake-qt5.sh --version\" could not be started." "The command \"/bin/qmake-qt5 --version\" could not be started." Cannot update Qt version information: /home/teseo/Qt/5.12.8/gcc_64/bin/qmake cannot be run. QQmlEngine::setContextForObject(): Object already has a QQmlContext 2022-05-23T10:27:38 Clang Code Model: Error: The clangbackend executable "/home/teseo/Qt/Tools/QtCreator/libexec/qtcreator/clangbackend" could not be started (timeout after 10000ms). QMutex: destroying locked mutex
Does anybody experienced the same problems? Can anybody help me?
Thank you!
-
@Merlino said in QtCreator problems after update on RHEL8:
/home/teseo/Qt/5.12.8/gcc_64/bin
Do you have this directory in your path? When you installed Qt via yum, did it install it into a standard system location? Check your PATH environment variable and remove the above directory from it.
Also, check the location of the QtCreator executable that you are running by typing the following in a terminal:
which qtcreator
Actually, I see you are starting qtcreator in the current directory ('./qtcreator') what directory is that?
-
Thank you for you answer :)
Unfortunately the directory /home/teseo/Qt/5.12.8/gcc_64/bin isn't in the PATH variable.The command which qtcreator return
[teseo@localhost ~]$ which qtcreator /usr/bin/which: no qtcreator in ...
The Qt installation is in the standard folder /home/teseo/Qt/
-
In your first post, you appear to be logged in as root, do you get the same errors when you are a non-privileged user?
-
Hi,
Since it's written that qmake failed to run, what happens if you run it manually ?
-
-
Can you click on either of the Kits and see why it's showing a warning for both of them (as indicated by the yellow âš symbol in front of them).
-
Can you also show the Qt Versions and Compiler tabs? Although, it looks like you have a compiler installed (gcc), but it would be good to know what QtCreator is finding. Did you install Qt in addition to QtCreator?
-
@mchinand thank you for your answer. Qt Creator has some problems to find compilers or debuggers, the tabs in QtCreator are empty. I have try several Qt versions: 5.12, 5.15 and 6.2, but nothing changed. Two day ago I have opened a bug report on this issue https://bugreports.qt.io/browse/QTCREATORBUG-27605
-
@mchinand @SGaist
I'd really like for this to be addressed, or some guidance!!I am going to elaborate on this issue because it is happening to me.
In Redhat 8.5, if I do not yum update, install RHEL development tools, RHEL Extra packages, install gnuradio-devel, download QT creator, install 5.12.2, select GCC for Desktop or w/e and and install. It will install and works FLAWLESSLY.
Now, if you decide to yum update, there is some big mini major update that upgrades kernels and other stuff that makes it act like a mini 8.6 even tho u are 8.5.
When that happens, my QT creator that was once working, now is very slow, and opens up with a PLUGIN problem, I stopped after to see if it worked but I think it might.
Currently, I do not bother to yum update on a fresh install, and I can get my program up and running pretty quickly
For fun, I tried to figure it out on RHEL 8.6 straight from the ISO, since it keeps wanting me to UPDATE.
The issue now, if anyone has read the updates on 8.6, they changed all kind of stuff. I know how to do things, but I am no expert so I won't explain the updates.I just know QT will install fine, but takes FOREVER to load. Then you run into all kinds of issues, like PLUGIN problems with CLANG, and if u go into OPTIONS it's a black window, and it's just ALL KINDS OF WONKY!!!!!!!
* Tue May 17 2022 Thomas Zimmermann <thomas.zimmermann@voestalpine.com> - 4.12.4-9
- Rebuild for llvm/clang 13 (RHEL 8.6)
Here is a COMMENT from a guy who made some build, I think in an attempt to RESOLVE this issue.
https://koji.fedoraproject.org/koji/buildinfo?buildID=1967746Here is the link. The RPM installs EASY. The only issue is once I am about to create a project, I still can't find a kit. I have no idea where to find qmake. I have never been in this situation and I know it's only been a few hours. I'm not saying I've looked hard enough, but as of now, I'm just kind of lost.
At this point, I'm still good on 8.5 with NO YUM update. That solution WILL WORK!!!!!
In Redhat 8.6, unless you are some kind of WIZARD GOD MASTER THINKER, it is NOT EASY!!!!SOMEONE HELP!!
I don't need it, but I just want it to work!!!! -
@zeethree50 I had the same issue. My Rockly Linux 8.5. updated it's kernel to 8.6 (4.18.0-372.9.1) and Qt Creator became really slow, spamming
clangbackend could not be started (timeout after 10000ms)
,failed to determine git version
and other errors/warnings that indicate that most stuff failed after timeout (like complaining about old cmake without fileApi even though it ships with 3.21). I've restarted with the previous kernel and everything works as before.I don't have other Qt 6 applications to test but it might be some Qt 6 bug/perf issue on a newer kernel (or perhaps it's the bug in the kernel itself, either way Qt needs to handle it).
-
@Merlino @zeethree50 @flashmozzg Does this version behave better? https://download.qt.io/snapshots/qtcreator_qt5/7.0/7.0.2/173/
-
@JKSH I have tried with https://download.qt.io/snapshots/qtcreator_qt5/7.0/7.0.3/202/ because your link is no longer available, unfortunately it didn't work for me.
-
@Merlino said in QtCreator problems after update on RHEL8:
@JKSH I have tried with https://download.qt.io/snapshots/qtcreator_qt5/7.0/7.0.3/202/ because your link is no longer available, unfortunately it didn't work for me.
That's a shame. Thank you for testing.
In your bug report, Christian Maurer mentioned that switching back to
kernel-core-4.18.0-348.23.1.el8_5.x86_64
worked for him.