Project ERROR: Cannot run compiler 'clang++'
-
Hi All,
This is a report on an error that has been solved so that if/when another person finds a similar problem, here is the solution.
After working on a project for a while, the IDE stopped functioning correctly. When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.
I am working in Windows 10 with this setup:
When I would try to compile the project, I would receive: Project ERROR: Cannot run compiler 'clang++'.
I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!
-
@qwerty11111122 said in [SOLVED] Project ERROR: Cannot run compiler 'clang++':
I solved this issue by closing Qt, deleting the *.pro.user and *.pro.user.16fe832 file, and restarting Qt. If anyone would like to respond with the reasoning for why that worked, thank you!
You usually get *.pro.user.16fe832 files if you copy the project to another machine and open it there without deleting the .pro.user first. As this file is not intended to be shared, it should not be copied and not be checked into version control systems.
When I would load up the project, I would see the name of the project the directory sidebar, but the only object inside of the project would be the *.pro file.
I saw this yesterday on a colleagues PC too. In his case, no MSVC compiler was installed. However, there was no error message beside "Project ERROR: Cannot run compiler 'clang++'" which made debugging a challenge.
-
@aha_1980 said in Project ERROR: Cannot run compiler 'clang++':
You usually get *.pro.user.16fe832 files if you copy the project to another machine and open it there without deleting the .pro.user first.
...yes. I suppose that's a missing piece of information. The machine I developed on couldn't properly report to github, so I copied it to a flash drive.