在 64 位机器上添加 32 位版本的 Qt 5.7 [英] Add 32-bit versions of Qt 5.7 on a 64-bit machine
问题描述
想要手动安装 32 位版本的 Qt 5.7,这样我就可以将我的应用程序部署到 32 位和 64 位机器上.
Want to manually install 32-bit versions of Qt 5.7 so that I will be able to deploy my app to not only 32-bit but 64-bit machines as well.
最初当我在我的 64 位 Windows 7 机器上安装它时,我只选择了 64 位组件,因此,我只能在 Qt Creator 中选择 MSVC2015_64 位套件 来构建我的应用程序.
Initially when I installed it on my 64-bit Windows 7 machine, I only selected the 64-bit components and, hence, I can only select the MSVC2015_64 bit kits in Qt Creator to build my app with.
由于我想要将我的应用部署到 32 位 Windows 10 机器,我正在尝试将 32 位 Qt 版本添加到我的安装中;尝试通过 Tools
> Options
> Build &运行
> Add...
没有成功.搜索了文档和其他在线资源的一些答案/指南,但找不到如何在 Windows 中实现这一点.
Since I want to deploy my app to a 32-bit Windows 10 machine, I am trying to add the 32-bit Qt versions to my installation; tried through Tools
> Options
> Build & Run
> Add...
with no success. Searched for some answer/guide to the documentation and to other online sources but could not find how to achieve this in Windows.
是否可以在当前安装中手动添加其他 Qt 版本,或者我是否必须重新安装 Qt?另外,我可以在与第一次安装不同的目录上简单地安装带有所需 Qt 版本的 Qt,还是会弄乱 PATH
变量?
Is it possible to manually add other Qt versions on a current install or is do I have to reinstall Qt? Also, could I simple install Qt with the desired Qt versions on a different directory than the first installation or will that mess up the PATH
variables?
推荐答案
您必须启动 Qt 维护工具:开始 -> 程序 -> Qt -> Qt 维护工具.
You have to launch Qt Maintenance Tool : Start -> Programs -> Qt -> Qt Maintenance Tool.
跳过 Qt 登录(除非您使用的是商业版 Qt).
Skip the Qt login (unless you are using a commercial version of Qt).
选择添加或删除组件"并单击是".您将能够选择其他工具包进行下载和安装*.
Select "Add or remove components" and click yes. You'll be able to select other kits to download and install*.
然后 Qt Creator 应该会自动添加这些工具包,您只需要将它们添加到您的项目中:打开项目后转到项目设置,您会在左上角找到添加工具包"按钮.
Then Qt Creator should automatically add those kits, you'll just have to add them to your project : go to project settings once your project is open, and you'll find "Add kit" button in the upper left corner.
*Qt 维护工具可能会在有新版本可用时提示您先更新组件.
*Qt Maintenance Tool may prompt you to update components first if there's a new version available.
这篇关于在 64 位机器上添加 32 位版本的 Qt 5.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!