在哪里添加“make install"?在 Qt Creator 中? [英] Where to add "make install" in Qt Creator?

查看:69
本文介绍了在哪里添加“make install"?在 Qt Creator 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我添加 make install 步骤的地方是否有所不同(如果有,有何不同)?

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

在某些帖子中,他们说要将其添加到 Build 下,就像第一个屏幕截图一样.其他人说它需要像第二个一样在 Run/Deployment 下进行.

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.

两种方式是等价的吗?

推荐答案

如果它是 Build Settings 的一部分,那么每次在 Qt Creator 下进行构建时都会完成(假设前面的步骤成功).

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

如果它是运行设置的一部分,它只会在您在 Qt Creator 下实际运行应用程序时运行.

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

这取决于您想要的情况.如果它是运行设置的一部分,那么从逻辑上讲,它应该被配置为运行已安装/部署的二进制文件.如果只是为了检查 make install 是否成功,作为构建的一部分,即使在 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.

在您的情况下,听起来像运行应用程序需要 make install,所以它可能是运行设置的一部分,以使正常构建更快一点.

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.

这篇关于在哪里添加“make install"?在 Qt Creator 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆