Qtcreator cmake "No executable specified"

I have a very nasty problem with qtcreator and cmake projects: qtcreator cannot find the executable. It simply prints "No executable specified" when trying to run any executable from the IDE. Everything works fine after setting up the project (only for the first time). The problem appears when loading the project after that. Only a workaround removes "CMakeLists.txt.user" before each use. It is tiring and not necessary.

This happens with projects that have worked perfectly for many years, both my own and my colleagues, on several machines running on ubuntu 14.04 and 14.10. Problems started with qtcreator version 3 and later with ubuntu 14.04 up.

Assuming that the problem is caused by some changes in "CMakeLists.txt.user", after the project was closed for the first time, I replaced the file with a copy right after it was created for the first time. This worked, thereby confirming that something was wrong with the file itself, or that changes to it cause an existing error in qt-creator. Unfortunately, this is as tiring as deleting a file in the first place.

My task: Unfortunately, I am not familiar with the internal processing of qtcreaor, however I was able to identify specific configuration lines that are responsible. What really changes qtcreator?

enter image description here

Please note that "racoon" is the name of the project, and the above screenshot is much larger than formatting with stackoverflow (right-click to view full resolution).

Thanks.

+5
source share
2 answers

I had exactly the same problem using Ubuntu 14.10 and resolved it by doing the following:

This will replace the cmake plugin, which is currently version 3.1.1 with 3.1.2, causing the problem to disappear!

+1
source

I installed qtcreator using the native Qt installer , not the one provided by Ubuntu. It installs version 5.3.1 and fixes the problem.

+1
source

Source: https://habr.com/ru/post/1206651/


All Articles