Where to add “make install” in Qt Creator?

会有一股神秘感。 提交于 2021-01-27 20:57:24

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/50316551/where-to-add-make-install-in-qt-creator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!