New to QtCreator Error "no rule to make target 'all'. Stop."
-
"No rule to make target...." usually tells you that the configuring has failed and your compiler doesn't know what to do at all. But that's poking around in the fog. To help we'd need more info.
- Which Qt version are you using?
- Is it CMake or QMake?
- Can you post the CMakeLists.txt or the .pro file respectively?
- Does the "Compile Output" tab say anything?
-
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
I just imported the file and that was it
What file?
Is ther a *.pro or CMakeLists.txt file? -
@jsulm I imported a file named gps from a git repo which contains files inside such as data, headers, src, and tests. Inside data there is data of gps locations, inside headers there are the header programs, inside src is the main cpp programs, and tests is boost tests.
Outside of these subfiles when you open just the gps file which is the main file I downloaded from the git repo it has a bunch of other files created when I loaded it into qt for the first time. And one of them is a .pro file which I can't open and dont see in qt.
-
@IsaacPrkr Please post a link to the Git repo.
You need to load the project file in QtCreator. QtCreator supports Qmake (*.pro) and CMake (CMakeLists.txt). -
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
And one of them is a .pro file which I can't open and dont see in qt
Why can't you open it? What happens?
-
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
Do you want the https link?
Yes, the link to the repo.
How exactly are you trying to open the pro file?
Do this:- Open QtCreator
- Go to "File/Open File or Project..."
- Navigate to the project and select the pro file
- What exactly happens now?
-
@jsulm it says could not display 'gps.pro' there is no application for "qt qmake profiles".
The link is here: https://olympuss.ntu.ac.uk/N0923887/gps.git
It's gonna be password protected most likely however.
When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found and I can't seem to do anything the configure project is grayed out.
-
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found
Did you also install at least one Qt version?
QtCreator is an IDE, you also need Qt if you want to build a Qt application. -
@IsaacPrkr Make sure qt5-qmake is also installed.
And check whether you have any properly configured Kit in QtCreator. -
@IsaacPrkr In QtCreator go to "Tools/Options.../Kits" and check whether there is at least one Kit
-
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
There is only options that say Auto-detected and Manual
But are there any Kits, either in manual or auto detected section?
If there are no Kits then that explains your problem. In this case add a Kit manually - first add your Qt in "Qt Versions" tab (you ) and then a Kit. -
@IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":
Do I add the project file into that?
No, this has nothing to do with any projects!
This is used to manage different Qt versions in QtCreator, as QtCreator can support many Qt versions."and it just came up with my files" - I don't know what this means. To add a Qt version you need to navigate to the folder containing qmake of that Qt version (in your case /usr/bin) and select qmake.
See: