Project ERROR: Cannot run compiler 'clang++'. Output
-
wrote on 3 Feb 2019, 21:37 last edited by
I get the following error and Im unsure how to resolve the issue.
Project ERROR: Cannot run compiler 'clang++'. Output:
===================
Maybe you forgot to setup the environment?
23:34:44: The process "/home/jarel/Qt/5.12.1/gcc_64/bin/qmake" exited with code 3.
Error while building/deploying project untitled (kit: Desktop Qt 5.12.1 GCC 64bit)
When executing step "qmake" -
Hi and welcome to devnet,
What OS are you running ?
What compilers did you install ?
How did you configure Qt to use clang in place of gcc ? -
wrote on 3 Feb 2019, 22:02 last edited by
-
Lifetime Qt Championwrote on 3 Feb 2019, 22:04 last edited by SGaist 2 Apr 2019, 06:57
Then you should check your Kit.
How did you install Qt ?
-
Hello
Im running OpenSUSE Leap 15
for the last question, I hope ill answer it the correct way. Im not sure how I configured it. I just installed Qt creator and when I tried to create a new project, I seen the error message
Lifetime Qt Championwrote on 4 Feb 2019, 06:29 last edited by jsulm 2 Apr 2019, 06:30@jarelsanders1986 Is there a reason why you're using RC1 of the QtCreator?
Do you need Clang? If not you can use GCC which is default on Linux. -
wrote on 24 Feb 2019, 22:38 last edited by
I had exactly the same issue on Ubuntu "18.04.2 LTS". I solved the problem by installing clang:
~$ sudo apt install clang
-
I had exactly the same issue on Ubuntu "18.04.2 LTS". I solved the problem by installing clang:
~$ sudo apt install clang
wrote on 14 May 2019, 16:11 last edited byI had the exact the same project parsing error on Qt 5.12.3 and Kubuntu 18.04.2 LTS and solved it an easier way (since in the OP's case, he wouldn't need sudo rights for the symlink):
$ cd /home/jarel/Qt/5.12.1/Tools/QtCreator/libexec/qtcreator/clang/bin
$ ln -sf clang-7 clang++ -
@greensh Hi and welcome to devnet,
That's not a solution. Install the clang package but don't mix the tools used by creator with the one provided by your distribution.
-
@greensh Hi and welcome to devnet,
That's not a solution. Install the clang package but don't mix the tools used by creator with the one provided by your distribution.
wrote on 14 May 2019, 22:10 last edited by greenshFrom reading about the latest clang changes in QtCreator, see comments section at:
https://blog.qt.io/blog/2019/04/15/qt-creator-4-9-0-released/it's presumed the preferred Qt method is to use their integrated Clang version with QtCreator, rather than using a mismatched system version with QtCreator's Clang plugins. It's also presumed that QtCreator 4.9.0 should compile C++ code out-of-the-box on Ubuntu with only the system build-essential installed (which only includes the GCC toolchain).
Can you provide any Qt documentation to support this not being a solution or the Qt preferred way?
-
Qt Creator is an IDE, it doesn't provide compiler support. Providing compilers is the role of your OS.
The fact that the clang executable can be found in Qt Creator is an implementation detail because Qt Creator uses clang infrastructure for some of it plugins.
Do not presume things like that. If there was any recommendation to use the clang version Qt Creator uses internally, that would be documented.
-
wrote on 24 May 2019, 18:43 last edited by
HI, I have solved the same problem in Ubuntu 18 just by installing qt creator from the repository. In my case it was:
sudo apt-get install qtcreator
This will install all necessary package by itself and then you can run your currently installed version, as this command, unfortunately, doesn't show docs and examples (in my case).
-
wrote on 17 Jul 2022, 20:22 last edited by
-
wrote on 18 Jul 2022, 09:18 last edited by
Solution:
Use the gcc compiler instead of clang++. -
I get the following error and Im unsure how to resolve the issue.
Project ERROR: Cannot run compiler 'clang++'. Output:
===================
Maybe you forgot to setup the environment?
23:34:44: The process "/home/jarel/Qt/5.12.1/gcc_64/bin/qmake" exited with code 3.
Error while building/deploying project untitled (kit: Desktop Qt 5.12.1 GCC 64bit)
When executing step "qmake"wrote on 4 Dec 2022, 22:53 last edited by@jarelsanders1986 Hello, I was having the same problem. What I did was open the package manager and look for c compiler packages. My standard version is clang11 and clang-cpp-11, I downloaded the following versions: clang13, clang14, along with the documentation. After the update, I opened my project and decided to build it... IT WORKED. QT Creator automatically recognized new compilers. So far I haven't found any problems. Hope my experience helped.
-
-
I had exactly the same issue on Ubuntu "18.04.2 LTS". I solved the problem by installing clang:
~$ sudo apt install clang
wrote on 1 Feb 2024, 03:55 last edited by