Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to add "make install" in Qt Creator?

Tags:

qt

qt-creator

Does it make a difference (and if so, what difference) where I add the make install step?

In some posts they say to add it under Build like in the first screenshot. Others say it needs to go under Run/Deployment like in the 2nd.

Are both ways equivalent?

Install under build Install under Deployment

like image 428
Horst Walter Avatar asked Jan 28 '26 09:01

Horst Walter


1 Answers

If it is part of Build Settings, it will be done every time you do a build under Qt Creator (assuming previous steps succeeded).

If it is part of Run Settings, it will only be run when you actually run the app under Qt Creator.

It depends on the case, which on you want. If it is part of Run Settings, then logically it should be configured to run the installed/deployed binary. If it is just for checking that make install succeeds, as part of the build, even though it will run the application from build directory when you run it under Qt Creator, then it should be part of build.

In your case, it sounds like make install is needed for running the app, so maybe it could be part of Run settings, to make normal builds just a bit faster.

like image 191
hyde Avatar answered Jan 31 '26 04:01

hyde



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!