qt项目如何设置安装路径
我正在寻找与 qmake ./configure --prefix= 等效的内容。基本上,我想覆盖默认的安装/部署目录。这是如何用命令行 qmake 指定的?我还使用 QtCreator 构建了很多 gui 项目,并且我想知道如何在 QtCreator 内部构建时执行相同的操作。我可以在 .pro 文件中操作一个变量来执行此操作,还是更改我的项目设置?
谢谢!
I'm looking for the equivalent to ./configure --prefix= for qmake. Basically, I want to override the default install/deployment directory. How is this specified with command line qmake? I also use QtCreator to build a lot of my gui projects, and I'd like to know how to do the same thing while building inside of QtCreator. Is there a variable that I can manipulate in the .pro files to do this, or do I change my project settings?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(2)
~没有更多了~
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
对我来说,似乎 qmake PREFIX=/usr/local 不起作用
(尝试使用 qtcreator 的源代码)
所以解决方案是正常使用 qmake,但是,你这样做
For me, it seems that qmake PREFIX=/usr/local doesn't work
(try with the source of qtcreator)
So the solution is to use qmake normally, but then, you do