Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generic c++ project in Qt creator - No rule to make target

I am trying to import a generic project into Qt creator by following this tutorial. The project has its Makefile which builds multiple separate executables.

Running make all in the root directory of the project builds everything correctly.

The project has been imported into Qt creator and the sources show no errors regarding includes. When I press build, i get the error No rule to make targetall'. Stop.` As if the Makefile is non existent.

Where is Qt creator looking for the Makefile?

like image 917
TheMeaningfulEngineer Avatar asked Oct 20 '22 02:10

TheMeaningfulEngineer


1 Answers

In my case the problem was with the custom build directory in the Build Settings. Qt creator was searching for the Makefile in the build directory.

When using Qt creatror for Qt projects, I've usually set the build directory to something custom but this isn't sensible here :)

like image 124
TheMeaningfulEngineer Avatar answered Oct 31 '22 12:10

TheMeaningfulEngineer