如何强制 Qt Creator 使用 MinGW 而不是 Visual Studio

发布于 2024-11-29 04:36:33 字数 283 浏览 1 评论 0原文

我们正在尝试在安装了 MinGW(带有 Qt)和 Visual Studio 的计算机上使用 MinGW 编译一个项目。不幸的是,Qt 创建者默认更喜欢 MSVS,并且看不到它自己的 MinGW (screenshot< /a>)。遗憾的是,这会导致许多晦涩的错误,因为应用程序是使用 MinGW 编写和调试的。有没有办法让Qt Creator使用MinGW而不杀死MSVS?

We're trying to compile a project with MinGW on the machine that has both MinGW (with Qt) and Visual Studio installed. Unfortunately, Qt creator prefers MSVS by default, and doesn't see it's very own MinGW (screenshot). Sadly, this results in a lot of obscure errors, because application was written and debugged with MinGW. Is there way to make Qt Creator to use MinGW without killing MSVS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

萌辣 2024-12-06 04:36:33

安装时,选择自定义安装类型。在QtSDK->开发工具->桌面Qt->Qt-中选择所需编译器的库。屏幕截图:

在此处输入图像描述

While installing, choose custom type of installation. Selected libraries for needed compilers in QtSDK->Development Tools->Desktop Qt->Qt-. Screenshot:

enter image description here

无人接听 2024-12-06 04:36:33

你确定你的 Qt sdk 已经安装了 MinGW 吗?您可以使用 Qt 维护应用程序来确保其 MinGW 引擎已安装。

Have you made sure your Qt sdk is installed with its MinGW? You can use the Qt maintainance app to make sure its MinGW engine is installed.

永不分离 2024-12-06 04:36:33

这些库来自哪里? SDK是你自己编译的吗?或者你下载了图书馆吗?

尝试查看 mkspecs 目录中的内容。应该有一个名为“默认”的链接。这链接到正在使用的规范。我想它指向 win32-msvc2008。您可以更改它,但如果它指向该规范,则意味着 Qt 库已使用该规范进行编译(除非后来更改),这意味着您不能将其与 MinGW 一起使用。您应该使用正确的规范编译库或下载正确的包(MinGW 版本)。

Where are those libraries from? Did you compile the SDK yourself? Or did you downloded the libraries?

Try to see what is in the mkspecs directory. There should be a link named 'default'. That links to the specification which is being used. I suppose it is pointing to win32-msvc2008. You can change that but if it is pointing to that specification it means that the Qt libraries have been compiled with that specification (unless it was changed afterwards), which means you cannot use those with MinGW. You should compile the libraries with the correct specification or download the correct package (MinGW version).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文